microphone

Speaker output to mic input without cable on Android?

馋奶兔 提交于 2019-12-12 10:24:08
问题 I want to connect speaker output to mic input on Android phone without using any physical cable. Such routing should be transparent to all apps. With this function I can design a bunch of interesting apps, e.g., measuring round-trip delay of a voip call, automatically replying to an incoming call etc. Some similar questions can be found here: Background music for call Outputting audio stream into microphone It seems that there is no solution on Android right now, but the tool JACK running on

How to record sound by using inbuilt microphone in android

爱⌒轻易说出口 提交于 2019-12-12 08:14:21
问题 I need to record sound by using mobile's own microphone... How to do it? 回答1: It's explained here Audio capture from the device is a bit more complicated than audio/video playback, but still fairly simple: Create a new instance of android.media.MediaRecorder using new Set the audio source using MediaRecorder.setAudioSource(). You will probably want to use MediaRecorder.AudioSource.MIC Set output file format using MediaRecorder.setOutputFormat() Set output file name using MediaRecorder

WebRTC Play Audio Input as Microphone

橙三吉。 提交于 2019-12-12 08:09:15
问题 I want to play my audio file as microphone input (without sending my live voice but my audio file) to the WebRTC connected user. Can anybody tell me how could it be done? I have done some following tries in the JS code, like: 1. base64 Audio <script> var base64string = "T2dnUwACAAAAAAA.."; var snd = new Audio("data:audio/wav;base64," + base64string); snd.play(); var Sound = (function () { var df = document.createDocumentFragment(); return function Sound(src) { var snd = new Audio(src); df

Audio Recording in Python

走远了吗. 提交于 2019-12-12 07:32:51
问题 I want to record short audio clips from a USB microphone in Python. I have tried pyaudio, which seemed to fail communicating with ALSA, and alsaaudio, the code example of which produces an unreadable files. So my question: What is the easiest way to record clips from a USB mic in Python? 回答1: This script records to test.wav while printing the current amplitute: import alsaaudio, wave, numpy inp = alsaaudio.PCM(alsaaudio.PCM_CAPTURE) inp.setchannels(1) inp.setrate(44100) inp.setformat

How can I use Harmonic Product Spectrum algorithm for overtone rich monophonic pitch detection and estimation in Unity3D

狂风中的少年 提交于 2019-12-12 02:37:11
问题 How can I calculate the Fundamental frequency of microphone input audio signal using GetSpectrumData in Unity ? 来源: https://stackoverflow.com/questions/42694778/how-can-i-use-harmonic-product-spectrum-algorithm-for-overtone-rich-monophonic-p

Wav file from microphone on Python

时间秒杀一切 提交于 2019-12-11 15:26:52
问题 My project is to do speaker recognition using a microphone. I'm using the speeh_recognition library to extract my microphone audio, but the object's class is 'speech_recognition.AudioData' and i don't know how to convert it into a wav file (in order to use librosa for example to then get audio features and maybe recognize the speaker). Could someone please help me on that ? I have been learning Python for not so long so there might also be easier ways to do speaker recognition using a mic :)

Force iPhone to read in data through headphone jack

亡梦爱人 提交于 2019-12-11 12:22:55
问题 I'm working on a project that ask the iPhone to receive data through headphone jack. I know it is doable, when I plug in the iPhone headphone it automatically change the input from the mac built in microphone to external microphone (I'm running the code on simulator) to record data. However, when I cut the headphone up and attach it to my signal generator, it seems that my mac cannot detect the external microphone anymore. Does anyone know how to manually set the headphone jack as the iPhone

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.

getUserMedia - what if user makes no choice?

假如想象 提交于 2019-12-11 08:18:57
问题 I've adapted a library to record MP3 audio via the user's microphone. If the user allows or rejects the microphone access request, I'm fine, but I note that MDN says this: Note that it is possible for the returned promise to neither resolve nor reject, as the user is not required to make a choice. But it doesn't seem to say what, if anything, I can do catch that "no choice made" action. If the user merely quits the dialog, or blurs out of it without making a choice, can I catch that and

Detecting if the microphone is on

梦想与她 提交于 2019-12-11 06:31:08
问题 Is there a way to programmatically detect whether the microphone is on on Windows? 回答1: No, microphones don't tell you whether they're ‘on’ or that a particular sound channel is connected to a microphone device. The best you can do is to read audio data from the input channel you suspect to be a microphone (eg. the Windows default input device/channel), and see if there's any signal on it. To do that you'd have to remove any DC offset and look for any signal above a reasonable noise floor.