const onSpeechClick = (type: number) => {
// adoctx.src = type ? content.value!.entry.speech!.uspronounce! : content.value!.entry.speech!.ukpronounce!;
adoctx.src = 'https://dict.youdao.com/pronounce/base?product=webdict&appVersion=1&client=web&mid=1&vendor=web&screen=1&model=1&imei=1&network=wifi&keyfrom=dick&keyid=voiceDictWeb&mysticTime=1715187197779&yduuid=abcdefg&rate=4&word=remote%2Bcontrol&type=1&sign=3d94b11f908faa42ad67fa8c7998e417&pointParam=appVersion%2Cclient%2Cimei%2Ckeyfrom%2Ckeyid%2Cmid%2Cmodel%2CmysticTime%2Cnetwork%2Cproduct%2Crate%2Cscreen%2Ctype%2Cvendor%2Cword%2Cyduuid%2Ckey';
adoctx.onPlay(() => {
console.log('开始播放');
});
adoctx.onError((res) => {
console.log(res.errMsg);
console.log(res.errCode);
});
console.log('onSpeechClick');
adoctx.play();
}
- 发布:2024-05-09 18:34
- 更新:2024-05-09 18:34
- 阅读:149
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 22631.3447
HBuilderX类型: 正式
HBuilderX版本号: 4.15
手机系统: Android
手机系统版本号: Android 13
手机厂商: vivo
手机机型: IQOO neo 5
页面类型: vue
vue版本: vue3
打包方式: 离线
项目创建方式: HBuilderX
示例代码:
操作步骤:
复制上方代码示例直接运行
复制上方代码示例直接运行
预期结果:
Android端能够正常播放音频
Android端能够正常播放音频
实际结果:
H5端、IOS端、小程序端是正常的,只有Android端无法播放
H5端、IOS端、小程序端是正常的,只有Android端无法播放
bug描述:
在使用innerAudioContext播放音频时,部分mp3音频无法播放,目前已知无法播放的音频URL如下:
https://dict.youdao.com/pronounce/base?product=webdict&appVersion=1&client=web&mid=1&vendor=web&screen=1&model=1&imei=1&network=wifi&keyfrom=dick&keyid=voiceDictWeb&mysticTime=1715187197779&yduuid=abcdefg&rate=4&word=remote%2Bcontrol&type=1&sign=3d94b11f908faa42ad67fa8c7998e417&pointParam=appVersion%2Cclient%2Cimei%2Ckeyfrom%2Ckeyid%2Cmid%2Cmodel%2CmysticTime%2Cnetwork%2Cproduct%2Crate%2Cscreen%2Ctype%2Cvendor%2Cword%2Cyduuid%2Ckey
https://dict.youdao.com/pronounce/base?product=webdict&appVersion=1&client=web&mid=1&vendor=web&screen=1&model=1&imei=1&network=wifi&keyfrom=dick&keyid=voiceDictWeb&mysticTime=1715187197779&yduuid=abcdefg&rate=4&word=pass%2Bby&type=2&sign=7d773fb0850e81c82d98737a025b1f4e&pointParam=appVersion%2Cclient%2Cimei%2Ckeyfrom%2Ckeyid%2Cmid%2Cmodel%2CmysticTime%2Cnetwork%2Cproduct%2Crate%2Cscreen%2Ctype%2Cvendor%2Cword%2Cyduuid%2Ckey
https://dict.youdao.com/pronounce/base?product=webdict&appVersion=1&client=web&mid=1&vendor=web&screen=1&model=1&imei=1&network=wifi&keyfrom=dick&keyid=voiceDictWeb&mysticTime=1715187197779&yduuid=abcdefg&rate=4&word=get%2Bup&type=1&sign=19a8b4271d113ab3f039cbf7a05fd0af&pointParam=appVersion%2Cclient%2Cimei%2Ckeyfrom%2Ckeyid%2Cmid%2Cmodel%2CmysticTime%2Cnetwork%2Cproduct%2Crate%2Cscreen%2Ctype%2Cvendor%2Cword%2Cyduuid%2Ckey
https://dict.youdao.com/pronounce/base?product=webdict&appVersion=1&client=web&mid=1&vendor=web&screen=1&model=1&imei=1&network=wifi&keyfrom=dick&keyid=voiceDictWeb&mysticTime=1715187197779&yduuid=abcdefg&rate=4&word=get%2Bup&type=2&sign=10ee69f39aaf19890e4d5a606b2975ba&pointParam=appVersion%2Cclient%2Cimei%2Ckeyfrom%2Ckeyid%2Cmid%2Cmodel%2CmysticTime%2Cnetwork%2Cproduct%2Crate%2Cscreen%2Ctype%2Cvendor%2Cword%2Cyduuid%2Ckey
0 个回复