diff --git a/CHANGELOG.md b/CHANGELOG.md index 968332e..502e085 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,20 +1,12 @@ # Changelog -## [0.2.1a1](https://github.com/OpenVoiceOS/ovos-dinkum-listener/tree/0.2.1a1) (2024-09-15) +## [0.2.3a1](https://github.com/OpenVoiceOS/ovos-dinkum-listener/tree/0.2.3a1) (2024-10-19) -[Full Changelog](https://github.com/OpenVoiceOS/ovos-dinkum-listener/compare/0.2.0a1...0.2.1a1) +[Full Changelog](https://github.com/OpenVoiceOS/ovos-dinkum-listener/compare/0.2.2...0.2.3a1) **Merged pull requests:** -- fix:prefer\_alsa [\#144](https://github.com/OpenVoiceOS/ovos-dinkum-listener/pull/144) ([JarbasAl](https://github.com/JarbasAl)) - -## [0.2.0a1](https://github.com/OpenVoiceOS/ovos-dinkum-listener/tree/0.2.0a1) (2024-09-11) - -[Full Changelog](https://github.com/OpenVoiceOS/ovos-dinkum-listener/compare/0.1.3...0.2.0a1) - -**Merged pull requests:** - -- feat:fallback plugins [\#138](https://github.com/OpenVoiceOS/ovos-dinkum-listener/pull/138) ([JarbasAl](https://github.com/JarbasAl)) +- fix:save utterances [\#148](https://github.com/OpenVoiceOS/ovos-dinkum-listener/pull/148) ([JarbasAl](https://github.com/JarbasAl)) diff --git a/ovos_dinkum_listener/service.py b/ovos_dinkum_listener/service.py index ae5d05a..3359b25 100644 --- a/ovos_dinkum_listener/service.py +++ b/ovos_dinkum_listener/service.py @@ -692,16 +692,14 @@ def _save_stt(self, audio_bytes, stt_meta, save_path=None): @formatter.register('md5') def transcription_md5(): # Build a hash of the transcription + try: - # handles legacy API - text = stt_meta.get('transcription') - except KeyError: - # handles new API # transcriptions should be : List[Tuple[str, int]] - try: - text = stt_meta.get('transcriptions')[0][0] - except IndexError: - return 'null' + text = stt_meta.get('transcriptions')[0][0] + except IndexError: + # handles legacy API + return stt_meta.get('transcription') or 'null' + return hash_sentence(text) filename = formatter.format(utterance_filename) diff --git a/ovos_dinkum_listener/version.py b/ovos_dinkum_listener/version.py index 7c5bb01..f245d8d 100644 --- a/ovos_dinkum_listener/version.py +++ b/ovos_dinkum_listener/version.py @@ -1,6 +1,6 @@ # START_VERSION_BLOCK VERSION_MAJOR = 0 VERSION_MINOR = 2 -VERSION_BUILD = 2 -VERSION_ALPHA = 0 +VERSION_BUILD = 3 +VERSION_ALPHA = 1 # END_VERSION_BLOCK diff --git a/requirements/requirements.txt b/requirements/requirements.txt index a02fc8b..f34fe8d 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -1,5 +1,5 @@ ovos-plugin-manager>=0.3.1,<1.0.0 ovos-utils>=0.0.38,<1.0.0 -ovos-config>=0.2.1,<1.0.0 +ovos-config>=0.4.3,<1.0.0 ovos_bus_client>=0.0.10,<1.0.0 SpeechRecognition~=3.9