startTextToSpeech 开始文字转语音

startTextToSpeech ^7.8

开始文字转语音

#请求参数

Prop Type Default Comment
text String N/A 文本内容
url String N/A ./

#接口调用示例

const params = {
    "text": "文本内容",
    "url": "./"
}
this.$bridge
  .startTextToSpeech(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

#接口返回示例

{
    "code": 0
}
posted on 2024-12-18 09:19  AtlasLapetos  阅读(12)  评论(0)    收藏  举报