Skip to content

Commit

Permalink
smaller whisper model
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jan 29, 2025
1 parent 3e78055 commit c48743d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
|-------------------------------|-----------------------------------------------------------------------------------------------|--------------------------------------|------|----------------------|
| HiveMind-core | hivemind-websocket-plugin | `ovos-core ` | 5678 | |
| HiveMind-core | hivemind-http-plugin | `ovos-core` | 5679 | |
| STT | ovos-stt-plugin-fasterwhisper | `base` | 8081 | /stt |
| Language Detection<br>(audio) | ovos-stt-plugin-fasterwhisper | `base` | 8081 | /lang_detect |
| STT | ovos-stt-plugin-fasterwhisper | `tiny` | 8081 | /stt |
| Language Detection<br>(audio) | ovos-stt-plugin-fasterwhisper | `tiny` | 8081 | /lang_detect |
| Piper | ovos-tts-plugin-piper | per language<br>(default `alan-low`) | 8082 | /v2/synthesize |
| Translation | ovos-google-translate-plugin | | 9686 | /translate |
| Language Detection<br>(text) | ovos-google-lang-detector-plugin | | 9686 | /detect |
Expand All @@ -16,20 +16,19 @@
| | [ovos-skill-wikipedia](https://github.com/OpenVoiceOS/ovos-skill-wikipedia) | wikipedia.json | 8400 | /v1/chat/completions |
| | [ovos-skill-ddg](https://github.com/OpenVoiceOS/ovos-skill-ddg) | ddg.json | 8403 | /v1/chat/completions |
| | [ovos-skill-wordnet](https://github.com/OpenVoiceOS/ovos-skill-wordnet) | wordnet.json | 8402 | /v1/chat/completions |
| | [g4f](https://github.com/xtekky/gpt4free) | | 1337 | /v1/chat/completions |
| | [g4f](https://github.com/xtekky/gpt4free) | https://duckduckgo.com/aichat | 1337 | /v1/chat/completions |
| Image Generation | [g4f](https://github.com/xtekky/gpt4free) | | 1337 | /v1/images/generate |


### OVOS Plugins

OVOS plugins integrate with OpenVoiceOS via mycroft.conf and also double as client libraries

- STT:
- [ovos-stt-plugin-server](https://github.com/OpenVoiceOS/ovos-stt-server-plugin)
- [ovos-stt-plugin-server](https://github.com/OpenVoiceOS/ovos-stt-server-plugin)
- TTS:
- [ovos-tts-plugin-server](https://github.com/OpenVoiceOS/ovos-tts-server-plugin)
- [ovos-tts-plugin-server](https://github.com/OpenVoiceOS/ovos-tts-server-plugin)
- Translation:
- [ovos-translate-server-plugin](https://github.com/OpenVoiceOS/ovos-translate-server-plugin)
- [ovos-translate-server-plugin](https://github.com/OpenVoiceOS/ovos-translate-server-plugin)
- persona (OpenAI compatible):
- [ovos-skill-fallback-chatgpt](https://github.com/OpenVoiceOS/ovos-skill-fallback-chatgpt)
- [ovos-solver-openai-persona-plugin](https://github.com/OpenVoiceOS/ovos-solver-openai-persona-plugin)
- [ovos-skill-fallback-chatgpt](https://github.com/OpenVoiceOS/ovos-skill-fallback-chatgpt)
- [ovos-solver-openai-persona-plugin](https://github.com/OpenVoiceOS/ovos-solver-openai-persona-plugin)
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ echo "Installing server plugins"
uv pip install --no-progress --pre ovos-google-translate-plugin ovos-tts-plugin-piper ovos-stt-plugin-fasterwhisper

echo "Downloading whisper model..."
python -c "from huggingface_hub import snapshot_download; repo_id = 'Systran/faster-whisper-base'; file_path = snapshot_download(repo_id=repo_id); print(f'Downloaded {repo_id}'); print(file_path)"
python -c "from huggingface_hub import snapshot_download; repo_id = 'Systran/faster-whisper-tiny'; file_path = snapshot_download(repo_id=repo_id); print(f'Downloaded {repo_id}'); print(file_path)"
# since script was run as root, we need to move downloaded files
mkdir -p /home/ovos/.cache/huggingface/hub/
mv /root/.cache/huggingface/hub/models--Systran--faster-whisper-base/ /home/ovos/.cache/huggingface/hub/models--Systran--faster-whisper-base/
mv /root/.cache/huggingface/hub/models--Systran--faster-whisper-tiny/ /home/ovos/.cache/huggingface/hub/models--Systran--faster-whisper-tiny/

echo "Installing solver plugins"
uv pip install --no-progress https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.2/llama_cpp_python-0.3.2-cp311-cp311-linux_aarch64.whl
Expand Down

0 comments on commit c48743d

Please sign in to comment.