ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
语音合成使用的是腾讯AI开放平台的sdk ### **BSL.SpeechSynthesis(voicer,'text','callbackMethod')** | 参数 | 必填 | 说明 | | --- | --- | --- | | voicer | 是 | 发音人,传入int型 | | text | 是 | 合成语音的文字 | | callbackMethod | 是 | 回调的JS函数,将合成的结果返回。success为成功,其他为失败。 | 发音人值:在腾讯平台[https://cloud.tencent.com/document/product/1073/37995](https://cloud.tencent.com/document/product/1073/37995) **调用示例** ~~~ <script type="text/javascript"> function result(r){ alert(r); } </script> <a href="#" onclick="BSL.SpeechSynthesis(0,'欢迎使用初雪云App生成平台','result')">测试语音合成</a> ~~~