⚒️ fix(speechToText): OpenAI Provider (#3283)

This commit is contained in:
Marco Beretta 2024-07-07 00:32:19 +02:00 committed by GitHub
parent 7edb54889b
commit 55f8d9910e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -182,7 +182,7 @@ async function speechToText(req, res) {
switch (provider) { switch (provider) {
case 'openai': case 'openai':
[url, data, headers] = openAIProvider(customConfig.stt, audioReadStream); [url, data, headers] = openAIProvider(customConfig.speech.stt, audioReadStream);
break; break;
case 'azure': case 'azure':
[url, data, headers] = azureProvider(req, audioReadStream); [url, data, headers] = azureProvider(req, audioReadStream);