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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With