- Home /
Question by
zastrow · Dec 17, 2015 at 11:43 PM ·
iosmicrophoneaudiolistener
Take Audio in from Mic but not play it out over speakers iOS
GetComponent<AudioSource>().clip = Microphone.Start(selectedDevice, true, 1, maxFreq);//Starts recording
while (!(Microphone.GetPosition(selectedDevice) > 0)) { } // Wait until the recording has started
GetComponent<AudioSource>().Play(); // Play the audio source!
I'm using this code to start the mic up and generate a sound file but it plays out to the speakers.
How can I have it so that the Unity Audio Listener hears it, but it doesn't go out to the speakers?
Comment
old thread.. but did you find a solution? I need to do exactly that
Your answer
Follow this Question
Related Questions
How to record the AudioListener without it playing the microphone on the speakers? 1 Answer
Determine If player Is Shouting into microphone 1 Answer
No Audio in ReplayKit recording 2017.3.0f3 1 Answer
How to force audio through iPhone loudspeaker when microphone is being used? 1 Answer
Unity doesn't work with Microsoft cognitive SpeechToText iOS SDK 0 Answers