# 开发中使用——鸿蒙CoreSpeechKit让文字发声后续

前端森之鸟
发布于 2025-9-4 23:53
浏览
0收藏

开发中使用——鸿蒙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 };

收藏
回复
举报
回复
    相关推荐