How to play MP3 files into the microphone input jQuery

。_饼干妹妹 提交于 2019-12-11 12:08:03

问题


I am attempting to create it so when a user plays a sound, it plays the sound to the users microphone input. Thus when they're in a Skype Call/Game chat/etc it will be played for all users to hear.

Is there any way to play music to the microphone instead of speakers in Javascript/jQuery? If not, does node-webkit give me any more ability to do this?

Hopefully this is well explained, it is a little challenge.

Thanks for any, and all advise!


回答1:


This is not possible from the web browser alone. Most systems aren't even capable of this directly.

It is up to the client to decide how to route audio and there is no control of this within the browser, except for what happens within the page itself.

The best you can do is to recommend to your users how to configure their systems. For your Windows users, they will need a virtual audio loopback driver. http://vb-audio.pagesperso-orange.fr/Cable/



来源:https://stackoverflow.com/questions/28918079/how-to-play-mp3-files-into-the-microphone-input-jquery

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!