Bug: TypeError: uni.createWebAudioContext is not a function
Open
- Dominant language
- TypeScript
- Stars
- 292
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
"@coze/api": "^1.3.9",
"@coze/uniapp-api": "^0.3.1",
我使用上面这2个,然后使用uniapp 打包成 android apk,报错了
Error initializing audio context:, TypeError: uni.createWebAudioContext is not a function at node_modules/@coze/uniapp-api/dist/ws-tool/pcm-stream-player/index.js:177
Contributor guide
Research direction
Start by reproducing the Android APK build with @coze/api 1.3.9 and @coze/uniapp-api 0.3.1, then inspect node_modules/@coze/uniapp-api/dist/ws-tool/pcm-stream-player/index.js around line 177. Done means audio initialization no longer raises TypeError: uni.createWebAudioContext is not a function.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100