如何通过小程序把手机当成麦克风?

小程序 文章 2021-03-31 17:42 33 0 全屏看文

如何通过小程序把手机当成麦克风?How to use the mobile phone as a microphone through the applet?

如何通过小程序把手机当成麦克风?

希望实现的效果:获取到麦克风权限之后,麦克风保持打开,实时采集用户声音,同时可以通过手机实时播放出去,相当于喇叭,一边进同时另一边出。

看了一圈文档发现要么是录音,要么是直播。不需要网络推流,只是本地处理声音。

What we hope to achieve: after getting the microphone permission, the microphone will remain on, collect the user's voice in real time, and play it out in real time through the mobile phone, which is equivalent to a speaker, and one side goes in and the other side goes out at the same time. After looking around the document, I found that it was either recorded or live. It doesn't need network streaming, just local processing of sound.

回答:

solin:

好家伙 你这是需要一个放大器啊

Shady:麦克风这端,这个功能用小程序能实现么?
Eric:

没有硬件支持,这个功能估计效果不太好

Always:

理论上是不可以的,同时开喇叭和麦克风会产生嗡嗡声

-EOF-