News for hackers. Stuff that matters.
Re:Universal Speech Model by mikeortman on Wednesday March 29, 2023 @11:29PM (#35367549)
On a related note for anyone interested in this and want better performance today:

I messed with a combo of Whisper and ChatGPT. I took a whisper transcript and asked chatgpt to fix mistranscriptions using the context of the transcript and based on potential phonetic issues. I asked it to replace transcribed words that don't make sense with "[unintelligable]", which improved the output even more.

Transcription error rate was almost nonexistent, even on the smallest whisper model.

Re:Universal Speech Model by SamPatt on Wednesday March 29, 2023 @11:42PM (#35367649)
Great idea. Any code available? I haven't used the Whisper API yet but the OpenAI API for chatGPT seems pretty easy to work with.
Re:Universal Speech Model by groestl on Thursday March 30, 2023 @02:49AM (#35368986)
Ask ChatGPT ;) (that's what I did)
Re:Universal Speech Model by oliwary on Thursday March 30, 2023 @12:19AM (#35367924)
Nice! I tried something similar where I orally gave a speech, transcribed it and then had ChatGPT turn it into a coherent text. Saved me a bunch of time.
Re:Universal Speech Model by skim_milk on Thursday March 30, 2023 @12:38AM (#35368046)
I use a custom babbage model fined tuned using the original whisper transcripts as the prompt and the fixed transcript as the result. It does a very good job at correcting common jargon and names, correcting something like 1/3 to 1/2 of all total errors. Also is very good at correcting transcripts which whisper fails to put punctuation in for whatever reason by adding punctuation and capitalization where appropriate. I used this to fix 1000+ transcripts of lectures totaling around 700 hours of speech on the cheap.

Personally wouldn't recommend my approach however unless you are okay with doing some hardcore text manipulation and fuzzy math. It fails to produce text that matches up with the prompt 10% of the time and lots of other caveats with what to do with text that doesn't fit into the prompt.

Re:Universal Speech Model by chenzhekl on Thursday March 30, 2023 @12:45AM (#35368102)
This deserves a paper! I look forward to your publication.
Re:Universal Speech Model by verghese on Thursday March 30, 2023 @01:05AM (#35368258)
Checkout https://exemplary.ai - we incorporate a similar approach with our transcript editor.
Re:Universal Speech Model by braindead_in on Thursday March 30, 2023 @01:43AM (#35368551)
Signed up for early access.
Re:Universal Speech Model by yigitkonur35 on Thursday March 30, 2023 @02:36AM (#35368882)
I use Whisper actively in my daily life, but I'm curious about the prompt you used to make these corrections. I didn't get great results in my trials. What technology are you using? GPT-3.5 or GPT-4? If you could provide me with some information on this, I'd like to incorporate it into my workflow right away. I understand that you may have fine-tuned the models on Davinci as custom. If any of ones working in this field have a chance to give me more detailed information, I'd really appreciate it.
Re:Universal Speech Model by razemio on Thursday March 30, 2023 @01:32AM (#35368478)
What fixed it for me was whisper + language tool. It produces very good results with almost no errors. Even if the audio quality is bad.
Re:Universal Speech Model by rendall on Thursday March 30, 2023 @01:49AM (#35368588)
Would you mind expanding on this? I'm curious about the "+ language tool" part. Which tool?
Re:Universal Speech Model by petemir on Thursday March 30, 2023 @02:09AM (#35368706)
Not op, but probably he literally meant LanguageTool [0], an open-source grammarly alternative.

[0] https://languagetool.org/

Re:Universal Speech Model by razemio on Thursday March 30, 2023 @05:50AM (#35370253)
Correct!
Re:Universal Speech Model by barrenko on Thursday March 30, 2023 @03:00AM (#35369087)
Even something like "spacy" can help with the grammar.
Re:Universal Speech Model by rattray on Thursday March 30, 2023 @02:15AM (#35368752)
Can you share your prompt?
Re:Universal Speech Model by oefrha on Thursday March 30, 2023 @02:19AM (#35368782)
Probably depends on the language. I tried to transcribe some hour-long talks in Chinese with whisper the other day. Even with the large model, it manages to skip some sentences from time to time (no idea why), and repeat the same sentence over and over in other instances. I tweaked parameters for a long time to no vail. While GPT should be able to clean up the repetition (there will be false positives though, since human speakers do repeat themselves occasionally), it can’t really fill out the missing sentences.
Re:Universal Speech Model by malborodog on Thursday March 30, 2023 @03:43AM (#35369385)
I have to transcribe a tonne of Chinese interviews soonish -- any further thoughts or experiments you can think of? Maybe some preprocessing steps to the audio? For example, cut it into one minute chunks with some overlap, then transcribe those, so that it can't skip those bits...? Or can we finetune it on a library of Chinese mp3s + transcripts?
Re:Universal Speech Model by oefrha on Thursday March 30, 2023 @06:39AM (#35370627)
If cost isn’t an issue, I’d use one of the established commercial offerings. Otherwise, you could try splitting into shorter chunks (20 minutes maybe?), do multiple runs on each chunk and pick out the best run according to some criteria, e.g. character count after removing repetitions. Whisper isn’t deterministic so some runs can be better than others; you could also tweak parameters like compression ratio or silence thresholds between runs, but in my experience there’s not going to be an obvious winner leading to a marked improvement in quality. Anyway, I’m no expert, and maybe you’ll have better luck than me. My recordings do have background music and conversations in some places that might confuse the model.
Re:Universal Speech Model by malborodog on Saturday April 01, 2023 @12:35AM (#35397180)
Can't use third party service -- compliance stuff. This is helpful though. Using another model to tidy it up -- maybe Alpaca -- could be an option too. Then we'll just do speaker separation etc. manually later.
Re:Universal Speech Model by qwertox on Thursday March 30, 2023 @08:11AM (#35371394)
Whisper cuts the audio into chunks of 30 seconds. So If you have a one-minute recording where the first half has conversation in it and the remainder nothing, then it will think that it has to find something in that second 30 seconds block without knowing how "speech" actually sounded like as it did in the first chunk.

Try to pre-process it where just "voice" is detected, not the meaning, just some speaking, and cut the audio into snippets which only contain speech, so that Whisper doesn't have to guess if the segment will contain speech or not.

Also, if you cut it up into chunks and let it transcribe each chunk and expect JSON as the output, instead of the other output methods, then you'll get a bunch of extra parameters with it which will help you identifying problematic sections. For example hallucinated repetitions usually have a higher "no_speech_prob" parameter, or segments with lower "compression_ratio" will also not be that accurate.

Re:Universal Speech Model by iagooar on Thursday March 30, 2023 @02:36AM (#35368880)
How do you work around the file size limit and generating a transcript in vtt or srt? The shifting of timestamps is a major pain.
Re:Universal Speech Model by jazzyjackson on Thursday March 30, 2023 @02:56AM (#35369045)
just found out about this today, maybe it's helpful:

https://github.com/m-bain/whisperX

Re:Universal Speech Model by SSLy on Thursday March 30, 2023 @05:23AM (#35370071)
I like output from https://github.com/jianfch/stable-ts way more
Re:Universal Speech Model by mariusio on Thursday March 30, 2023 @04:03AM (#35369522)
Did anyone find a solution to have whisper differentiate between multiple speakers in a conversation and mark them in the written output?
Re:Universal Speech Model by freeqaz on Thursday March 30, 2023 @04:06AM (#35369540)
Yeah there are some models that I played with that can do this. They only work for 2 or 3 speakers currently though. They term for this is "diarization".

https://huggingface.co/pyannote/speaker-diarization

Re:Universal Speech Model by swores on Thursday March 30, 2023 @06:24AM (#35370511)
I wonder, do any conference call services (zoom, GMeet, etc) offer the ability to record each participant's audio stream separately in a way that would make it easy to transcribe them separately then combine?
Re:Universal Speech Model by amadiver on Thursday March 30, 2023 @06:32AM (#35370574)
Zoom has this option.
Re:Universal Speech Model by swores on Thursday March 30, 2023 @06:34AM (#35370594)
Thanks
Re:Universal Speech Model by zamnos on Thursday March 30, 2023 @07:06AM (#35370840)
FWIW, GMeet supports meeting transcription natively.

https://support.google.com/meet/answer/12849897?hl=en

Re:Universal Speech Model by exizt88 on Thursday March 30, 2023 @07:39AM (#35371130)
I wish there was a way to use Whisper for continuous recognition! Unfortunately, Whisper doesn't support streaming — and AFAIK it's unlikely that it ever will.
Re:Universal Speech Model by idleproc on Thursday March 30, 2023 @08:41AM (#35371736)
* * *
Re:Universal Speech Model by qwertox on Thursday March 30, 2023 @08:02AM (#35371308)
I've been doing the same. Apart from sometimes changing the meaning of sentences, it does a pretty good job at improving the message one is trying to convey.

In my case I'm recording notes while exercising on my bike, so there's wind and friction and breathing, then I transcribe them with Whisper, do try to filter out things that don't make much sense (where the temperature, compression_ratio, avg_logprob and/or no_speech_prob are not acceptabe).

Since I start recording at will and don't prepare the sentence to be recorded, the recording is a bit chaotic, and ChatGPT does a good job in correcting Whisper's mistakes and transforming the sentences.

But, as I said, sometimes this fails and the real message gets lost.

Re:Universal Speech Model by Naracion on Thursday March 30, 2023 @09:07PM (#35381026)
This is tangential to the software techniques, but have you tried using throat microphones? They're essentially the microphone counterpart to the bone conducting headphones. They're aimed at use cases where there's a lot of noise (originally created for paragliding but also used in biking scenarios), and low voice scenarios (eg covert operations and even to amplify voice from people having speech problems due to things like Parkinson's disease).

I'm using them to record multiple people in the same room but avoid cross-talk (for data collection in a research study). The audio isn't great, but I've used transcription services and they seem to be able to make the words out just fine.

Re:Universal Speech Model by Rustwerks on Thursday March 30, 2023 @08:33AM (#35371645)
I tried this as well but ChatGPT just refused to do the transcription fixing because PG13 movies contain content that is too controversial.
Re:Universal Speech Model by derbOac on Thursday March 30, 2023 @11:27AM (#35374206)
This is one of my frustrations with generative AI APIs, the censoring of content. I understand why it's done but it seems overboard to me, and has created huge headaches with material that is not at all prurient, but where there's some homonyms involved.
Re:Universal Speech Model by thefourthchime on Thursday March 30, 2023 @09:39AM (#35372527)
I've suspected as such, which makes using the Siri and Google Assistant of today even more infuriating! I know it's going to be exponentially better just around the corner!
Re:Universal Speech Model by CastFX on Thursday March 30, 2023 @10:25AM (#35373164)
Have you tried transcripts with swearing? Last time I tried, it censored "shit" with "stuff".

Not ideal, maybe I should've asked to censor with asterisks instead of changing the whole world