Skip to content

Commit

Permalink
Merge pull request #166 from OpenVoiceOS/release-0.3.6a1
Browse files Browse the repository at this point in the history
Release 0.3.6a1
  • Loading branch information
JarbasAl authored Jan 16, 2025
2 parents c0bc457 + afb7c8a commit 9862c96
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
strategy:
max-parallel: 2
matrix:
python-version: [ 3.7, 3.8, 3.9, "3.10" ]
python-version: [3.9, "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: '3.11'
- name: Install Build Tools
run: |
python -m pip install build wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: '3.11'
- name: Install Build Tools
run: |
python -m pip install build wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.8
python-version: '3.11'
- name: Install Build Tools
run: |
python -m pip install build wheel
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
unit_tests:
strategy:
matrix:
python-version: [ 3.7, 3.8, 3.9, '3.10' ]
python-version: [3.9, '3.10', '3.11']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
# Changelog

## [0.3.4a1](https://github.com/OpenVoiceOS/ovos-dinkum-listener/tree/0.3.4a1) (2024-11-20)
## [0.3.6a1](https://github.com/OpenVoiceOS/ovos-dinkum-listener/tree/0.3.6a1) (2025-01-16)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-dinkum-listener/compare/0.3.3...0.3.4a1)
[Full Changelog](https://github.com/OpenVoiceOS/ovos-dinkum-listener/compare/0.3.5a1...0.3.6a1)

**Merged pull requests:**

- fix:remove unused dependency from extras [\#161](https://github.com/OpenVoiceOS/ovos-dinkum-listener/pull/161) ([JarbasAl](https://github.com/JarbasAl))
- fix:runtime\_lang [\#165](https://github.com/OpenVoiceOS/ovos-dinkum-listener/pull/165) ([JarbasAl](https://github.com/JarbasAl))

## [0.3.5a1](https://github.com/OpenVoiceOS/ovos-dinkum-listener/tree/0.3.5a1) (2025-01-04)

[Full Changelog](https://github.com/OpenVoiceOS/ovos-dinkum-listener/compare/0.3.4...0.3.5a1)

**Merged pull requests:**

- chore: add warnings [\#163](https://github.com/OpenVoiceOS/ovos-dinkum-listener/pull/163) ([JarbasAl](https://github.com/JarbasAl))



Expand Down
1 change: 1 addition & 0 deletions ovos_dinkum_listener/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def transcribe(self, audio: Optional[Union[bytes, AudioData]] = None,
audiod = audio
else:
raise ValueError(f"'audio' must be 'bytes' or 'AudioData', got '{type(audio)}'")
LOG.debug(f"Transcribing with lang: {lang}")
return self.engine.transcribe(audiod, lang)


Expand Down
6 changes: 6 additions & 0 deletions ovos_dinkum_listener/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
from ovos_utils.log import LOG, log_deprecation
from ovos_utils.process_utils import ProcessStatus, StatusCallbackMap, ProcessState

import warnings
from ovos_dinkum_listener._util import _TemplateFilenameFormatter
from ovos_dinkum_listener.plugins import load_stt_module, load_fallback_stt, FakeStreamingSTT
from ovos_dinkum_listener.transformers import AudioTransformersService
Expand Down Expand Up @@ -310,6 +311,11 @@ def default_save_path(self):

@property
def state(self):
warnings.warn(
"reference `self.status.state` instead",
DeprecationWarning,
stacklevel=2,
)
log_deprecation("This property is deprecated, reference `status.state`",
"0.1.0")
if self.status.state in (ProcessState.NOT_STARTED, ProcessState.ALIVE):
Expand Down
4 changes: 2 additions & 2 deletions ovos_dinkum_listener/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# START_VERSION_BLOCK
VERSION_MAJOR = 0
VERSION_MINOR = 3
VERSION_BUILD = 4
VERSION_ALPHA = 0
VERSION_BUILD = 6
VERSION_ALPHA = 1
# END_VERSION_BLOCK
11 changes: 7 additions & 4 deletions ovos_dinkum_listener/voice_loop/voice_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@ def _get_tx(self, stt_context: dict) -> (str, dict):
@return: string transcription and dict context
"""
# handle lang detection from speech
lang = self.stt.lang
if "stt_lang" in stt_context:
lang = self._validate_lang(stt_context["stt_lang"])
stt_context["stt_lang"] = lang
Expand All @@ -711,16 +712,18 @@ def _get_tx(self, stt_context: dict) -> (str, dict):

# get text and trigger callback
try:
utts = self.stt.transcribe() or []
except:
utts = self.stt.transcribe(lang=lang) or []
except Exception as e:
LOG.exception(f"Primary STT transcription failed: {str(e)}")
LOG.exception("STT failed")
utts = []

if not utts and self.fallback_stt is not None:
LOG.info("Attempting fallback STT plugin")
try:
utts = self.fallback_stt.transcribe() or []
except:
utts = self.fallback_stt.transcribe(lang=lang) or []
except Exception as e:
LOG.exception(f"Fallback STT transcription failed: {str(e)}")
LOG.exception("Fallback STT failed")

if not utts:
Expand Down

0 comments on commit 9862c96

Please sign in to comment.