[m2][fix]科大讯飞默认发音人修改并提高音量
This commit is contained in:
@@ -24,7 +24,7 @@ class IFlyTekTts : IMogoTTS, InitListener {
|
||||
private var ttsEngine: SpeechSynthesizer? = null
|
||||
private var engineType = SpeechConstant.TYPE_CLOUD
|
||||
|
||||
private var voicer: String = "xiaoyan"
|
||||
private var voicer: String = "x4_lingxiaoying_en"
|
||||
private var voicerEntries: Array<String>? = null
|
||||
|
||||
// 等级由低到高为0、1、2、3,默认为-1表示没有正在tts的
|
||||
@@ -389,7 +389,7 @@ class IFlyTekTts : IMogoTTS, InitListener {
|
||||
)
|
||||
//设置合成音量
|
||||
ttsEngine?.setParameter(
|
||||
SpeechConstant.VOLUME, "50"
|
||||
SpeechConstant.VOLUME, "100"
|
||||
)
|
||||
} else {
|
||||
ttsEngine?.setParameter(SpeechConstant.ENGINE_TYPE, SpeechConstant.TYPE_LOCAL)
|
||||
|
||||
Reference in New Issue
Block a user