Skip to content

feat(voice): show recording progress and auto‑play responses - #695

Merged
haiphucnguyen merged 2 commits into
askimo-ai:mainfrom
larry-ca:feature/show-progress-while-recording
Sep 4, 2026
Merged

haiphucnguyen merged 2 commits into
askimo-ai:mainfrom
larry-ca:feature/show-progress-while-recording

Conversation

@larry-ca

@larry-ca larry-ca commented Sep 4, 2026

Copy link
Copy Markdown
Contributor
  • 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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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 VoiceConfig fields: autoSendTranscript, autoPlayResponses, and configurable openAiTtsVoices (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.

Comment on lines +296 to +299
if (newValue == VoiceProvider.OPENAI && ttsVoice !in openAiTtsVoices) {
ttsVoice = "alloy"
AppConfig.updateField("voice.ttsVoice", "alloy")
}
Comment on lines +569 to +573
Icon(
Icons.Default.Edit,
contentDescription = "Change voice",
tint = AppTextStyles.primaryContent,
)

@haiphucnguyen haiphucnguyen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @larry-ca for using and improve the application!

@haiphucnguyen
haiphucnguyen merged commit f79239a into askimo-ai:main Sep 4, 2026
10 checks passed
@larry-ca
larry-ca deleted the feature/show-progress-while-recording branch October 3, 2026 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants