開發中使用——鴻蒙CoreSpeechKit讓文字發聲后續
設置音量大小
volume
// 設置播報相關參數this.extraParam= {"queueMode": 0, "speed": AppModel.speed, "volume": AppModel.volume, "pitch": 1, "languageContext": 'zh-CN',"audioType": "pcm", "soundChannel": 3, "playType": 1 };
設置播放速度
“speed”
// 設置播報相關參數this.extraParam= {"queueMode": 0, "speed": AppModel.speed, "volume": AppModel.volume, "pitch": 1, "languageContext": 'zh-CN',"audioType": "pcm", "soundChannel": 3, "playType": 1 };