Repository navigation
Add unprocessed audio source (raw mic for RTA / measurement) - #185
Merged
Merged
Conversation
Records the raw microphone signal (no AGC, noise suppression or voice EQ) so the phone can be used as a measurement mic for RTA / SPL tools without root or other phone modifications. - maps to MediaRecorder.AudioSource.UNPROCESSED on API 24+ - falls back to VOICE_RECOGNITION when the device doesn't advertise PROPERTY_SUPPORT_AUDIO_SOURCE_UNPROCESSED, when the recorder fails to initialize, or on API 23 - explicitly disables vendor AGC / NS / AEC effects on the session - tells the user when the fallback is used Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
|
Thanks for the PR! |
ID-VerNe
pushed a commit
to ID-VerNe/AndroidMic
that referenced
this pull request
Nov 16, 2026
…urce Add unprocessed audio source (raw mic for RTA / measurement)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an Unprocessed option to the Android Audio Source setting. It records the raw microphone signal, with no automatic gain control, noise suppression or voice EQ. That makes AndroidMic usable as a measurement mic for real-time analyzers (RTA), SPL meters and room-EQ tools, with no root and no other changes to the phone.
Changes
AudioSource.Unprocessedmaps toMediaRecorder.AudioSource.UNPROCESSED(API 24+). On API 23 it usesVOICE_RECOGNITIONinstead, which the CDD requires to have AGC and noise reduction disabled.MicAudioManager:AudioManager.PROPERTY_SUPPORT_AUDIO_SOURCE_UNPROCESSED. On devices that don't support it,UNPROCESSED"behaves like DEFAULT" (processed), so we switch toVOICE_RECOGNITION. We also switch if the recorder fails to initialize withUNPROCESSED.AutomaticGainControl,NoiseSuppressorandAcousticEchoCancelerthat the vendor attached to the session, and releases them on shutdown.ForegroundServiceadds a note to the "Microphone has started to record" message when it had to fall back, so the user knows they aren't getting raw audio.unprocessed_not_supported(en, fr, zh-CN).Other audio sources behave exactly as before. The new enum value goes at the end, so saved preferences aren't affected.
Testing
./gradlew assembleReleasebuilds.For accurate RTA readings, users should also turn off denoise and post-processing effects in the PC app.
🤖 Generated with Claude Code