-
Notifications
You must be signed in to change notification settings - Fork 837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create a new onnx TTS model like mms-tts-eng #1174
Comments
Hello again, I managed to convert the model using the script provided in the documentation and this thread: I have finally published it here: However, I am unable to get the model to work in a basic browser example (nor any of the available models like Xenova/mms-tts-eng), as they return a 404 error when trying to fetch a preprocessor_config.json.
If you could guide me in any way or provide a basic example that uses this model in the browser, I would greatly appreciate it. Best regards, |
I'm not sure why you're your browser is pulling https://huggingface.co/Xenova/mms-tts-fra/resolve/main/preprocessor_config.json As the url https://huggingface.co/Xenova/mms-tts-fra/resolve/main/ does not exist. I converted the model you point to above and didn't have an issue running the baseline test below - does this work for you? import { pipeline } from "@xenova/transformers";
import wavefile from "wavefile";
import fs from "fs";
// Create a text-to-speech pipeline
const synthesizer = await pipeline(
"text-to-speech",
"neonwatty/mms-tts-mlg-onnx",
{
quantized: false,
}
);
// Generate speech
const output = await synthesizer("Salama");
const wav = new wavefile.WaveFile();
wav.fromScratch(1, output.sampling_rate, "32f", output.audio);
fs.writeFileSync("out.wav", wav.toBuffer()); |
The URL is not correct and I had left it there from other tests. I have tested with that code and it seems to work without problems now. Thank you very much for the help! Regards, |
That's great! |
If anyone is looking for the final full code of the PoC I was making I'll leave it here and the demo: https://elloza.com/malagasy-tts/ Currently one of my students is working on this project as a browser extension (I'll share the link when he finishes) Thanks so much for the help again! |
Question
First of all, congratulations on such a great library!
I would like to ask for your guidance and assistance in creating a new onnx model similar to the following one:
https://huggingface.co/Xenova/mms-tts-eng/tree/main
…but for the Malagasy language:
https://huggingface.co/facebook/mms-tts-mlg
Could you provide me with some advice on how to create that model?
Thank you so much.
The text was updated successfully, but these errors were encountered: