Views
No views yet
whisperx backend.whisperx-base-it.yaml in your LocalAI models directory:1name: whisperx-base-it
2backend: whisperx
3known_usecases:
4 - transcript
5parameters:
6 model: LocalAI-io/whisper-base-it-ct2-int8
7 language: it1curl http://localhost:8080/v1/audio/transcriptions \
2 -H "Content-Type: multipart/form-data" \
3 -F file="@audio.mp3" \
4 -F model="whisperx-base-it"| Step | WER |
|---|---|
| 1000 | 26.5% |
| 2000 | 24.0% |
| 3000 | 22.4% |
| 5000 | 20.6% |
| 7000 | 19.9% |
| 10000 | 19.2% |
1from transformers import pipeline
2
3pipe = pipeline("automatic-speech-recognition", model="LocalAI-io/whisper-base-it")
4result = pipe("audio.mp3", generate_kwargs={"language": "it", "task": "transcribe"})
5print(result["text"])