Skip to content

Commit c55a0cd

Browse files
authored
Release 0.2.4a1 (#19)
* fix: compatibility with ovos-plugin-manager 1.X.X (#18) * Increment Version to 0.2.4a1 * Update Changelog --------- Co-authored-by: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Co-authored-by: JarbasAl <JarbasAl@users.noreply.github.com>
2 parents ea7f944 + a41a977 commit c55a0cd

File tree

4 files changed

+30
-10
lines changed

4 files changed

+30
-10
lines changed

CHANGELOG.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
# Changelog
22

3-
## [0.2.2a1](https://github.com/OpenVoiceOS/ovos-stt-plugin-vosk/tree/0.2.2a1) (2024-11-20)
3+
## [0.2.4a1](https://github.com/OpenVoiceOS/ovos-stt-plugin-vosk/tree/0.2.4a1) (2025-06-08)
44

5-
[Full Changelog](https://github.com/OpenVoiceOS/ovos-stt-plugin-vosk/compare/V0.2.1...0.2.2a1)
5+
[Full Changelog](https://github.com/OpenVoiceOS/ovos-stt-plugin-vosk/compare/0.2.3...0.2.4a1)
66

77
**Merged pull requests:**
88

9-
- fix: drop deprecated import [\#16](https://github.com/OpenVoiceOS/ovos-stt-plugin-vosk/pull/16) ([JarbasAl](https://github.com/JarbasAl))
10-
11-
## [V0.2.1](https://github.com/OpenVoiceOS/ovos-stt-plugin-vosk/tree/V0.2.1) (2024-09-11)
12-
13-
[Full Changelog](https://github.com/OpenVoiceOS/ovos-stt-plugin-vosk/compare/0.2.1...V0.2.1)
9+
- fix: compatibility with ovos-plugin-manager 1.X.X [\#18](https://github.com/OpenVoiceOS/ovos-stt-plugin-vosk/pull/18) ([JarbasAl](https://github.com/JarbasAl))
1410

1511

1612

ovos_stt_plugin_vosk/__init__.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
import requests
1313
from ovos_plugin_manager.templates.stt import STT, StreamThread, StreamingSTT
14+
from ovos_utils import classproperty
1415
from ovos_utils.log import LOG
1516
from ovos_utils.network_utils import is_connected
1617
from ovos_utils.xdg_utils import xdg_data_home
@@ -184,6 +185,16 @@ def __init__(self, *args, **kwargs):
184185
self.model.load_language(self.lang)
185186
self.verbose = True
186187

188+
@classproperty
189+
def available_languages(cls) -> set:
190+
"""Return languages supported by this TTS implementation in this state
191+
This property should be overridden by the derived class to advertise
192+
what languages that engine supports.
193+
Returns:
194+
set: supported languages
195+
"""
196+
return set(VoskSTTConfig.keys())
197+
187198
def load_language(self, lang):
188199
self.model.load_language(lang)
189200

@@ -245,6 +256,18 @@ def create_streaming_thread(self):
245256
return VoskKaldiStreamThread(
246257
self.queue, self.lang, self.model, self.verbose
247258
)
259+
260+
@classproperty
261+
def available_languages(cls) -> set:
262+
"""Return languages supported by this TTS implementation in this state
263+
This property should be overridden by the derived class to advertise
264+
what languages that engine supports.
265+
Returns:
266+
set: supported languages
267+
"""
268+
return set(VoskSTTConfig.keys())
269+
270+
248271
def download(url, file=None, session=None):
249272
"""
250273
Pass file as a filename, open file object, or None to return the request bytes

ovos_stt_plugin_vosk/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# START_VERSION_BLOCK
22
VERSION_MAJOR = 0
33
VERSION_MINOR = 2
4-
VERSION_BUILD = 3
5-
VERSION_ALPHA = 0
4+
VERSION_BUILD = 4
5+
VERSION_ALPHA = 1
66
# END_VERSION_BLOCK

requirements/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
vosk
2-
ovos-plugin-manager>=0.0.1,<1.0.0
2+
3+
ovos-plugin-manager>=1.0.0,<2.0.0
34
SpeechRecognition>=3.8.1

0 commit comments

Comments
 (0)