Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Severe bug: uploading lots of audio produces HEAVY openai costs #49

Open
skamensky opened this issue Sep 13, 2023 · 3 comments
Open

Severe bug: uploading lots of audio produces HEAVY openai costs #49

skamensky opened this issue Sep 13, 2023 · 3 comments

Comments

@skamensky
Copy link

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

image

@skamensky skamensky changed the title Severe bug: uploading lots of audio produces HEAVY openapi costs Severe bug: uploading lots of audio produces HEAVY openai costs Sep 13, 2023
@chrisby
Copy link

chrisby commented Oct 8, 2023

Is this still the case? Did anyone find a workaround/fix?

@sivertheisholt
Copy link

Same problem, this library will eat up credits. Should be fixed real quick.

@DEENUU1
Copy link

DEENUU1 commented Jan 22, 2024

I guess its because of streaming=true and its not a lib bug but the idea of how It work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants