怎么选择播报的声音
189*****589 发布于2015-06 浏览:1851 回复:3
0
收藏

语音合成时怎么选择播报的声音?我用sdk中

String ttsTextModelFilePath =

                getApplicationContext().getApplicationInfo().dataDir + "/lib/libbd_etts_text.dat.so";

        String ttsSpeechModelFilePath =

                getApplicationContext().getApplicationInfo().dataDir + "/lib/libbd_etts_speech_female.dat.so";

        speechSynthesizer.setParam(SpeechSynthesizer.PARAM_TTS_TEXT_MODEL_FILE, ttsTextModelFilePath);

        speechSynthesizer.setParam(SpeechSynthesizer.PARAM_TTS_SPEECH_MODEL_FILE, ttsSpeechModelFilePath);

不起作用,有谁能替我解答一下?

收藏
点赞
0
个赞
共3条回复 最后由用户已被禁言回复于2022-04
#4luckyToMe2回复于2020-01

看看

0
#3李维高liweigao回复于2015-09

通过speaker参数设置在线的,或者通过dat文件设置离线的

0
#2rosanna_455回复于2015-06

哦,明白了

0
TOP
切换版块