Skip to content

Voice input and output support (STT/TTS layer) #526

Closed

Description

@haiphucnguyen

Summary

Add voice input and output to Askimo's chat interface. Voice is a convenience layer on top of the existing chat pipeline — the AI provider always receives and returns plain text, nothing changes in how messages are processed.

Voice Input: User speaks → Askimo records → STT API converts to text → text appears in input field → user sends as normal Voice Output: AI responds with text → user clicks 🔊 → TTS API converts to audio → Askimo plays it


Why

  • Hands-free interaction — dictate messages instead of typing
  • Listen to long AI responses without reading
  • Works with every provider (OpenAI, Claude, Gemini, Ollama, etc.) since it's just text under the hood

What Needs to Be Built

1. Core Voice Services

A SpeechToTextService and TextToSpeechService interface in shared/src/main/kotlin/io/askimo/core/voice/, with an initial OpenAI implementation (Whisper for STT, OpenAI TTS for TTS). Other providers can follow in future issues.

2. Voice Config

Add a VoiceConfig block to AppConfig (disabled by default — zero impact on existing users).

3. Voice Input Button in Chat

Add a 🎤 microphone button to the controls row in ChatInputField.kt, next to the existing attach button. States: idle → recording (red) → transcribing (spinner) → done. Transcribed text is inserted into the input field so the user can review and edit before sending.

4. Audio Recorder

Platform audio capture using standard JVM APIs (javax.sound.sampled) — no extra native dependencies needed.

5. Voice Playback on Messages

Add a 🔊 speaker button to message actions in MessageComponents.kt. Clicking it synthesises the message text and plays it. Only one message plays at a time.

6. Audio Player

Simple playback wrapper using javax.sound.sampled. Supports pause and stop.

7. Voice Settings

A new Voice section in Settings with toggles for enabling STT/TTS, model fields, voice selector, and speech speed slider.

8. Keyboard Shortcut

Cmd/Ctrl + Shift + M to toggle voice recording. Add to KeyMapManager and the shortcuts settings screen.

9. i18n Strings

All new UI text added to messages.properties so Crowdin picks them up for translation automatically.

Activity

  1. added
    enhancement
    help wanted
    on Jul 21, 2026
  2. haiphucnguyen commented on Aug 11, 2026

    @haiphucnguyen
    CollaboratorAuthor

    Hi @fasuizu-br , we haven't finalised the SpeechToTextService and TextToSpeechService interfaces yet, so we're not in a position to define or accept contract fixtures at this stage. The interface design needs to come first before anything else can be evaluated against it.

    That said, your concern about provider neutrality is exactly in line with our thinking. The interfaces will be designed to be provider-agnostic from the start. OpenAI/Whisper is just the first implementation, not the shape of the contract, so any provider should be pluggable once the interfaces are stable.

    Once the interface PR is up, we'd love to have your eyes on it to check whether the contract is truly provider-neutral. If there's still a gap at that point, we can revisit your fixture proposal with concrete field names and failure shapes to work from.
    For now, keep an eye on #526 for the interface design. Thanks again!

  3. minhnguyen-ai commented on Sep 2, 2026

    @minhnguyen-ai
    Contributor

    Hi @haiphucnguyen , I like to take this issue if no one took it yet.

  4. haiphucnguyen commented on Sep 2, 2026

    @haiphucnguyen
    CollaboratorAuthor

    Thank you @minhnguyen-ai . Assigned it to you

  5. haiphucnguyen commented on Sep 9, 2026

    @haiphucnguyen
    CollaboratorAuthor

    This issue has been resolved and in addressed the 1.5.0 release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementhelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions