Skip to main content
Rime speech-to-text turns speech across 13 languages into text. It returns partial transcripts while the person speaks, then returns a final transcript that you can send to the language model of your voice agent.

Transcribe your first recording

Stream a sample call through the Rime SDK in Python, Node.js, Go, or Rust, and print its transcript.

Speech-to-text at a glance

How a transcription works

Keep these points in mind:
  1. Keep the API key on your backend. Browsers and phones send their audio to your backend, not to Rime.
  2. Open one stream for each utterance. Set language when you know the speaker’s language, or let the direct WebSocket or gRPC API detect it under revised hypotheses.
  3. Treat each partial transcript as the whole transcript so far. Each partial transcript replaces the one before it.
  4. Use only the final transcript as the complete text. A stream that ends without a final transcript has failed, even if partial transcripts arrived.

Choose how to connect

Use the Rime SDK if your backend is in Python, Node.js, Go, or Rust and you select the language explicitly with written or verbatim mode. The SDK packages are in alpha. Call the WebSocket or gRPC API directly if your backend uses another language, or if you need automatic language detection or tagged mode. To send a complete WAV recording in one request (up to 16 MiB and 524 seconds), use the SDK’s transcribe call or gRPC Transcribe.
A direct WebSocket stream or gRPC TranscribeStreaming call must also name its output contract, because there is no default. The output contract sets the form of the updates. gRPC Transcribe and the SDK’s transcribe call take no output contract, and they return one final transcript.

Long turns and recordings

Every stream has a 120-second wall-clock deadline and a 16 MiB audio limit. How the model’s context behaves on long audio depends on the language and the path:
  • Revised hypotheses in non-CJK languages (ar, de, en, es, fr, hi, id, it, nl, pt): Once the language is selected or locked, the service uses a sliding window of up to two 8-second audio blocks (up to 24 seconds while holding an older block) plus new audio, committing earlier words as older blocks drop. The model input stays bounded across the stream, though the 120-second deadline still applies.
  • Revised hypotheses in Mandarin (cmn), Japanese (ja), Korean (ko), or while detecting a language: The service keeps all audio in the model’s context, so a long turn can fill the context before 120 seconds. End the utterance at a pause and start the next stream, as Split long turns at pauses shows.
  • Recordings: Fixed-frame WAV files (PCM, float, A-law, or mu-law) up to 16 MiB and 524 seconds (about 8.7 minutes) can go to Transcribe or the SDK’s transcribe call, which decodes audio longer than 30 seconds in 30-second pieces within the 120-second deadline. For longer recordings, or to get incremental output faster than real time, stream parts of at most 16 MiB with append fragments (also available in the SDK).

What you can control

Results are text only. Rime speech-to-text does not offer these items:
  • End-of-speech detection
  • Word timestamps
  • Confidence scores
  • Speaker labels

Next

Stream live audio

Replace the sample file with audio from your application. Send each final transcript to your language model.