From 960c0c82d690aa15fb19eabfb0194863a885e72f Mon Sep 17 00:00:00 2001 From: Daniel McKnight Date: Mon, 3 Jun 2024 16:28:21 -0700 Subject: [PATCH] Remove quotes from API endpoint like other inputs --- neon_speech/service.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/neon_speech/service.py b/neon_speech/service.py index c8ddc9d..47953e5 100644 --- a/neon_speech/service.py +++ b/neon_speech/service.py @@ -41,6 +41,7 @@ from ovos_utils.log import LOG, log_deprecation from neon_utils.configuration_utils import get_neon_user_config from neon_utils.metrics_utils import Stopwatch +from neon_utils.parse_utils import clean_quotes from neon_utils.user_utils import apply_local_user_profile_updates from ovos_bus_client import Message from ovos_config.config import update_mycroft_config @@ -572,6 +573,8 @@ def _get_stt_from_file(self, wav_file: str, LOG.warning("Transcriptions is a str, no alternatives provided") transcriptions = [transcriptions] + transcriptions = [clean_quotes(t) for t in transcriptions] + get_stt = float(_stopwatch.time) with _stopwatch: audio, audio_context = self.transformers.transform(audio_data)