242 points · by fumblebee · 3y ago · 121 comments
I wrote a blog post recently which talks a little about the origin of my voice in Mycroft, in case anyone is interested. https://popey.com/blog/2022/10/blog-to-speech-in-my-voice/
I ended up going with pico-tts[0]. I remember looking at a few other things and left myself the following comment:
# checked out mimic as well. Didn't seem great, espeak is like nails on a chalkboard
# haven't checked out marytts or larynx or anything, but this is good enough™
[0] https://github.com/Iiridayn/pico-ttsDemo Here: https://mdn.github.io/dom-examples/web-speech-api/speak-easy...
Read more here https://github.com/mdn/dom-examples/tree/main/web-speech-api
I’m familiar with things like otter.ai but I am not risking my job by sharing data with something I don’t control.
it's the only one I have any experience with
Here's how it works:
- Kid requests a story about a, b, c on www.makedupstories.com
- chatGPT generates the text for a story, summary, and title
- we send this to resemble.ai (sounds like Tortoise TTS would work just as well), which has a clone of my voice
- the audio file then gets sent to anchor.fm
you can listen to example episodes here on Spotify: https://open.spotify.com/show/6liL4T3kJf1scHq134s0mJ
And here on Apple podcasts: https://podcasts.apple.com/us/podcast/kidscast-kids-stories-...
Personally - despite being neither the target market or that interested in an answer to the original question, I found the reply you are objecting to interesting and useful, and not at all the crass promo you are claiming.
OP's project is really cool and would make for a great Show HN. This thread is just the wrong place for it.
Please abide to HN Rules and Guidelines next time.
"Hi richardfeynman and Merry Christmas! Carissa enjoyed her story and decided after that she needs to submit another one She couldn’t tell a difference. My husband and I could tell it was different, but still pretty impressive how the AI works! We will share with friends this week!" "Thank you so much for the story of Anders and his goat Gizmo. We love Maked up Stories and listen to one every evening, so it really made Anders’s day to have his own story. We have shared it with family and friends."
First, though, read "I Always Do what Teddy Says", by Harry Harrison.
Have Tony the Tiger explaining the food pyramid or something.
I'm not a kid and have no kids so it's hard for me to appreciate this type of storytelling. Have you been able to gather an audience that regularly tunes in?
It's free up to $30 & then cost price after that. It's exceptionally realistic, but can take a bit of time to synthesise as a result.
It packages several models, including Coqui AI's TTS which I tend to use the most. There's a handy Docker image, too.
https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynth...
Speech synthesis in Python with pyttsx
https://jugad2.blogspot.com/2014/03/speech-synthesis-in-pyth...
I haven’t used it in a while but I seen a lot a of new feature listed over the last year or so.
Give it a try
Somehow it's a nice to observe this trend to start working in other areas.
Other than that, I've never used the product, but I've seen Youtube ads for Speechelo, which seems to be quite decent (and a bunch of Youtube ads for other things that quite obviously were using Speechelo (same voice))
here are some demos https://nonint.com/static/tortoise_v2_examples.html
I wrote a script that
- pulled @_akhaliq's last 7 days of tweets
- fished out the arxiv links
- downloaded raw paper .tex
- parsed out intros & conclusions
- automated a podcast dialogue about the papers w/ web automation & GPT
- generated a podcast
[1] https://scribepod.substack.com/p/scribepod-1#detailsTortoise produces quality results with limited training data, but is an extremely slow model that is not suitable for real time use cases. You can't build an app with it. It's good for creatives making one-off deepfake YouTube videos, and that's about it.
You're looking for Tacotron 2 or one of its offshoots that add multi-speaker, TorchMoji, etc. You'll want to pair it with the Hifi-Gan vocoder to get end-to-end text to speech. (Avoid Griffin-Lim and WaveGlow.)
Your pipeline looks like this at a high level:
Input text => Text pre-processing => Synthesizer => Vocoder => [ Optional transcoding ] => Output audio
TalkNet is also popular when a secondary reference pitch signal is supplied. You can mimic singing and emotion pretty easily.These three models are faster than real time, and there's a lot of information available and a big community built up around them. FakeYou's Discord has a bunch of people that can show you how to train these models, and there are other Discord communities that offer the same assistance.
If you want to train your own voice using your own collected sample data, you can experiment with it on Google Colab and on FakeYou, then reuse the same model file by hosting it in a cloud GPU instance. We can also do the hosting for you if that's not your desire or forte.
In any case, these models are solid choices for building consumer apps. As long as you have a GPU, you're good to go. If you're not interested in building or maintaining your own, you can use our API! I'd be happy to help.
What would run if you had large set of training data (and time and money) but your focus is on quality? Still Tortoise?
Can I ask another question? If I wanted to hack around with STT and TTS (inference only) on a pi (4B+) is there anything that is approximately appropriate and can be done on device? (I could process on my main machine but I'd love to do it on the pi even with a decent delay)
> Tortoise is a bit tongue in cheek: this model is insanely slow. It leverages both an autoregressive decoder and a diffusion decoder; both known for their low sampling rates. On a NVidia Tesla K80, expect to generate a medium sized sentence every 2 minutes.
I suspect that for a real(-ish) time TTS system, something else is needed. OTOH if you want to record some voice acting for a game or other multimedia product, it still may be more cost-effective than recording a bunch of live humans.
(K8 = NVidia Tesla K80, GPU, $800-900 for a 24GB version right now.)