as I could not find a suitable app in the Play store, I want to try coding it myself.
I need a plain vanilla megaphone under Android (4.1 and later):
as I speek into the headset, I want the audio "stream" to be spoken through the loudspeaker - in realtime, without any intermittent recording, streaming etc.
Is this "megaphone functionality" directly supported through APIs?
Is there any example app (with or without sourcecode) with retranslation functionality that I might have missed?
Thanks,
Michael
You can do this with the API functions, but not without buffering/streaming to the speaker. You basically have to route what you get from
AudioRecord
into anAudioTrack
. You can probably find code examples of this online.As for the "ready-to-use" part, asking for 3rd-party recommendations is off-topic here. You may want to remove/rephrase that. Otherwise, your question is a target for closure.