News for hackers. Stuff that matters.
Re:I made a free transcription service powered by Whisper AI by jw1224 on Friday November 18, 2022 @07:38PM (#33665219)
Free startup idea: Use Whisper with pyannote-audio[0]’s speaker diarization. Upload a recording, get back a multi-speaker annotated transcription.

Make a JSON API and I’ll be your first customer.

[0] https://github.com/pyannote/pyannote-audio

Re:I made a free transcription service powered by Whisper AI by mayeaux on Friday November 18, 2022 @07:51PM (#33665343)
It sounds pretty good, this is my first time hearing about it but it looks good. Even if it does detect that they are separate entities talking, how does it label it in a way that's helpful/useful for you? I guess it comes out as 'Speaker 1', 'Speaker 2', etc in the end? And you can find/replace the speakers with the actual people?
Re:I made a free transcription service powered by Whisper AI by coder543 on Friday November 18, 2022 @07:55PM (#33665377)
It's not as if people aren't trying to do that: https://github.com/openai/whisper/discussions/264

I tried out this notebook about a month ago, and it was rough. After spending an evening improving it, I got everything "working", but pyannote was not reliable. I tried it against an hour-ish audio sample, and I found no way to tune pyannote to keep track of ~10 speakers over the course of that audio. It would identify some of the earlier speakers, but then it felt like it lost attention and would just start labeling every new speaker as the same speaker. There is an option to force the minimum number of speakers higher, and that just caused it to split some of the earlier speakers into multiple labels. It did nothing to address the latter half of the audio.

So, sure, someone should continue working on putting the pieces together, and I'm sure the notebook in the discussion I linked has probably improved since then, but I think pyannote itself needs some improvement first.

Sadly, I think using separate models for transcription and diarization ends up being clunky to the point that it won't ever be polished, no matter how good pyannote might get. If you have a podcast-like environment where people get excited and start talking over each other, then even if pyannote correctly identifies all of the speakers during the overlapping segments and when they spoke... Whisper cannot be used to separate speakers. You end up with either duplicate transcripts attributed to everyone involved, or something worse. Impressively, I have seen pyannote do exactly that, when it's working.

At the end of the day, I think someone is going to need to either train Whisper to also perform diarization, or we're going to need to wait until someone else open sources a model that does both transcription and diarization simultaneously. Unfortunately, it seems like most of these really big advances in ML only happen when a corporate benefactor is willing to dump money into the problem and then release the result, so we might be waiting awhile. I'm trying to learn more about machine learning, but I'm not at the point where I have any realistic chance of making such an improvement to Whisper. Maybe someone else around here can proven me wrong by just making it happen.

Re:I made a free transcription service powered by Whisper AI by password4321 on Friday November 18, 2022 @08:11PM (#33665523)
Speaker recognition is another piece that isn't usually as high a priority as recognizing the speech.
Re:I made a free transcription service powered by Whisper AI by mayeaux on Friday November 18, 2022 @08:36PM (#33665733)
It's a new thing to me, I hadn't really considered it. Do they have that for movies and stuff? I can't think of a clear case when I've seen it
Re:I made a free transcription service powered by Whisper AI by ramraj07 on Friday November 18, 2022 @08:11PM (#33665513)
And you expect the API to be free? If not why not use one of a million other such services?
Re:I made a free transcription service powered by Whisper AI by pessimizer on Friday November 18, 2022 @09:30PM (#33666148)
It's the idea that's free, not the API.
Re:I made a free transcription service powered by Whisper AI by mayeaux on Friday November 18, 2022 @11:12PM (#33666846)
Well the code is open source, I don't know what I plan to do with this, depends on how people like it, but for the meantime you can use it to transcribe stuff for free which is a victory unto itself
Re:I made a free transcription service powered by Whisper AI by kkielhofner on Friday November 18, 2022 @08:20PM (#33665607)
I think there's been talk to do speaker diarization with whisper-asr-webservice[0] which is also written in python and should be able to make use of goodies such as pyannote-audio, py-webrtcvad, etc.

Whisper is great but at the point we get to kludging various things together it might start to make more sense to use something like Nvidia NeMo[1] which was built with all of this in mind and more.

[0] - https://github.com/ahmetoner/whisper-asr-webservice

[1] - https://github.com/NVIDIA/NeMo