百度智能语音引用1
1.登录百度开发者账号,申请语音应用
https://console.bce.baidu.com/ai/
2.创建语音应用,创建后查看apikey,secretkey
应用名称 | AppID | API Key | Secret Key | 包名 |
---|
语音播报提醒 | 14899961 | *************** |
******* baidu_tts_cors.js文件以及跨域,注意在调用时,要把demo里的换成你自己的,然后即可测试了
audio = btts({ tex: text, tok: '你自己的access_token', spd: 5, pit: 5, vol: 15, per: 4 } 5.参考网址 https://console.bce.baidu.com/ai/?_=1542849502144#/ai/speech/app/detail~appId=648253 https://cloud.baidu.com/doc/SPEECH/TTS-API.html#.E6.8D.A2.E5.8F.96token 6.
|