Description
When running the base command
sudo docker run -it -p 10300:10300 --name test -v ~/whisperdata/:/data rhasspy/wyoming-whisper --model "base" --language de
The docker container boots up fine. However, I would like to use custom whisper models, such as german fine tuned ones: https://huggingface.co/primeline/whisper-large-v3-turbo-german
The V2 release of wyoming-faster-whisper states that this is easily possible, by passing the model ID "primeline/whisper-large-v3-turbo-german" into the --model parameter. Resulting in this command
sudo docker run -it -p 10300:10300 --name test -v ~/whisperdata/:/data rhasspy/wyoming-whisper --model "whisper-large-v3-turbo-german.de" --language de
However, this results in the error
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/__main__.py", line 155, in <module>
run()
File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/__main__.py", line 150, in run
asyncio.run(main())
File "/usr/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/dist-packages/wyoming_faster_whisper/__main__.py", line 124, in main
whisper_model = faster_whisper.WhisperModel(
File "/usr/local/lib/python3.9/dist-packages/faster_whisper/transcribe.py", line 139, in __init__
model_path = download_model(
File "/usr/local/lib/python3.9/dist-packages/faster_whisper/utils.py", line 78, in download_model
raise ValueError(
ValueError: Invalid model size 'whisper-large-v3-turbo-german.de', expected one of: tiny.en, tiny, base.en, base, small.en, small, medium.en, medium, large-v1, large-v2, large-v3, large, distil-large-v2, distil-medium.en, distil-small.en, distil-large-v3
A few times I even ran into a other error, stating
huggingface_hub.errors.HFValidationError: Repo id must use alphanumeric chars or '-', '_', '.', '--' and '..' are forbidden, '-' and '.' cannot start or end the name, max length is 96: 'primeline/whisper-tiny-german-1224 --language de'.