Offline speech recognizer backed by libvosk's stable C API.
More...
|
| None | __init__ (self, str|Path model_path, str|Path|None library_path=None) |
| | Provide init behavior.
|
| None | close (self) |
| | Provide close behavior.
|
| Self | __enter__ (self) |
| | Provide enter behavior.
|
| None | __exit__ (self, *object _) |
| | Provide exit behavior.
|
| str | transcribe (self, np.ndarray pcm, int sample_rate) |
| | Provide transcribe behavior.
|
Offline speech recognizer backed by libvosk's stable C API.
◆ __init__()
| None sdrforge.weather.vosk_native.VoskNativeAdapter.__init__ |
( |
| self, |
|
|
str | Path | model_path, |
|
|
str | Path | None | library_path = None ) |
Provide init behavior.
- Parameters
-
| self | The current instance. |
| model_path | The model path value. |
| library_path | The library path value. |
◆ __enter__()
| Self sdrforge.weather.vosk_native.VoskNativeAdapter.__enter__ |
( |
| self | ) |
|
Provide enter behavior.
- Parameters
-
| self | The current instance. |
- Returns
- The operation result.
◆ __exit__()
| None sdrforge.weather.vosk_native.VoskNativeAdapter.__exit__ |
( |
| self, |
|
|
*object | _ ) |
Provide exit behavior.
- Parameters
-
| self | The current instance. |
| _ | The value. |
◆ _configure()
| None sdrforge.weather.vosk_native.VoskNativeAdapter._configure |
( |
ctypes.CDLL | lib | ) |
|
|
staticprotected |
◆ close()
| None sdrforge.weather.vosk_native.VoskNativeAdapter.close |
( |
| self | ) |
|
Provide close behavior.
- Parameters
-
| self | The current instance. |
◆ transcribe()
| str sdrforge.weather.vosk_native.VoskNativeAdapter.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.
◆ _lib
| sdrforge.weather.vosk_native.VoskNativeAdapter._lib = lib |
|
protected |
◆ _model
| sdrforge.weather.vosk_native.VoskNativeAdapter._model = model |
|
protected |
The documentation for this class was generated from the following file: