我使用的服务是:语音合成
调用的接口是:speak
参数设置情况:包名已正确配置
speechSynthesizer.setAudioStreamType(AudioManager.STREAM_MUSIC);
speechSynthesizer.setParam(SpeechSynthesizer.PARAM_SPEAKER, "0");speechSynthesizer.setParam(SpeechSynthesizer.PARAM_VOLUME, "5");
speechSynthesizer.setParam(SpeechSynthesizer.PARAM_SPEED, "5");
speechSynthesizer.setParam(SpeechSynthesizer.PARAM_PITCH, "5");
speechSynthesizer.setParam(SpeechSynthesizer.PARAM_AUDIO_ENCODE, "1");
speechSynthesizer.setParam(SpeechSynthesizer.PARAM_AUDIO_RATE, "4");
speechSynthesizer.auth(TtsMode.MIX);
speechSynthesizer.initTts(TtsMode.MIX);
开发平台和机型:红米note3
SDK版本号: 2.3.0
代码或日志截图(上传截图能帮助您更快解决问题):
复现步骤、现象及其他描述:
4g 网络下log
(-102)(-102)offline engine download license failure[(-5)appCode=null--licensePath=/data/data/com.yelong.jibuqi/files/baidu_tts_license]
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块
ask99comcn:
我使用的服务是:语音合成
调用的接口是:speak
参数设置情况:包名已正确配置
speechSynthesizer.setApiKey("隐藏", "隐藏");speechSynthesizer.setAudioStreamType(AudioManager.STREAM_MUSIC);
speechSynthesizer.setParam(SpeechSynthesizer.PARAM_SPEAKER, "0");speechSynthesizer.setParam(SpeechSynthesizer.PARAM_VOLUME, "5");
speechSynthesizer.setParam(SpeechSynthesizer.PARAM_SPEED, "5");
speechSynthesizer.setParam(SpeechSynthesizer.PARAM_PITCH, "5");
speechSynthesizer.setParam(SpeechSynthesizer.PARAM_AUDIO_ENCODE, "1");
speechSynthesizer.setParam(SpeechSynthesizer.PARAM_AUDIO_RATE, "4");
speechSynthesizer.auth(TtsMode.MIX);
speechSynthesizer.initTts(TtsMode.MIX);
开发平台和机型:红米note3
SDK版本号: 2.3.0
代码或日志截图(上传截图能帮助您更快解决问题):
复现步骤、现象及其他描述:
4g 网络下log
(-102)(-102)offline engine download license failure[(-5)appCode=null--licensePath=/data/data/com.yelong.jibuqi/files/baidu_tts_license]
回复ask99comcn:
您好,您的设置是4G走离线的合成的。请查看文档,http://yuyin.baidu.com/docs/tts/158