Live data from Hacker News

WhisperSpeech – An open source text-to-speech system built by inverting Whisper

github.com

81–90 of 119 posts

Re: WhisperSpeech – An open source text-to-speech system built by inverting Whisper

#81
post #65
post #43

Earlier quoted context omitted.

Hi, WhisperSpeech dev here, we only support Polish and English at the moment but we just finished doing some inference optimizations and are looking to add more languages. What we seem to need is high-quality speech recordings in any language (audiobooks are great) and some recordings for each target language which can be low-quality but need varied prosody/emotions (otherwise everything we generate will sound like a…

Last I checked, LibriVox had about 11 hours of Mandarin audiobooks and Common Voice has 234 validated hours of "Chinese (China)" (probably corresponding to Mandarin as spoken on the mainland paired with text in Simplified characters, but who knows) and 77 validated hours of "Chinese (Taiwan)" (probably Taiwanese Mandarin paired with Traditional characters). Not sure whether that's enough data for you. (If you need pa…

Librivox seems like a great source, being public domain, though the quality is highly variable.

I can recommend Elizabeth Klett as a good narrator. I've sampled her recordings of Jane Austen books Emma, pride and prejudice, and sense and sensibility.

Re: WhisperSpeech – An open source text-to-speech system built by inverting Whisper

#82
post #51
post #42

The Polish sample is really good. Sounds like an audiobook recording.

Both Polish and English samples are actually synthesized with a voice trained on the WolneLektury audiobooks. They are the highest quality open source (CC BY-SA) audiobooks I could find. By using the Whisper-derived phonetic representation (so called semantic tokens) we successfully trained a model with just a high-quality speech dataset of one language and the voice quality transferred to English.

Link to these in English? I found some hits that may be correct for Polish - but I'm guessing they're hosted somewhere canonical?

Re: WhisperSpeech – An open source text-to-speech system built by inverting Whisper

#83
post #50
post #4

I know it's old at this point and doesn't use the fancy new tech, but Mycroft's Mimic 3 is still pretty impressive and is small enough to fit comfortably and generate speech in real time on a raspberry pi [0]. Some of their voices are better than others, but the best of them are definitely equal to the examples of WhisperSpeech given here. [0] https://mycroft.ai/mimic-3/

Yeah, the Mimic is a lot less resource intensive. We are working to improve WhisperSpeech in this regard but it's probably always going to require more compute (but in return you'll get higher quality). That said if you have a modern NVidia GPU you should be able to run a voice-bot in real-time with WhisperSpeech.

Will something like whisper.cpp be possible for whisper speech?

Re: WhisperSpeech – An open source text-to-speech system built by inverting Whisper

#85

this is the best tts ive heard, the voice modulates as you'd expect a human to.

Not to step on any toes here (I've starred whisperspeech b/c it really is amazing and I intend to use it), but you should also check out Tortoise [1]. IMO the quality is a little better (for now) but it is painfully slow, even with KV caching it doesn't quite get up to real time on my 4090 except with very short snippets.

1 https://github.com/neonbjb/tortoise-tts

Re: WhisperSpeech – An open source text-to-speech system built by inverting Whisper

#86

The first demo on that page was trained from a 32kbps crappy sound quality clip of winston churchill...? garbage in, garbage out?

Must have been, it sounds very much like the quality of the "we shall fight on the beaches" speech.

A bit unfortunate choice for a demo, sadly.

Re: WhisperSpeech – An open source text-to-speech system built by inverting Whisper

#87

Aside: is it just me, or is anyone else just as dumbfounded with how quickly literally every aspect of AI and LLMs and Models and blah blah blah is going? Am I weird in just having my head spin - even though I've also been at leading edge tech before, but this is just me yelling at these new algos on my lawn?

on the contrary I'm really disappointed in how long its taking anything to get into production. Whisper and self-hostable LLMs had a cambrian explosion about 1 year ago, I attended a GPT4 hackathon last March and in 48 hours saw people hook up Speech2Text -> LLM -> Text2Speech pipelines for their live demos. I thought we would all have babelfish by June. Months later I later attended some conferences with internation…

I have a similar frustration with the lack of tooling around all this stuff.

Like, you had the time to train a bajillion parameter model with a ton of attendant code, but an installation script was a bridge too far. I get that python dependency management sucks, but you had to do it at least once for yourself.

Of course, here I am reinstalling CUdnn for the umpteenth time because this software is provided free of charge and it sprinkles magical fairy dust on my GPU so perhaps I shouldn't whine about it.

Re: WhisperSpeech – An open source text-to-speech system built by inverting Whisper

#88
post #79

Earlier quoted context omitted.

The quality difference between Eleven and OpenAI is IMO pretty small, but the price difference is enormous: for 50,000 characters (approx 1hr of audio, by Eleven's estimates), you'd pay Eleven Labs $9 assuming you're in their highest $330/month payment commitment tier; for OpenAI there's no minimum commitment and the same number of characters would cost $0.75. If you're generating speech once and replaying it many ti…

For anyone reading, in case you want a whole order of magnitude cheaper, just go with Google Cloud TTS. For many voices, you get 1 million characters free per month, and even beyond that it's ridiculously cheap. Some voices do sound artificial, but many sound quite human - the only tells are the relatively consistent tone and section ends (no appropriate pauses). I don't read long articles any more. I have a script t…

That's a good suggestion, thank you. Would it be possible to post some code? I've found GCP's APIs/documentation to be a bit abstruse.

Re: WhisperSpeech – An open source text-to-speech system built by inverting Whisper

#89
post #79

Earlier quoted context omitted.

The quality difference between Eleven and OpenAI is IMO pretty small, but the price difference is enormous: for 50,000 characters (approx 1hr of audio, by Eleven's estimates), you'd pay Eleven Labs $9 assuming you're in their highest $330/month payment commitment tier; for OpenAI there's no minimum commitment and the same number of characters would cost $0.75. If you're generating speech once and replaying it many ti…

For anyone reading, in case you want a whole order of magnitude cheaper, just go with Google Cloud TTS. For many voices, you get 1 million characters free per month, and even beyond that it's ridiculously cheap. Some voices do sound artificial, but many sound quite human - the only tells are the relatively consistent tone and section ends (no appropriate pauses). I don't read long articles any more. I have a script t…

None of their available voices are as good as ms

Re: WhisperSpeech – An open source text-to-speech system built by inverting Whisper

#90
post #54

Earlier quoted context omitted.

Yeah, Whisper is not clear-cut but since it is not a generative model I think their data usage is a lot more likely to be considered fair-use. And the part of that which we use for WhisperSpeech is just the phonetic representation so our model is not able to recreate any of the Whisper training data in any way.

The readme says "We are working only with properly licensed speech recordings and all the code is Open Source so the model will be always safe to use for commercial applications." Is that less certain than the quote implies?

We are working hard to uphold all the licensing rules but nobody can absolve you from all legal risks.

There may be a court ruling/new law that any training needs a special permission from the original author and then even a CC-BY license won't cover this.

Post reply on HN