Closed BlueMax closed 7 months ago
there is no such audio source available. And how do you define "better"? Louder? or what?
https://developer.android.com/reference/android/media/MediaRecorder.AudioSource#MIC
"Better" in being more sensitive catching more surroundings (as it uses two directional opposite microphones at once). The catch here might not necessarily be "external mic" but rather having both mics in use without noise-cancellation. The way to achieve this might differ from phone to phone (audio render paths) so giving options to the user might be the best choice. Some phones do not allow unprocessed dual-mic so using 'back' or 'front' (as single mic) is the only option there. But at least you can choose.
No idea how that would work as there is no such audio source for MediaRecorder as you can see in my link above. If someone knows it - I am looking forward to receiving a pull request.
OpenCamera
uses setAudioChannels for stereo (both microphones). There is no explicit microphone selection (front/back).
RecForge II
has (new API?) microphone selection (front/back). Setting Mono/Stereo
has separate menu (maybe same api as above). Unfortunately, its not open source. They might using setPreferredMicrophoneDirection or maybe setPreferredDevice.
We need mono and unprocessed. Mono can also use both microphones.
This is a great suggestion. Another open source app that allows source selection:
https://gitlab.com/axet/android-audio-recorder/
It would also be cool if the app could analyze existing recordings that are stores on the device.
I understand this should be a different ticket but thought I would float it here first.
Maybe it is wishful thinking that audio source selection changes anything. In the end those are just processed variants of the currently used unprocessed input. And that is exactly what BirdNET needs - unprocessed 48kHz mono input.
Maybe it is wishful thinking that audio source selection changes anything
Source selection would allow to use external microphones as in actually outside the device, for instance Bluetooth.
The ability to place an inexpensive battery-powered Bluetooth microphone strategically, and then go in hiding, instead of playing scarecrow with device in hand, should open up interesting avenues.
this version provides the options provided by AudioSource (same as in BirdNET app)
app-release.apk.zip For me this does not make any difference. So currently I do not plan to merge this.
-Uninstall -Remove .zip and install
Did you give the idea of interfacing with Bluetooth microphones any consideration ?
I do not have a Bluetooth microphone. If someone wants to implement and test a PR will be considered
You don't have a headset...?
No
Enjoying this app? Help us grow by sharing #whobird with your friends and followers on Instagram! Together, let's build a vibrant community!
Sounds like a plan.
An option to choose
audio source
would be great. On my smartphoneexternal mic/stereo
gives unprocessed/raw 2ch-stereo from both built-in microphones (top/bottom) that is much better than just one mic alone (audio paths might differ from device to device though). I've tested this thoroughly withRecforge II
. MaybeOpenCamera
might be of help here as it is open-source as well.