Ability to limit Whisper's Duration?

Hi All!

Long time lurker first time poster.

Is there a way to limit the duration/length or number of characters of audio transcribed in the API call?

Reason - I am feeding the transcribed text into GPT-4 and it needs to be under a certain character limit. I also have tiered access on my site.

I was hoping Whisper has something built in but it looks like it does not.

I can limit the file size but this doesn’t equate to length of audio.

Any suggestions?

Hey Will, you can do this programmatically, theres a bunch of different Python packages for example that let you split some given audio file up into different fixed size chunks. The audio file length should be accessible via the audio files metadata!

1 Like