feat/891: getting the options from customOptions in case of custom stt (#892)

This commit is contained in:
rammohan-y
2024-09-10 14:08:33 +05:30
committed by GitHub
parent c4a6057fc6
commit 3a7cc27d0a

View File

@@ -856,7 +856,7 @@ module.exports = (logger) => {
{VERBIO_SPEECH_INCOMPLETE_TIMEOUT: verbioOptions.speech_incomplete_timeout}), {VERBIO_SPEECH_INCOMPLETE_TIMEOUT: verbioOptions.speech_incomplete_timeout}),
}; };
} else if (vendor.startsWith('custom:')) { } else if (vendor.startsWith('custom:')) {
let {options = {}} = rOpts; let {options = {}} = rOpts.customOptions || {};
const {sampleRate} = rOpts.customOptions || {}; const {sampleRate} = rOpts.customOptions || {};
const {auth_token, custom_stt_url} = sttCredentials; const {auth_token, custom_stt_url} = sttCredentials;
options = { options = {