Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send recorded audio as microphone input

What must I write to send a recorded audio file as the microphone input in android programmatically?

Example:

User records "hello world".

He can then play the recording in a call.

like image 802
theAnonymous Avatar asked Mar 06 '17 15:03

theAnonymous


People also ask

How do you send audio as microphone input?

Open the setting of one your microphone devices and enable "Listen to device", select your current output device from the list. Playback audio on that same output device. The mic signal equals the output signal.

How do I set audio output as mic input Mac?

On your Mac, choose Apple menu > System Settings, then click Sound in the sidebar. (You may need to scroll down.) Click Input on the right, then select the device you want to use in the list of sound input devices. All sound input devices available to your Mac are listed.

How do I change the input on an audio recording?

Select Start (Windows logo Start button) > Settings (Gear-shaped Settings icon) > System > Sound. In Sound settings, go to Input > Choose your input device, and then select the microphone or recording device you want to use.


1 Answers

once you have a recorded file, you can open it as a InputStream, or any other way. BUT if you specifically looking for something like injecting the audio into a running call, then this is not possible. it's protected OS-level.

unless you are dealing with custom ROMs and modified kernels. which is not official

like image 123
Yazan Avatar answered Nov 05 '22 04:11

Yazan