Skip to content

Add Sarvam AI (Saaras v4) speech-to-text provider in Settings > Voice #495

Done

Description

@Satya-Siba-Nayak

Summary

Requesting native speech-to-text support for Sarvam AI (saaras:v4) under Settings > Voice alongside the existing cloud transcription providers (elevenlabs, openai, groq, deepgram, assemblyai).

Why openai-compatible does not cover Sarvam AI

Dusk bot's openai-compatible voice provider (electron/voice-providers.mjs) posts to ${base}/audio/transcriptions using Authorization: Bearer <key> and reads body.text. Sarvam AI's speech-to-text API differs on all three:

  • Endpoint: POST https://api.sarvam.ai/speech-to-text (multipart/form-data)
  • Auth header: api-subscription-key: <key>
  • Request fields: file (WAV), model (saaras:v4, legacy saaras:v3), mode (transcribe, translate, verbatim, translit, codemix), optional language_code (BCP-47 such as en-IN, hi-IN, or unknown for auto-detect across Indian languages and Global English)
  • Response field: transcript (instead of text)
  • Optional streaming: Sarvam also provides a WebSocket streaming endpoint (wss://api.sarvam.ai/speech-to-text/ws) with Api-Subscription-Key auth if realtime dictation is desired.

Why this is useful

saaras:v4 has strong multilingual and code-mixed recognition across Indian languages and Global English, where general Whisper-based providers often struggle.

Relevant code

  • electron/voice-catalog.mjs (VOICE_PROVIDERS, VOICE_PROVIDER_INFO)
  • electron/voice-providers.mjs (transcribeClip)
  • server/tts/listen.ts (ListenProvider, listener, transcribe)

Activity

  1. SiddDevZ commented on Dec 3, 2026

    @SiddDevZ
    Contributor

    Added on dev via #496 (Sarvam AI speech-to-text in Settings > Voice), shipping in the next release.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions