coze-dev / coze-dev/coze-js

Bug: TypeError: uni.createWebAudioContext is not a function

Open
#332 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.