-
Notifications
You must be signed in to change notification settings - Fork 22
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
Installing Wyoming Whisper without Docker llooks impossible: 404 error when downloading model #16
Comments
The "medium" model is not available here: https://github.com/rhasspy/models/releases/tag/v1.0 You can create it yourself by following these steps: https://github.com/guillaumekln/faster-whisper#model-conversion |
Before trying procedure you linked to, I've just tested with |
Weird. Can you get the full URL it's trying for the model? |
I added a |
Ok, so this must be a difference with enums and Python 3.11. Thanks! |
Hi, I had the same problem as @Nardol. @synesthesiam , as you said, this is a difference in Python 3.11 where you now have to replace: As @Nardol , I also didn't find the source code to make a PR. Could you point us to where it is? Even if you've probably already fixed this, it would be nice to know where it is, just in case someone wants to submit some other fix/improvement. Thanks! |
I'm answering since no one did. The source code is sitting over in the v0.1.0 branch. It can be found here: https://github.com/rhasspy/rhasspy3/blob/v0.1.0/programs/asr/faster-whisper/script/download.py |
That's spot on, tested using the following reproducer. Should be patched to use the from enum import Enum
URL_FORMAT = "https://github.com/rhasspy/models/releases/download/v1.0/asr_faster-whisper-{model}.tar.gz"
class FasterWhisperModel(str, Enum):
"""Available faster-whisper models."""
TINY = "tiny"
TINY_INT8 = "tiny-int8"
BASE = "base"
BASE_INT8 = "base-int8"
SMALL = "small"
SMALL_INT8 = "small-int8"
MEDIUM = "medium"
MEDIUM_INT8 = "medium-int8"
tiny = FasterWhisperModel.TINY
print(URL_FORMAT.format(model=tiny))
print(URL_FORMAT.format(model=tiny.value))
|
From Python 3.11 accessing an enum value will not longer convert to its value representation. Instead a representation of the enum key will be returned. This broke model download on wyoming-faster-whisper, since it changed the URL under which model downloads would be looked for. Closes: rhasspy#16
I post it here because Python package index website indicate this repository for home page so first of all, sorry if it is the wrong place.
I would like to test Whisper using Wyoming.
I use Home Assistant core installation, so I have not Docker for anything.
Having Docker installed only for one thing does not look reasonable for me, so I try to install Wyoming Whisper manually.
I looked into the add-on code to see how Wyoming Whisper installed and made the following on my side:
But when running the last command, I have the following:
How it could work for the add-on but not manually?
And how could I solve this?
I also posted a topic on Home Assistant community but it looks like I am alone to do that kind of setup 🙁
The text was updated successfully, but these errors were encountered: