Fix for AdditionVocabEntry without sounds_like items.

This commit is contained in:
Sam Sykes
2025-10-17 14:34:37 +01:00
parent 88f8c10f63
commit f2c61ac9fd
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
]