All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hn.asr.qcloud.voice.VoiceDistinguish Maven / Gradle / Ivy

There is a newer version: 1.0.18
Show newest version
package com.hn.asr.qcloud.voice;

import com.aliyun.oss.common.utils.StringUtils;

/**
 *  腾讯云/语音识别
 * @author: yang
 *  2020/01/06 14:40
 */
public class VoiceDistinguish {

    /**
     * 发送录音文件至腾讯云
     *
     * @param voicePath 文件路径
     * @return  结果成功或者失败
     */
    public String sendVoice(String voicePath) {
        if (StringUtils.isNullOrEmpty(voicePath)) {
            return null;
        }
        VoiceUtil voiceUtil = new VoiceUtil();
        //发送录音文件至腾讯云
        String result = voiceUtil.sendVoiceFile(voicePath);
        return result;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy