Repository navigation
feat(voice): show recording progress and auto‑play responses - #695
haiphucnguyen merged 2 commits into
Conversation
larry-ca
commented
Sep 4, 2026
- Add waveform samples state to display recording progress.
- Update mic icon color based on recording state.
- Enable auto-send / auto‑play of AI responses when enabled in settings.
- Add waveform samples state to display recording progress. - Update mic icon color based on recording state. - Enable auto‑play of AI responses when enabled in settings. - Add auto‑send and auto‑play options to voice settings UI. - Update i18n messages for new settings and descriptions. - Extend AppConfig with autoSendTranscript and autoPlayResponses flags.
There was a problem hiding this comment.
🟡 Changes recommended
There is at least one user-visible correctness issue in the new voice-selection logic (OpenAI fallback voice hardcoded to a value that may not exist in the configured voice list).
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
This PR expands the voice feature set by adding opt-in “hands-free” behaviors (auto-send after dictation and auto-play of completed AI responses) and improves the desktop UI/UX around recording and TTS voice selection, including making OpenAI TTS voices configurable via askimo.yml.
Changes:
- Add new
VoiceConfigfields:autoSendTranscript,autoPlayResponses, and configurableopenAiTtsVoices(plus YAML example and update-field support). - Update desktop Voice settings UI with STT/TTS sections, auto-send/auto-play toggles, and an OpenAI voice dropdown (vs free text for Piper).
- Update chat UI: live waveform state handling, persistent “Transcribing…” indicator, auto-send after transcription, and auto-play of newly completed AI responses.
File summaries
| File | Description |
|---|---|
| shared/src/main/kotlin/io/askimo/core/config/AppConfig.kt | Adds new voice config flags and a configurable OpenAI TTS voice list with YAML examples and update handling. |
| desktop/src/main/kotlin/io/askimo/desktop/settings/VoiceSettingsSection.kt | Adds STT/TTS grouping, new toggles, and an OpenAI voice dropdown selector. |
| desktop-shared/src/main/resources/i18n/messages.properties | Adds new settings labels/descriptions and updates TTS voice placeholder keys for Piper. |
| desktop-shared/src/main/resources/i18n/messages_zh_TW.properties | Localizes new voice settings strings and placeholder changes. |
| desktop-shared/src/main/resources/i18n/messages_zh_CN.properties | Localizes new voice settings strings and placeholder changes. |
| desktop-shared/src/main/resources/i18n/messages_vi_VN.properties | Localizes new voice settings strings and placeholder changes. |
| desktop-shared/src/main/resources/i18n/messages_pt_BR.properties | Localizes new voice settings strings and placeholder changes. |
| desktop-shared/src/main/resources/i18n/messages_ko_KR.properties | Localizes new voice settings strings and placeholder changes. |
| desktop-shared/src/main/resources/i18n/messages_ja_JP.properties | Localizes new voice settings strings and placeholder changes. |
| desktop-shared/src/main/resources/i18n/messages_fr.properties | Localizes new voice settings strings and placeholder changes. |
| desktop-shared/src/main/resources/i18n/messages_es.properties | Localizes new voice settings strings and placeholder changes. |
| desktop-shared/src/main/resources/i18n/messages_de.properties | Localizes new voice settings strings and placeholder changes. |
| desktop-shared/src/main/kotlin/io/askimo/ui/chat/MessageComponents.kt | Adds opt-in auto-play behavior when an AI message transitions from streaming to persisted. |
| desktop-shared/src/main/kotlin/io/askimo/ui/chat/ChatInputField.kt | Adds auto-send after transcription, improves “transcribing” UX, and refactors waveform samples state updates. |
Review details
- Files reviewed: 14/14 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| if (newValue == VoiceProvider.OPENAI && ttsVoice !in openAiTtsVoices) { | ||
| ttsVoice = "alloy" | ||
| AppConfig.updateField("voice.ttsVoice", "alloy") | ||
| } |
| Icon( | ||
| Icons.Default.Edit, | ||
| contentDescription = "Change voice", | ||
| tint = AppTextStyles.primaryContent, | ||
| ) |
haiphucnguyen
left a comment
There was a problem hiding this comment.
Thank you @larry-ca for using and improve the application!