Merge pull request #2879 from sam-s10s/fix/smx-vocab

Fix for SpeechmaticsSTTService AdditionVocabEntry entries
This commit is contained in:
Mark Backman
2025-10-18 09:27:23 -04:00
committed by GitHub
3 changed files with 8 additions and 2 deletions

View File

@@ -620,7 +620,7 @@ class SpeechmaticsSTTService(STTService):
transcription_config.additional_vocab = [
{
"content": e.content,
"sounds_like": e.sounds_like,
**({"sounds_like": e.sounds_like} if e.sounds_like else {}),
}
for e in self._params.additional_vocab
]