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
}