News for hackers. Stuff that matters.
Re:Universal Speech Model by gigel82 on Wednesday March 29, 2023 @08:19PM (#35365926)
That's cool, but Whisper is open source and I can run it today on my machine (even without a GPU) - it gives great results even compiled to WebAssembly and running in the browser with smaller models.

Totally free.

This needs to be much better to make sense and their own graphs show only marginal improvements in specific scenarios.

Re:Universal Speech Model by UncleEntity on Wednesday March 29, 2023 @08:41PM (#35366123)
> Our model has, on average, a 32.7% relative lower WER compared to Whisper for these 18 languages.

Which probably works out to one less error per thousand words or something crazy like that.

The state of the art is pretty much better than humans at this point iirc.

Re:Universal Speech Model by 6gvONxR4sf7o on Wednesday March 29, 2023 @09:02PM (#35366296)
On the youtube captions dataset, it says english (US) WER is nearly 15%. On those 18 languages, it's nearly 20%. How does that match up with 32% relative being one per thousand or so?
Re:Universal Speech Model by runnerup on Wednesday March 29, 2023 @09:08PM (#35366341)
In the paper itself[0], they do have a couple comparisons for English-only (Fig. 2, Table 3), and it looks like Whisper has an 11.5% error rate and USM has a 10.5% error rate. It's a truly negligible difference. There's no way I'd ever pay for an API for this if I knew I only cared about English.

I know that's not the point of this model (the point is that for a lot of languages, its the only model available). But paywalling it seems greedy, you'll only extract money from those under-represented communities. On the other hand, maybe this never would have been built without the profit motive. Idk. I wish we could fund these things as "basic science research" without a need for direct profit. Let positive externalities pay us back down the road.

0: https://arxiv.org/pdf/2303.01037.pdf

Re:Universal Speech Model by UncleEntity on Wednesday March 29, 2023 @09:34PM (#35366592)
Whisper can also be fine tuned on other languages. Don’t know how well it’ll do compared to this but it’s at least a possibility.
Re:Universal Speech Model by runnerup on Wednesday March 29, 2023 @09:01PM (#35366290)
It's not even possible for me to verify the accuracy claims of this closed model with limited API access.

I really don't care about closed API models of anything that has a good/usable open source version. Whisper works well enough, I'm never going to follow up on this USM research or use it. The only reason to pay for the API access would be for some super niche language. And if Google is paywalling this only for the few customers who need it for use in terribly under-represented communities ... that's a kind of douchebaggery all its own.

The only reason people are paying for OpenAI's GPT-4 is because there's literally no usable open-source LLM. The instant a "good enough" one exists, OpenAI's revenues will drop by >95%.

Hopefully Google will at least use this in Google Home because it's still bad enough to notice.

Re:Universal Speech Model by saurik on Thursday March 30, 2023 @03:32AM (#35369328)
I mean, some people--like myself--are already paying for Google's multi-language speech recognition API, and have been for years, so the idea that there is a new even-better model for it sounds cool to me? My primary annoyance is that this is Google, so of course they aren't going to put in even the minimal effort to just make this a new backend for their existing ridiculously-insane API I had to build a miserable slightly-custom http/2 stack to access :/.

Regardless, I don't want to use the API, but I'm working with public information anyway; and so, while I have considered moving to Whisper now that that's an option, it hasn't been a priority and it isn't clear to me that Whisper is good at random non-English languages anyway.

Re:Universal Speech Model by mmcwilliams on Wednesday March 29, 2023 @09:16PM (#35366422)
It's interesting because while evaluating Whisper for an ASR task I found it to have some entertaining hallucinations when provided with silent or garbled audio.

For instance, this was added to the transcription of a silent section of audio:

> Hello everyone welcome to my channel. Today Im going to show you how to make a very simple and easy recipe. I hope you enjoy the video. If you like my recipe dont forget to subscribe to my channel

It makes me wonder how much of Whisper is trained on audio from Youtube, which was transcribed by this model.

Re:Universal Speech Model by coffeebeqn on Wednesday March 29, 2023 @10:54PM (#35367297)
Don’t forget to smash that subscribe button
Re:Universal Speech Model by resoluteteeth on Wednesday March 29, 2023 @11:22PM (#35367490)
I wonder if that's specifically a result of training it on youtube videos where the audio/subtitles don't actually match (recipe videos with no speech that have additional text added in the subtitles)
Re:Universal Speech Model by nodja on Thursday March 30, 2023 @12:37AM (#35368040)
Similar experience, mine would turn background noises when no one's talking into random japanese words repeated. I was using the large model. I ended up fixing it by using the medium.en model and setting condition_on_previous_text to false.

Now if only the timestamp timings were correct for noisy audio... I've tried stable whisper and another fork I forget the name, but I need to run the audio through RTX voice if I want consistent timestamps...

Re:Universal Speech Model by thangalin on Wednesday March 29, 2023 @09:57PM (#35366778)
For my sci-fi story (alpha readers wanted; see profile), I used Whisper to transcribe an interview of a Malawian President. From there, I created a vocabulary comprised of only the president's words, which I used almost exclusively when writing his speech.

The results from Whisper are incredible, with very few mistakes. Though it did get Nelson Mandela's first name wrong (transcribed as Nesson). What's more, Whisper finished transcribing a 60-minute audio stream in 20 minutes on commodity hardware (T1000 G8 NVIDIA GPU). Broadly, here are the steps I used:

* Download and install podman.

* Download and install git.

* Download and install curl.

* Open a command prompt.

* Run the following commands to containerize Whisper:

    git clone https://github.com/lablab-ai/whisper-api-flask whisper
    cd whisper
    mv Dockerfile Containerfile
    podman build --network="host" -t whisper .
    podman run --network="host" -p 5000:5000 whisper
* Download MP3 file (e.g., filename.mp3).

* Run the following command to produce a transcription:

    curl -F "[email protected]" http://localhost:5000/whisper
Re:Universal Speech Model by 101008 on Wednesday March 29, 2023 @10:31PM (#35367115)
Whisper is great. You can get faster results running the tiny model. I used it for podcast transcription and it is much faster and the quality is not worse than the medium model - there are some podcast episodes that the transcription is the same.
Re:Universal Speech Model by alach11 on Wednesday March 29, 2023 @10:48PM (#35367253)
If speed is important, you're much better off using a larger model and whisper.cpp.
Re:Universal Speech Model by pantalaimon on Thursday March 30, 2023 @06:55AM (#35370746)
Wow thank you! That's a nice speedup indeed, with whisper I get

    33,53s user 2,05s system 443% cpu 8,023 total
with the 'tiny.en' model whereas whisper.cpp gives me

    22,71s user 0,12s system 745% cpu 3,062 total
with the 'base.en' model for a 15s audio clip on an i7-3770 (8 threads).
Re:Universal Speech Model by alach11 on Thursday March 30, 2023 @11:25AM (#35374153)
Awesome! Thanks for posting the stats.

In my workflows I've found rare but noticeable quality differences between the model sizes. So when practical I try to use the larger ones.

Re:Universal Speech Model by malborodog on Wednesday March 29, 2023 @10:39PM (#35367179)
why not just run whisper from the command line directly? Why put it into a docker container??
Re:Universal Speech Model by ec109685 on Wednesday March 29, 2023 @10:47PM (#35367251)
Why not keep everything tightly contained?
Re:Universal Speech Model by malborodog on Thursday March 30, 2023 @04:05AM (#35369534)
Hm, I'm on Mac so it takes up a bunch of ram and I'm not used to this workflow. good point though.
Re:Universal Speech Model by ec109685 on Friday March 31, 2023 @01:43AM (#35383079)
Unless you actually use the memory (e.g. allocate it), it won’t impact system performance, but yeah, it definitely is overhead.
Re:Universal Speech Model by pdntspa on Wednesday March 29, 2023 @11:05PM (#35367385)
some people just love making their environments needlessly complicated.
Re:Universal Speech Model by jazzyjackson on Thursday March 30, 2023 @03:03AM (#35369104)
complexity is in the eye of the beholder, some people just get docker enough that it's not a friction

Now installing the dependencies of every git repo I want to try on my host system, that's how an environment becoming needlessly complicated

Re:Universal Speech Model by hodanli on Wednesday March 29, 2023 @10:36PM (#35367154)
thank you for this
Re:Universal Speech Model by taberiand on Wednesday March 29, 2023 @10:04PM (#35366835)
Does Whisper do streaming translation?

I'm imagining the near future will see a portable fast streaming model for real-time voice translation, piped into text to speech. Hook it up to an earpiece and you've got a real-life Babelfish

Re:Universal Speech Model by speedgoose on Thursday March 30, 2023 @12:36AM (#35368026)
Yes it does streaming but you may have to reduce the quality to keep up if your machine is not very fast.
Re:Universal Speech Model by woodson on Thursday March 30, 2023 @12:37AM (#35368033)
Whisper doesn’t do streaming transcription or translation. It’s one of its architectural disadvantages over more commonly used ASR approaches, such as transducers (see e.g. Microsoft Research’s system trained on ~350k hours that does streaming transcription and translation: https://arxiv.org/abs/2211.02499).
Re:Universal Speech Model by 8f2ab37a-ed6c on Wednesday March 29, 2023 @11:15PM (#35367453)
Whisper is incredible, and it's bananas that they give it away for free. It is able to decipher English with the thickest of accents, often better than me.
Re:Universal Speech Model by abraxas on Thursday March 30, 2023 @12:22AM (#35367943)
No, no it isn't.

Source, me with my Eastern Europe accent. There are engines out there that do far better with my accent. FAR better.

Re:Universal Speech Model by 8f2ab37a-ed6c on Thursday March 30, 2023 @12:36AM (#35368030)
That wasn’t my experience, but that’s an interesting data point, thanks for sharing.