Transcribe mono PCM using an installed local Vosk model.
More...
|
| None | __init__ (self, str|Path model_path) |
| | Provide init behavior.
|
| str | transcribe (self, np.ndarray pcm, int sample_rate) |
| | Provide transcribe behavior.
|
Transcribe mono PCM using an installed local Vosk model.
◆ __init__()
| None sdrforge.weather.vosk_adapter.VoskOfflineRecognizer.__init__ |
( |
| self, |
|
|
str | Path | model_path ) |
Provide init behavior.
- Parameters
-
| self | The current instance. |
| model_path | The model path value. |
◆ transcribe()
| str sdrforge.weather.vosk_adapter.VoskOfflineRecognizer.transcribe |
( |
| self, |
|
|
np.ndarray | pcm, |
|
|
int | sample_rate ) |
Provide transcribe behavior.
- Parameters
-
| self | The current instance. |
| pcm | The pcm value. |
| sample_rate | The sample rate value. |
- Returns
- The operation result.
◆ _model
| sdrforge.weather.vosk_adapter.VoskOfflineRecognizer._model = vosk.Model(str(path)) |
|
protected |
◆ _vosk
| sdrforge.weather.vosk_adapter.VoskOfflineRecognizer._vosk = vosk |
|
protected |
The documentation for this class was generated from the following file: