fix: speechmatics enable_entities channel variable name typo (#1587)

The speechmatics recognizer option transcription_config.enable_entities
was exported to freeswitch as SPEECHMATICS_ENABLE_ENTTIES, but
mod_speechmatics_transcribe reads SPEECHMATICS_ENABLE_ENTITIES, so the
option never reached the StartRecognition request and Speechmatics always
ran with its default. Rename the variable so the option takes effect.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
javibookline
2026-09-28 07:19:43 -04:00
committed by GitHub
co-authored by Claude Fable 5.1
parent 74510b0bef
commit ebcc3e3a8a
+1 -1
View File
@@ -1400,7 +1400,7 @@ module.exports = (logger) => {
...(speechmaticsOptions.transcription_config?.operating_point &&
{SPEECHMATICS_OPERATING_POINT: speechmaticsOptions.transcription_config.operating_point}),
...(speechmaticsOptions.transcription_config?.enable_entities &&
{SPEECHMATICS_ENABLE_ENTTIES: speechmaticsOptions.transcription_config.enable_entities}),
{SPEECHMATICS_ENABLE_ENTITIES: speechmaticsOptions.transcription_config.enable_entities}),
...(speechmaticsOptions.transcription_config?.audio_filtering_config?.volume_threshold &&
{SPEECHMATICS_VOLUME_THRESHOLD:
speechmaticsOptions.transcription_config.audio_filtering_config.volume_threshold}),