From 25f58d2e4363568b9102c2cd2086402cbb607535 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Wed, 4 Jun 2025 13:42:49 -0400 Subject: [PATCH] fixes #1230 (#1231) --- lib/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/middleware.js b/lib/middleware.js index cf1b07e1..7e1d37e3 100644 --- a/lib/middleware.js +++ b/lib/middleware.js @@ -332,7 +332,7 @@ module.exports = function(srf, logger) { } // Resolve application.speech_synthesis_voice if it's custom voice - if (app2.speech_synthesis_vendor === 'google' && app2.speech_synthesis_voice.startsWith('custom_')) { + if (app2.speech_synthesis_vendor === 'google' && app2.speech_synthesis_voice?.startsWith('custom_')) { const arr = /custom_(.*)/.exec(app2.speech_synthesis_voice); if (arr) { const google_custom_voice_sid = arr[1];