From 47fbc1a4a4c9ee30943c82b11b77dae09a5fb0f9 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Mon, 18 Dec 2023 14:51:34 -0500 Subject: [PATCH] allow custom speech with no auth token (#571) --- lib/utils/transcription-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/transcription-utils.js b/lib/utils/transcription-utils.js index 038e8b72..986b29bc 100644 --- a/lib/utils/transcription-utils.js +++ b/lib/utils/transcription-utils.js @@ -741,7 +741,7 @@ module.exports = (logger) => { opts = { ...opts, - JAMBONZ_STT_API_KEY: auth_token, + ...(auth_token && {JAMBONZ_STT_API_KEY: auth_token}), JAMBONZ_STT_URL: custom_stt_url, ...(Object.keys(options).length > 0 && {JAMBONZ_STT_OPTIONS: JSON.stringify(options)}), };