From 211ef8c8a49aa219441c31c35589eb34780403e9 Mon Sep 17 00:00:00 2001 From: Roger Marrugat Escobedo Date: Thu, 15 Jan 2026 18:00:47 +0100 Subject: [PATCH 1/3] feature: Added new STT language codes es-ES, ca-ES, va-ES and gl-ES. Additionally, corrected some invalid TTS voice IDs. --- cli-client/helpers/common.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cli-client/helpers/common.py b/cli-client/helpers/common.py index 39e12ca..122f251 100644 --- a/cli-client/helpers/common.py +++ b/cli-client/helpers/common.py @@ -48,7 +48,7 @@ def parse_tts_command_line() -> SynthesizerOptions: 'luz_es_pe', 'bel_pt_br', 'david_es_es', - 'anna_ca', + 'anna_ca_es', 'arthur_en_us', 'fiona_en_us', 'tricia_en_us', @@ -57,7 +57,7 @@ def parse_tts_command_line() -> SynthesizerOptions: 'helena_es_es', 'pedro_pt_br', 'marcia_pt_br', - 'emma_ca', + 'emma_ca_es', 'xela_gl_es', 'marta_va_es' ], @@ -166,8 +166,11 @@ def parse_csr_commandline() -> RecognizerOptions: 'en-GB', 'pt-BR', 'es', - 'ca-ES', + 'es-ES', 'es-419', + 'ca-ES', + 'va-ES', + 'gl-ES', 'tr', 'ja', 'fr', From b715c2e28f53653fc7c0ac2c179ade746b0184ba Mon Sep 17 00:00:00 2001 From: Roger Marrugat Escobedo Date: Fri, 16 Jan 2026 10:52:18 +0100 Subject: [PATCH 2/3] refactor: Add extra checks in CSRClient._print_result to handle different types of responses from the gRPC stream. --- cli-client/helpers/csr_client.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/cli-client/helpers/csr_client.py b/cli-client/helpers/csr_client.py index b52d531..487a389 100644 --- a/cli-client/helpers/csr_client.py +++ b/cli-client/helpers/csr_client.py @@ -45,15 +45,25 @@ def _start_inactivity_timer(self, inactivity_timeout: float): self._inactivity_timer.start() def _print_result(self, response): + if not response.HasField("result"): + return + + if len(response.result.alternatives) > 0: + transcript = response.result.alternatives[0].transcript + confidence = response.result.alternatives[0].confidence + else: + transcript = "" + confidence = 0.0 + if response.result.is_final: transcript = "Final result:\n" \ - f'\t"transcript": "{response.result.alternatives[0].transcript}",\n' \ - f'\t"confidence": {response.result.alternatives[0].confidence},\n' \ + f'\t"transcript": "{transcript}",\n' \ + f'\t"confidence": {confidence},\n' \ f'\t"start_time": {response.result.start_time},\n' \ f'\t"duration": {response.result.duration}' logging.info(transcript) elif not self._hide_partial_results: - logging.info(f'Partial transcript: "{response.result.alternatives[0].transcript}"') + logging.info(f'Partial transcript: "{transcript}" -> start_time: {response.result.start_time}, duration: {response.result.duration}') def _response_watcher(self, response_iterator): try: From 32bea9444b9c65cfe6321a76f814469bec758532 Mon Sep 17 00:00:00 2001 From: rmarrugat <72133824+rmarrugat@users.noreply.github.com> Date: Tue, 20 Jan 2026 12:50:38 +0100 Subject: [PATCH 3/3] chore: Updated TTS voices argument list. Removed old 'tommy_en_us' voice, added new 'eduardo_pt_br' one and rearranged them in the same order as they appear in the documentation for clarity purposes. --- cli-client/helpers/common.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/cli-client/helpers/common.py b/cli-client/helpers/common.py index 122f251..783ecfe 100644 --- a/cli-client/helpers/common.py +++ b/cli-client/helpers/common.py @@ -42,21 +42,21 @@ def parse_tts_command_line() -> SynthesizerOptions: '--voice', '-v', choices=[ - 'tommy_en_us', - 'miguel_es_pe', - 'rosa_es_mx', - 'luz_es_pe', - 'bel_pt_br', - 'david_es_es', - 'anna_ca_es', + 'marvin_en_us', 'arthur_en_us', 'fiona_en_us', 'tricia_en_us', - 'marvin_en_us', + 'david_es_es', 'pablo_es_es', 'helena_es_es', + 'miguel_es_pe', + 'luz_es_pe', + 'rosa_es_mx', 'pedro_pt_br', + 'eduardo_pt_br', + 'bel_pt_br', 'marcia_pt_br', + 'anna_ca_es', 'emma_ca_es', 'xela_gl_es', 'marta_va_es'