Instructions to use openai/whisper-large-v3-turbo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openai/whisper-large-v3-turbo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="openai/whisper-large-v3-turbo")# Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("openai/whisper-large-v3-turbo") model = AutoModelForSpeechSeq2Seq.from_pretrained("openai/whisper-large-v3-turbo", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
- AMD Developer Cloud
whisper-large-v3-turbo Hugging Face API bug
Please, someone help!
Although the default whisper API setting is Transcribing, I receive a Translation (into different random languages!?!). Both whisper-large-v3 and whisper-large-v3-turbo. Why?
final request = http.Request('POST', url); //router.huggingface.co/hf-inference/models/openai/whisper-large-v3-turbo
request.headers['Authorization'] = 'Bearer $_hfToken';
request.headers['Content-Type'] = 'audio/m4a';
request.bodyBytes = audioBytes;
I tried to add additional headers:
request.headers['Accept-Language'] = 'en,en-US';
request.headers['language'] = 'en';
request.headers['task'] = 'transcribe';
but it didn't help.
I also tried through json payload like:
{
'inputs': base64Audio,
'parameters': {
'task': 'transcribe',
'language': 'en',
},
}
but returned an error "unexpected keyword argument 'task' "... yes 'task' is not in the public HF api's parameters but it's strange that there are no standard ones of the Whisper API.
How can I fix this issue? I need to receive Transcribe (not Translate to random language) as stated as the default behavior in API.