News for hackers. Stuff that matters.
Re:Introducing ChatGPT and Whisper APIs by r3trohack3r on Wednesday March 01, 2023 @01:24PM (#34986238)
Whisper as an API is great, but having to send the whole payload upfront is a bummer. Most use cases I can build for would want streaming support.

Like establish a WebRTC connection and stream audio to OpenAI and get back a live transcription until the audio channel closes.

Re:Introducing ChatGPT and Whisper APIs by banana_giraffe on Wednesday March 01, 2023 @02:07PM (#34986817)
It's also annoying since there appears to be a hard limit of 25 MiB to the request size, requiring you to split up larger files and manage the "prompt" to subsequent calls. Well, somehow, near as I can tell, how you're expected to use that value isn't documented.
Re:Introducing ChatGPT and Whisper APIs by travisjungroth on Wednesday March 01, 2023 @02:14PM (#34986887)
You split up the audio and send it over in a loop. Pass in the transcript of the last call as the prompt for the next one. See item 2 here: https://platform.openai.com/docs/guides/speech-to-text/promp...
Re:Introducing ChatGPT and Whisper APIs by banana_giraffe on Wednesday March 01, 2023 @02:25PM (#34987022)
And:

> we suggest that you avoid breaking the audio up mid-sentence as this may cause some context to be lost.

That's really easy to put in a document, much harder to do in practice. Granted, it might not matter much in the real world, not sure yet.

Still, this will require more hand holding than I'd like.

Re:Introducing ChatGPT and Whisper APIs by travisjungroth on Wednesday March 01, 2023 @02:40PM (#34987217)
I doubt it will matter if you're breaking up mid sentence if you pass in the previous as a prompt and split words. This is how Whisper does it internally.

It's not absolutely perfect, but splitting on the word boundary is one line of code with the same package in their docs: https://github.com/jiaaro/pydub/blob/master/API.markdown#sil...

25MB is also a lot. That's 30 minutes to an hour on MP3 at reasonable compression. A 2 hour movie would have three splits.

Re:Introducing ChatGPT and Whisper APIs by mike_d on Wednesday March 01, 2023 @05:56PM (#34989497)
The page includes a five line Python example of how to split audio without breaking mid-word.
Re:Introducing ChatGPT and Whisper APIs by patricksamy on Friday March 10, 2023 @06:01PM (#35102481)
If that helps, just wrote a script to split the audio and use the prompt parameter to provide context with the n-1 segment transcription: https://gist.github.com/patrick-samy/cf8470272d1ff23dff4e2b5...
Re:Introducing ChatGPT and Whisper APIs by userhacker on Wednesday March 01, 2023 @02:23PM (#34987007)
I suggest you give revoldiv.com a try, We use whisper and other models together. You can upload very large files. We use intelligent chunking so that the model doesn't lose context. We are looking to increase the limit even more in the coming weeks. It's also free to transcribe any video/audio with word level timestamps.
Re:Introducing ChatGPT and Whisper APIs by BasilPH on Wednesday March 01, 2023 @04:13PM (#34988428)
I just gave it a try, and the results are impressive! Do you also offer an API?
Re:Introducing ChatGPT and Whisper APIs by userhacker on Wednesday March 01, 2023 @05:30PM (#34989243)
contact us at [email protected] and we are offering an API on a case by case basis
Re:Introducing ChatGPT and Whisper APIs by graderjs on Wednesday March 01, 2023 @11:39PM (#34992077)
* * *
Re:Introducing ChatGPT and Whisper APIs by rmorey on Wednesday March 01, 2023 @02:18PM (#34986940)
FWIW, AssemblyAI has great trasncript quality in my experience, and they support streaming: https://www.assemblyai.com/docs/walkthroughs#realtime-stream...
Re:Introducing ChatGPT and Whisper APIs by BasilPH on Wednesday March 01, 2023 @04:04PM (#34988318)
We're using AssemblyAI too, and I agree that their transcription quality is good. But as soon as Whisper supports world-level timestamps, I think we'll seriously consider switching as the price difference is large ($0.36 per hour vs $0.9 per hour).
Re:Introducing ChatGPT and Whisper APIs by sebzim4500 on Wednesday March 01, 2023 @06:41PM (#34989962)
Both of those prices strike me as quite high, given that Whisper can be run relatively quickly on commodity hardware. It's not like the bandwidth is significant either, it's just audio.
Re:Introducing ChatGPT and Whisper APIs by dgacmu on Wednesday March 01, 2023 @10:01PM (#34991379)
It's pretty great from my perspective. I've been creating little supplemental ~10 minute videos for my class (using descript; i should probably switch to OBS), and the built in transcription is both wonderful (that it has it at all and is easy to fix) and horrible (the number of errors is very high). I'd happily pay a dime to have a higher quality starting transcription that saves me 5 minutes of fixing...
Re:Introducing ChatGPT and Whisper APIs by ronyfadel on Wednesday March 01, 2023 @11:37PM (#34992064)
A plug here but check out https://vidcap.app/

It’s based on a finetuned Whisper and you’d get unlimited transcriptions for $4.99/month

Re:Introducing ChatGPT and Whisper APIs by graderjs on Wednesday March 01, 2023 @11:51PM (#34992147)
Try my app: https://apps.apple.com/app/wisprnote/id1671480366

It has great quality transcription from video and audio (in English only sorry if that's not you!). Uses Whisper.cpp plus VAD to skip silent / non-speech sections which introduce errors normally. Give a try let me know what you think! :)

Re:Introducing ChatGPT and Whisper APIs by graderjs on Wednesday March 01, 2023 @11:50PM (#34992143)
Why do you need Word-level timestamps? I don't understand what that's for...
Re:Introducing ChatGPT and Whisper APIs by BasilPH on Wednesday March 01, 2023 @04:02PM (#34988305)
As far as I can tell it doesn't support world-level timestamps (yet). That's a bit of a dealbreaker for things like promotional clips or the interactive transcripts that we do[^0]. Hopefully they add this soon.

[^0]: https://www.withfanfare.com/p/seldon-crisis/future-visions-w...

Re:Introducing ChatGPT and Whisper APIs by jmccarthy on Wednesday March 01, 2023 @05:12PM (#34989065)
I recently tried a number of options for streaming STT. Because my use case was very sensitive to latency, I ultimately went with https://deepgram.com/ - but https://github.com/ggerganov/whisper.cpp provided a great stepping stone while prototyping a streaming use case locally on a laptop.
Re:Introducing ChatGPT and Whisper APIs by mk_stjames on Wednesday March 01, 2023 @05:53PM (#34989472)
I've ran Whisper locally via [1] with one of the medium sized models and it was damn good at transcribing audio from a video of two people having a conversation.

I don't know exactly what the use case is where people would need to run this via API; the compute isn't huge, I used CPU only (an M1) and the memory requirements aren't much.

[1] https://github.com/ggerganov/whisper.cpp

Re:Introducing ChatGPT and Whisper APIs by graderjs on Wednesday March 01, 2023 @11:37PM (#34992068)
* * *
Re:Introducing ChatGPT and Whisper APIs by Tenoke on Thursday March 02, 2023 @12:46AM (#34992439)
The 5gb model is likely too big for 95% of people's machines and renting gpus is likely not much cheaper.

I'm using also whisper myself locally to transcribe my voice notes though.