HNHacker News
TopNewBestAskShowJobs

jpcl

82 karma · joined October 26, 2018

submissionscomments
jpcl··on TADA: Speech generation through text-acoustic synchronization
What this means is that it does not support things like acting instructions or creating a voice from a text description. If you prompt it with a matching text+voice sample it will be able to generate more speech based on more text, just like a TTS. It can also generate it's own text on the fly but it won't be as good as your frontier model.
jpcl··on WhisperFusion: Ultra-low latency conversations with an AI chatbot
Hi, I used the [WhisperSpeech](https://github.com/collabora/WhisperSpeech) model for the TTS part after I did some serious torch.compile optimizations to bring the latency down. The Whisper speech recognition and the LLM were optimized through TensorRT-LLM by Marcus and Vineet.

It's not perfect but I am still extremely proud of how it came out. :)

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Not really, the Polish effort is run by a non-profit and hired professional voice actors.
jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Yeah, thanks. I'd love to try to clarify this (I'll put this into our documentation as well ASAP) for anyone that may be reading this in the future:

Our model is not a derivative of Whisper but we do use the transcripts (and encoder outputs) in our data preprocessing. I am convinced this data cannot be regarded as a derivative of the (proprietary) Whisper training set. Whisper itself is open-source (MIT) and has no special TOS (unlike, say, ChatGPT).

WhisperSpeech itself is trained on mostly Public Domain and some CC-BY-SA recordings. We are working on adding more data and we will provide clearer documentation on all the licenses.

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Did exactly that, thanks for spotting that. :)

https://github.com/collabora/WhisperSpeech/commit/398b889060...

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Good point, thanks. And I was thinking it will show that the model can really synthesize very varied samples... ;)
jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
That's an interesting thought. The semantic tokens we get from Whisper serve a similar purpose – you can convert existing speech to different voices, I did not try with accents yet.

There is still a lot to explore in this space – we certainly don't have all the answers yet!

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
That's true but you make it sound like it's totally obvious where the line of fair use should be drawn for AI training.

Until courts or lawmakers make it clearer I personally believe non-generative models (Whisper, ResNet, DINOv2) should be legally trainable on publicly released data. Generative models (image or video generation, TTS, LLMs?) should be held to a much higher scrutiny since their outputs can potentially compete the creators who put a lot of creativity into their art. That not true for an ImageNet-trained classification model or Whisper ASR.

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
We looked at this at one point and it seems whisper.cpp/llama.cpp have all the bits needed to make it work. I'd love to help if someone wanted to give it a shot.
jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
https://wolnelektury.pl/katalog/audiobooki/ is the Polish audiobook collection.

The English audiobooks are public domain recordings from LibriVox (via the LibriLight dataset).

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Thanks, I'll check it out. I don't know any Chinese so I'll probably reach out to you for some help :)
jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Yeah, we'd love to help you when you decide to give it a try so feel free to reach out. We also have quite a few people working on VR at Collabora.
jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
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.

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
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.

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Yes, you download the weights once from Huggingface and you can do whatever you want with it. :) We have no cloud APIs or usage tracking of any kind.
jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Both models are using around 3GB right now (converted into FP16 for speed). But I checked that the (slower) FP32 version uses 2.3GB so we are probably doing something suboptimal here.

We support CUDA right now although it should not be too hard to port it to whisper/llama.cpp or Apple's MLX. It's a pretty straightforward transformer architecture.

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
There is a plot of language performance on their repo: https://github.com/openai/whisper

I am not aware of a multi-lingual leaderboard for speech recognition models.

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Training the T2S model from scratch takes around 8h on 96 A100 GPUs. Training the `tiny` S2A model is around 3x faster (training HQ `small` variant is comparable to T2S).

I think you would get good results with fine-tuning but unfortunately we don't have a user-friendly notebook or script to do that right now. The biggest model is 800MB (FP32) so you won't even need a very big GPU to be able to fine-tune.

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
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.

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Hi, WhisperSpeech dev here.

Thanks for all the nice comments, I was working really hard on this model for quite a few months now but there are still a lot of ways we can make it better.

Thanks to generosity of Collabora this is a real open-source project (not just a one-time marketing ploy), so if you want to help improve it or integrate it into something you are building, I'd love to help.

You can also buy our undivided engineering attention if you have a business use-case. :)

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Hi, thanks a lot for the tip, I'll update the README samples ASAP. :)

I was busy working on inference performance in the last few weeks and totally did not expect to land on Hackernews today. Only noticed it an hour ago because my GitHub stars jumped quite a bit

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
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.

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
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.

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Yup, we are using Whisper to transcribe automatically so we can train the model on just speech recordings, without human transcripts.

This works for any language that is well supported by the OpenAI Whisper model.

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Thanks a lot. :)

We are constantly working on these models and we push new versions every two months or so. It should get even better soon. :)

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
It should run with PyTorch but the performance might not be great. As a long-time Mac user myself I would love if someone would send a PR to port it to MLX :)
jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
Yes, on a consumer 4090 card it's 12x faster than real-time. We'll benchmark some older cards as well for comparison.

I think it should work pretty good with the Apple's MLX framework as well if anyone would be willing to convert it. :)

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
We support voice cloning so you can mimic the sound of any real voice (or try to create random ones). The prosody/emotions are more difficult to control right now but we are looking into this.

To check how this works in practice you can check the Google Collab link, at the end we are cloning the voice from a Churchill's speech over radio.

jpcl··on WhisperSpeech – An open source text-to-speech system built by inverting Whisper
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).

jpcl··on Show HN: git-crecord: TUI to interactively select lines to commit
It does look much nicer than `git add -p` and manually editing patches in an editor which is what I am using right now. The question is whether my muscle memory will agree if I switch ;)
Page 1 of 2Next →