allow custom speech with no auth token (#571)

This commit is contained in:
Dave Horton
2023-12-18 14:51:34 -05:00
committed by GitHub
parent 7474a359a4
commit 47fbc1a4a4

View File

@@ -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)}),
};