News for hackers. Stuff that matters.
Re:WhisperSpeech – An open source text-to-speech system buil... by siraben on Wednesday January 17, 2024 @11:37PM (#39037909)
Interested to see how it performs for Mandarin Chinese speech synthesis, especially with prosody and emotion. The highest quality open source model I've seen so far is EmotiVoice[0], which I've made a CLI wrapper around to generate audio for flashcards.[1] For EmotiVoice, you can apparently also clone your own voice with a GPU, but I have not tested this.[2]

[0] https://github.com/netease-youdao/EmotiVoice

[1] https://github.com/siraben/emotivoice-cli

[2] https://github.com/netease-youdao/EmotiVoice/wiki/Voice-Clon...

Re:WhisperSpeech – An open source text-to-speech system buil... by modeless on Wednesday January 17, 2024 @11:54PM (#39038024)
Did you try XTTS v2 for Mandarin? I'm curious how it compares with EmotiVoice.
Re:WhisperSpeech – An open source text-to-speech system buil... by thorum on Thursday January 18, 2024 @04:35AM (#39039791)
It has a big problem with hallucination in Chinese, random extra syllables all over the place.
Re:WhisperSpeech – An open source text-to-speech system buil... by modeless on Thursday January 18, 2024 @10:24AM (#39042826)
Makes sense, I get hallucinations in English too.
Re:WhisperSpeech – An open source text-to-speech system buil... by wferrell on Wednesday January 17, 2024 @11:44PM (#39037959)
Have you released your flashcard app?
Re:WhisperSpeech – An open source text-to-speech system buil... by siraben on Wednesday January 17, 2024 @11:46PM (#39037967)
It's just an Anki deck.
Re:WhisperSpeech – An open source text-to-speech system buil... by nmfisher on Thursday January 18, 2024 @12:47AM (#39038378)
If you're interested, I have a small side project (https://imaginanki.com) for generating Anki decks with images + speech (via SDXL/Azure).
Re:WhisperSpeech – An open source text-to-speech system buil... by westurner on Thursday January 18, 2024 @02:51AM (#39039135)
Some language learning resources From "Show HN: Open-source tool for creating courses like Duolingo" (2023) https://news.ycombinator.com/item?id=38317345 :

> ENH: Generate Anki decks with {IPA symbols, Greek letters w/ LaTeX for math and science,

Re:WhisperSpeech – An open source text-to-speech system buil... by knubie on Thursday January 18, 2024 @03:22AM (#39039320)
Not OP, but I develop Mochi [0] which is a spaced repetition flash card app that has text-to-speech and a bunch of other stuff built in (transcription, dictionaries, etc.) that you might be interested in.

[0] https://mochi.cards

Re:WhisperSpeech – An open source text-to-speech system buil... by siraben on Thursday January 18, 2024 @09:58AM (#39042445)
What spaced repetition algorithm does it use?
Re:WhisperSpeech – An open source text-to-speech system buil... by colordrops on Thursday January 18, 2024 @02:13AM (#39038909)
Just listened to the demo voices for EmotiVoice and WhisperSpeech. I think WhisperSpeech edges out EmotiVoice. EmotiVoice sounds like it was trained on English spoken by non-native speakers.
Re:WhisperSpeech – An open source text-to-speech system buil... by jpcl on Thursday January 18, 2024 @06:08AM (#39040396)
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 an audiobook).

Re:WhisperSpeech – An open source text-to-speech system buil... by yorwba on Thursday January 18, 2024 @09:19AM (#39041930)
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 paired text for the LibriVox audiobooks, I can provide you with versions where I "fixed" the original text to match the audiobook content e.g. when someone skipped a line.)

Re:WhisperSpeech – An open source text-to-speech system buil... by freedomben on Thursday January 18, 2024 @10:54AM (#39043286)
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 buil... by jpcl on Thursday January 18, 2024 @09:36AM (#39042136)
For Polish I have around 700hr. I suspect that we will need less hours if we add more languages since they do overlap to some extent.

Fixed transcripts would be nice although we need to align them with the audio really precisely (we cut the audio into 30 second chunks and we pretty much need to have the exact text in every chunk). It seems this can be solved with forced alignment algorithms but I have not dived into that yet.

Re:WhisperSpeech – An open source text-to-speech system buil... by yorwba on Thursday January 18, 2024 @10:40AM (#39043080)
I have forced alignments, too.

E.g. for the True Story of Ah Q https://github.com/Yorwba/LiteratureForEyesAndEars/tree/mast... .align.json is my homegrown alignment format, .srt are standard subtitles, .txt is the text, but note that in some places I have [[original text||what it is pronounced as]] annotations to make the forced alignment work better. (E.g. the "." in LibriVox.org, pronounced as 點 "diǎn" in Mandarin.) Oh, and cmn-Hans is the same thing transliterated into Simplified Chinese.

The corresponding LibriVox URL is predictably https://librivox.org/the-true-story-of-ah-q-by-xun-lu/

Re:WhisperSpeech – An open source text-to-speech system buil... by jpcl on Thursday January 18, 2024 @12:14PM (#39044422)
Thanks, I'll check it out. I don't know any Chinese so I'll probably reach out to you for some help :)
Re:WhisperSpeech – An open source text-to-speech system buil... by yorwba on Thursday January 18, 2024 @12:17PM (#39044470)
Sure, feel free to email me at the address included in every commit in the repo.
Re:WhisperSpeech – An open source text-to-speech system buil... by thorum on Thursday January 18, 2024 @02:27PM (#39046394)
You might check out this list from espnet. They list the different corpuses they use to train their models sorted by language and task (ASR, TTS etc):

https://github.com/espnet/espnet/blob/master/egs2/README.md