What matters in AI.

Subscribe

Learn / AI basics

Definition · AI basics

Voice model

A voice model is an AI model that takes in spoken audio, makes spoken audio, or does the two. Some voice models do one task, such as speech recognition or text to speech. GPT-4o and Moshi hear and answer in speech with one model, not a chain.

Last reviewed

Key points

  • A voice model hears speech, makes speech, or does the two. A voice AI system uses one or more voice models.
  • The older design is a chain of three models. OpenAI gives 2.8 to 5.4 seconds average latency for its chained Voice Mode (May 2024).
  • A speech to speech model does all steps in one model. GPT-4o averages 320 ms (OpenAI). Moshi gives 200 ms in practice (Kyutai).
  • A chain loses tone and background sound at the text step. But it gives you text to record and examine.
  • Audio is a new attack input. Researchers hid instructions in audio, and OpenAI saw anecdotal evidence of weaker safety with low quality audio.

The three types of voice model

Type Input Output Example
Speech recognition speech text Whisper (OpenAI, 2022)
Text to speech text speech VALL-E (Microsoft research, 2023)
Speech to speech speech speech GPT-4o (OpenAI, 2024), Moshi (Kyutai, 2024)

Newer voice models use a neural audio codec. The codec cuts audio into small tokens. A language model then predicts sound tokens as it predicts words.

Chain vs speech to speech

A voice AI system has one of two primary shapes.

A chained voice system has three models and a text step. A speech to speech model has one model.
A chained voice system has three models and a text step. A speech to speech model has one model.
Question Chain Speech to speech
Speed slower faster
Tone and background sound not kept after the text step kept
Text to record and examine yes, at each step less
Replace one part yes no

Many speech to speech models are multimodal models.

Why voice models are a security problem

  1. Voices that are not approved. In OpenAI tests, GPT-4o in “rare instances” copied the voice of the user. The same function drives voice cloning.
  2. Instructions hidden in sound. Bagdasaryan and colleagues put an adversarial change into an audio recording. The model then gave text that the attacker chose (2023). This is a type of indirect prompt injection.
  3. Weaker safety with low quality audio. OpenAI saw “anecdotal evidence” of weaker safety with noise, echoes and interruptions (GPT-4o System Card, August 2024).

A chain gives defenders a transcript to examine before the language model acts. A transcript does not show tone or a hidden signal.

In practice

  • Fixed voices. OpenAI lets GPT-4o use only a fixed set of voices. An output classifier “catches 100% of meaningful deviations from the system voice”, in the internal tests of OpenAI.
  • Speaker identity. OpenAI trained GPT-4o to refuse to identify a person from their voice. The refusal score went from 0.83 to 0.98.
  • Three designs from one vendor. The OpenAI voice agent documentation gives a chained pipeline, the Realtime API with one model, and GPT-Live. GPT-Live “can listen and speak at the same time”.
  • Open models. The Whisper models and inference code are public. You can operate speech recognition on your own hardware.

Questions and answers

What is the difference between a voice model and voice cloning?

A voice model is a model that hears or makes speech. Voice cloning is one use of a voice model: it makes speech in the voice of a specific person. The VALL-E research model from Microsoft did this from a 3-second recording of a new speaker (2023).

Is a speech to speech model better than a chain of speech to text, LLM and text to speech?

Not for all uses. A speech to speech model answers faster and keeps tone. A chain gives you text at each step. You can record that text, examine it, and replace one part. The OpenAI documentation gives the two designs.

Sources

  1. Hello GPT-4oOpenAI, 13 May 2024
  2. Robust Speech Recognition via Large-Scale Weak SupervisionarXiv (Radford et al., OpenAI), 6 Dec 2022
  3. Moshi: a speech-text foundation model for real-time dialoguearXiv (Défossez et al., Kyutai), 17 Sep 2024
  4. Neural Codec Language Models are Zero-Shot Text to Speech SynthesizersarXiv (Wang et al., Microsoft), 5 Jan 2023
  5. GPT-4o System CardOpenAI, 8 Aug 2024
  6. Abusing Images and Sounds for Indirect Instruction Injection in Multi-Modal LLMsarXiv (Bagdasaryan et al.), 19 Jul 2023
  7. Voice agentsOpenAI

In the news