// var audio = wx.createAudioContext("myAudio", this)
// audio.setSrc("http://img.chen-items.cn/" + this.data.post.postVoice)
var audio = wx.createInnerAudioContext();
audio.src = "http://img.chen-items.cn/" + this.data.post.postVoice
audio.play();
两种上下文都测试了,在工具中可以播放,在真机上就不i可以了

不知楼主解决了么?我也碰到了这个问题
https://developers.weixin.qq.com/s/yaweYTmy7U4V
iphone 8 安卓没有测试
提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
https://developers.weixin.qq.com/s/yaweYTmy7U4V
const innerAudioContext = wx.createInnerAudioContext()innerAudioContext.autoplay =trueinnerAudioContext.src ='http://ws.stream.qqmusic.qq.com/M500001VfvsJ21xFqb.mp3?guid=ffffffff82def4af4b12b3cd9337d5e7&uin=346897220&vkey=6292F51E1E384E061FF02C31F716658E5C81F5594D561F2E88B854E81CAAB7806D5E4F103E55D33C16F3FAC506D1AB172DE8600B37E43FAD&fromtag=46'innerAudioContext.onPlay(() => {console.log('开始播放')})innerAudioContext.onError((res) => {console.log(res.errMsg)console.log(res.errCode)})我刚才使用了官方例子,在工具中可以,但是真机预览就没有声,我保证不是静音的
什么微信版本?打印一下log看下?
同样的问题,急,开发库2.4.2,ios微信版本7.0.1 模拟器上可以播,真机上不可以