Skip to content

Conversation

@xenova
Copy link
Collaborator

@xenova xenova commented Nov 19, 2025

Links:


Example usage:

import { pipeline } from '@huggingface/transformers';

const model_id = 'onnx-community/Supertonic-TTS-ONNX';
const tts = await pipeline('text-to-speech', model_id, { dtype: 'fp32' });

const input_text = 'This is really cool!';
const audio = await tts(input_text, {
    speaker_embeddings: 'https://huggingface.co/onnx-community/Supertonic-TTS-ONNX/resolve/main/voices/F1.bin',
});
await audio.save('output.wav');
output.mp4

TODOs:

  • Add to list of supported models
  • Create web demo
  • Add model quantizations
  • Use default speaker embeddings?

@xenova xenova requested a review from nico-martin November 19, 2025 05:09
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Collaborator

@nico-martin nico-martin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!
I think its great that users can set the num_inference_steps, since it has a huge impact on the quality :).
As sugested in the comments I would make the speaker_embeddings optional and set a default. For now its not easy to create a custom voice so people will mosk likely have to use a default voice anyways. So I would add a comment on how they can switch between one of the four default voices but they dont have to set specify a speaker_embeddings.

@xenova
Copy link
Collaborator Author

xenova commented Nov 19, 2025

For now its not easy to create a custom voice so people will mosk likely have to use a default voice anyways. So I would add a comment on how they can switch between one of the four default voices but they dont have to set specify a speaker_embeddings.

Sounds good! 👍

@xenova xenova merged commit 9e3c586 into main Nov 19, 2025
4 checks passed
@xenova xenova deleted the add-supertonic branch November 20, 2025 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants