com.hn.asr.qcloud.voice.VoiceDistinguish Maven / Gradle / Ivy
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