feat: add VOICE_COMMUNICATION audio source option#167
Merged
DevEmperor merged 1 commit intoJul 7, 2026
Conversation
Add as a new enum value. This uses (priority 7) which is higher than CAMCORDER (5), preventing Dictate from being muted when other apps (e.g. dictaphones, camera) hold a microphone lock. The VOICE_COMMUNICATION source was already mentioned in the class javadoc (line 27) as the default for Bluetooth-SCO; this exposes it as a user-selectable option in the audio source picker. Fixes dual-mic scenario: Dictate voice input + background dictaphone.
Owner
|
Thanks! Merging. VOICE_COMMUNICATION does trade some transcription-tuning for the higher audio priority (it runs the call-style processing), but the priority benefit — not getting muted when another app grabs the mic — is worth exposing as a choice. I'll follow up with the settings picker entry + label so users can actually select it. |
DevEmperor
added a commit
that referenced
this pull request
Jul 7, 2026
…167) PR #167 added VOICE_COMMUNICATION to DictateAudioSource but nothing surfaced it, so users couldn't choose it. Add the picker entry in the recording settings and its label/summary (translated into the 20 core locales), and document the trade-off on the enum: highest capture priority (Dictate keeps working when another app holds the mic) at the cost of call-tuned processing that can reduce transcription accuracy.
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.
Что добавлено
Добавлен новый режим
VOICE_COMMUNICATIONвDictateAudioSource— позволяет использоватьMediaRecorder.AudioSource.VOICE_COMMUNICATION(приоритет 7) для захвата аудио.Зачем это нужно
Сейчас Dictate использует
MICилиVOICE_RECOGNITION— оба с низким приоритетом.Когда другое приложение (диктофон, камера) держит микрофон через
CAMCORDER(приоритет 5),Dictate глушится — голосовой ввод перестаёт работать.
VOICE_COMMUNICATIONимеет самый высокий приоритет (7) среди аудиоисточников,поэтому Dictate не будет заглушаться при параллельной записи на диктофон или камеру.
Что изменилось
В одном файле
DictateAudioSource.ktдобавлено 2 строки:Примечание
VOICE_COMMUNICATIONуже упоминался в javadoc класса (строка 27) как используемый дляBluetooth-SCO. Этот PR просто делает его доступным для выбора пользователем.