llama.cpp b12061

b12061Pre-release
Added 3
  • Support PocketTTS voices without voice cloning, using predefined voices stored in the mmproj as voice.<name> entries.
  • The mtmd_gen_audio_info struct gains n_voices and mtmd_gen_audio_voice_name() to list predefined voices for any audio generation model.
  • The server lists predefined voices under a "voices" field in GET /props when the model ships some.
Changed 6
  • The /tts endpoint and --tts-voice option select a predefined voice via the "voice" field, and a speaker reference is rejected when the model has no voice encoder.
  • The converter re-prompts the backbone with recovered embeddings, compares the full state, logs per-voice drift, and warns above 5%, skipping states that do not match the weights instead of failing.
  • An unknown voice name now returns HTTP 400 naming the voice instead of a 500 "failed to process TTS prompt" error.
  • A model without predefined voices ignores the "voice" field with a warning instead of failing.
  • When neither a voice nor a speaker reference is given, llama-tts and the server use the first predefined voice by default.
  • The LFM3-Audio voice name is matched case-insensitively, so "Male" resolves to the male voice.

From llama.cpp

mtmd: Pocket tts - support for voices without voice cloning (#31429)

  • feat: support PocketTTS voices with no voice cloning

The kyutai/pocket-tts-without-voice-cloning weights ship predefined voices as the backbone KV state after the voice prompt. The converter turns each state back into the prompt embeddings and stores them in the mmproj (voice.), the zeroed voice encoder is left out, and the "voice" field of /tts and --tts-voice select one of them. A speaker reference is rejected when the model has no voice encoder.

Assisted-by: Claude Fable 5.1

  • convert : pocket-tts voices never fail the conversion, log the drift of the state

The voice states shipped by Kyutai are not always the ones the pack's weights give for the prompt: italian, german and spanish match within the bf16 rounding, english_2026-04 is 2% off and french 20% (its layer 0 state comes from other weights), while the reference loads them as is and they still sound like the same voice. The converter now re-prompts the backbone with the recovered embeddings, compares the whole state and logs the distance per voice, warning above 5%. A state that does not belong to the weights at all is skipped, so the packs of kyutai/pocket-tts convert too.

Assisted-by: Claude Fable 5.1

  • mtmd : list the predefined voices, expose them in GET /props

mtmd_gen_audio_info gains n_voices and mtmd_gen_audio_voice_name() the names, with the voices worded as a feature of any audio generation model. The server lists them under "voices" in /props when the model ships some.

Assisted-by: Claude Fable 5.1

  • server : an unknown voice is a bad request

A model with predefined voices answers 400 naming the voice instead of 500 "failed to process TTS prompt". A model without them ignores "voice" with a warning, as the other audio generation models do.

Assisted-by: Claude Fable 5.1

  • refactor api

  • fix conversion

  • small renaming

  • fix lint

  • tts : a model with predefined voices speaks with the first one by default

Without a voice prompt such a model only produces near silence. When neither a voice nor a speaker reference is given, llama-tts and the server now take the first predefined voice and say so in the log, as the LFM3-Audio template does with its default voice.

Assisted-by: Claude Fable 5.1

  • mtmd : one comment per voice accessor, converter states the rule only

The clip.h comment described clip_gen_get_voice but sat above all three functions; the converter comment quoted the drift measured per pack, which goes stale with the next upload of the weights.

Assisted-by: Claude Fable 5.1

  • clean up redundant code and comments

  • mtmd: match the LFM3-Audio voice name case-insensitively

The tts chat template lowers the voice name, so Male speaks with the male voice; the voice lookup lowers it the same way and names the bitmap after the canonical voice.


Co-authored-by: Xuan Son Nguyen son@huggingface.co Co-authored-by: Pascal admin@serveurperso.com

Website:

Attestations:

macOS/iOS:

Linux:

Android:

Windows:

openEuler:

  • DISABLED
  • openEuler x86 (310p)
  • openEuler x86 (910b, ACL Graph)
  • openEuler aarch64 (310p)
  • openEuler aarch64 (910b, ACL Graph)

UI:

View original

Upgraded? How did it go?

Discussion