报错代码
{
"errMsg": "MediaError",
"errCode": -99
}
代码:
let audioSrc = `https://nls-gateway.cn-shanghai.aliyuncs.com/stream/v1/tts?appkey=${appKey}&text=${encodeURIComponent(
text
)}&token=${accessToken}&format=wav&volume=100`;
console.log('audioSrcaudioSrcaudioSrc', audioSrc);
let audio = uni.createInnerAudioContext();
audio.autoplay = true;
audio.src = audioSrc;
audio.volume = 1;
audio.play()
1 个回复
zdng
遇到同样问题,播放十分钟左右就会有这个错误,然后停止播放。plus.audio.createPlayer()创建有同样的问题,errMsg是未知错误