Skip to content
mentoor

Topic 1 of 5 · 4 min read

Choosing speech-to-text and text-to-speech models

Goal: Pick a transcription model and a speech model for a stated product given its languages, latency target, cost limit and data-residency rule, and justify each choice.

Choose speech models from the product's hard limits first (languages, latency, data residency, cost) and from leaderboard scores last. A model that tops a benchmark is still the wrong pick if your audio may not leave the country.

Check yourself · 1 of 3

A voice assistant must show text while the user is still speaking. Which capability is required from the transcription model?

Choose one answer

Why it matters

Speech-to-text (STT) turns audio into text. Text-to-speech (TTS) turns text into audio. Teams often pick the first vendor they used for chat. Then they find that it cannot stream, does not label speakers, or sends call recordings to a region the contract forbids. Switching later means rewriting the audio pipeline.

How to choose

Write the constraints as a short table, then eliminate:

  1. Batch or streaming. Batch takes a finished file and returns the full transcript. Streaming takes small chunks of audio and returns text while the person is still talking. Voice assistants need streaming. Meeting notes and podcast captions can use batch, which is usually cheaper and more accurate.
  2. Languages. Check each language you need, not the headline count. Support for a language can mean rough accuracy only. Test your own accents.
  3. Extra features. Speaker labels (diarization), word timestamps, punctuation and custom vocabulary differ by vendor.
  4. Where audio is processed. Hosted APIs (OpenAI, Google, Deepgram, ElevenLabs and others) send audio to the vendor. Open-weight models such as Whisper run on your own server, so audio stays with you, but you pay for GPUs and run them yourself.
  5. Price. Vendors bill STT per audio minute and TTS per character, per audio minute or, for some models, per token. Compare using your real monthly volume. Check the current price page, because prices change often.
  6. TTS needs. First audio byte time, voice choice, languages, and whether the licence allows your use.

Before and after

Weak: "We will use the model that is best on the leaderboard for English." The product is a Spanish and English phone line for a clinic, with a rule that recordings stay in the EU.

Better: "Streaming STT is required, so batch-only models are out. Spanish and English must both be tested on 20 real calls. Audio must stay in the EU, so use a vendor's EU endpoint or self-host Whisper. TTS must reach first audio in under 300 ms."

What goes wrong

  • Leaderboard scores on clean read speech do not predict phone-quality audio with background noise.
  • Whisper-style models are built for files. Some can be run in chunks to feel like streaming, but they were not designed as low-latency streaming recognisers. Check that the setup you pick really streams.
  • Per-minute prices hide silence. If you stream a whole call, you may pay for the long gaps. Cut silence before sending, where your vendor allows it.
  • Licence limits on TTS output, such as no commercial use of a voice, are found after launch.

Examples

A selection table for a clinic phone line

Need Hosted API in EU region Self-hosted Whisper
Streaming Yes, native Only through chunking you build
Spanish and English Test on 20 calls Test on 20 calls
Audio stays in the EU Yes, if the EU endpoint is contractually bound Yes, by design
Running cost Per audio minute GPU server plus engineer time

The table shows which cell needs a test instead of a guess. The team trials both on the same recordings.

Key points

  • List hard constraints first: streaming need, languages, data residency and cost limit, then compare models.
  • Batch transcription is cheaper and usually more accurate; streaming is required whenever a person waits for the reply.
  • Hosted APIs send audio to the vendor; open-weight models like Whisper keep audio on your server at the price of running GPUs.
  • Test every required language and accent on your own audio instead of trusting the language count on a vendor page.
  • Read the TTS voice licence before you build a product around one voice.

Common mistakes

  • Picking the model with the best benchmark score without checking streaming, residency or licence.
  • Judging a language as supported because it appears in a list, without testing real speakers.
  • Comparing prices per minute without multiplying by your real monthly audio volume, including silence.
  • Assuming a file-based model such as Whisper behaves like a low-latency streaming recogniser.

Check yourself · 2 of 3

A law firm forbids client recordings from leaving its own servers. Which option satisfies this rule?

Choose one answer

Check yourself · 3 of 3

A vendor page says its speech model supports 60 languages. What is the best next step before relying on your language?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic