Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没有找到可以录音的设备 #1

Open
cgfeel opened this issue May 20, 2016 · 3 comments
Open

没有找到可以录音的设备 #1

cgfeel opened this issue May 20, 2016 · 3 comments

Comments

@cgfeel
Copy link

cgfeel commented May 20, 2016

怎么解决,微信打开本地调试地址,提示没有找到可录音的设备

@lzl124631x
Copy link
Owner

感谢关注. 不过audio.js有一阵子没更新了, 慎用, 但是我一有空就会更新, 欢迎随时提问. 所有我目前碰到的问题请见微信JSSDK与录音相关的坑.

audio.js中会判断queryString中是否有wechatcode. 微信oauth之后链接中一定会有code=xxxx. wechat=true这个是我自己加的. 你只要确保你的链接中有?code=xxx?wechat=xxx, audio.js就会使用微信的录音接口. 前提是你要先走完oauth那一套 你做了么?

@cgfeel
Copy link
Author

cgfeel commented May 21, 2016

是不是一定要先申请微信服务号之后,然后通过微信的JSSDK进行调用呢?

@lzl124631x
Copy link
Owner

lzl124631x commented May 21, 2016

恩是的. 最终想要部署出去, 一定需要一个企业服务号. 个人订阅号是不行的.

你可以先用微信测试号测试. 测试号有很高的权限可以让你玩儿, 包括录音等. 你需要用测试号做好oauth, 然后引入jssdk, 最后用audio.js做录音.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants