Severe bug: uploading lots of audio produces HEAVY openai costs
skamensky opened this issue · comments
skamensky commented
Issue
In 5 minutes useWhisper
sent 100's of requests, uploaded 74684 seconds of audio which is over 20 hours, and cost over $17!
It looks like you're uploading the entire cumulative recording every second?
Luckily I had billing limits set.
Config
const {
recording,
speaking,
transcribing,
transcript,
pauseRecording,
startRecording,
stopRecording,
} = useWhisper({
apiKey: getApiKey() ,
streaming: true,
timeSlice: 1_000, // 1 second
whisperConfig: {
language: 'he',
},
});
Proof
Christian Bock commented
Is this still the case? Did anyone find a workaround/fix?
Sivert Heisholt commented
Same problem, this library will eat up credits. Should be fixed real quick.
Kacper Włodarczyk commented
I guess its because of streaming=true and its not a lib bug but the idea of how It work