Skip to content

Commit

Permalink
ovos-audio-transformer-plugin-fasterwhisper
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed May 4, 2023
1 parent c4c53ae commit 70de39c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ available models are `"tiny.en", "tiny", "base.en", "base", "small.en", "small",

eg, to use Large model with GPU

To use Whisper as STT

```json
"stt": {
"module": "ovos-stt-plugin-fasterwhisper",
Expand All @@ -28,6 +30,20 @@ eg, to use Large model with GPU

```

To use Whisper for lang detection (ovos-dinkum-listener only)


```json
"listener": {
"audio_transformers": {
"ovos-audio-transformer-plugin-fasterwhisper": {
"model": "small"
}
}
}

```

## Models

Models will be auto downloaded by faster whisper on plugin load
Expand Down
2 changes: 1 addition & 1 deletion ovos_stt_plugin_fasterwhisper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class FasterWhisperLangClassifier(AudioTransformer):
def __init__(self, config=None):
config = config or {}
super().__init__("fasterwhisper_lang", 10, config)
super().__init__("ovos-audio-transformer-plugin-fasterwhisper", 10, config)
model = self.config.get("model")
if not model:
model = "small.en"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def required(requirements_file):

PLUGIN_ENTRY_POINT = 'ovos-stt-plugin-fasterwhisper = ovos_stt_plugin_fasterwhisper:FasterWhisperSTT'
CONFIG_ENTRY_POINT = 'ovos-stt-plugin-fasterwhisper.config = ovos_stt_plugin_fasterwhisper:FasterWhisperSTTConfig'
LANG_PLUGIN_ENTRY_POINT = 'ovos-stt-plugin-fasterwhisper = ovos_stt_plugin_fasterwhisper:FasterWhisperLangClassifier'
LANG_PLUGIN_ENTRY_POINT = 'ovos-audio-transformer-plugin-fasterwhisper = ovos_stt_plugin_fasterwhisper:FasterWhisperLangClassifier'


setup(
Expand Down

0 comments on commit 70de39c

Please sign in to comment.