mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-01-25 02:08:24 +00:00
fix soniox stt speech credential validation (#535)
This commit is contained in:
@@ -70,7 +70,9 @@ const testSonioxStt = async(logger, credentials) => {
|
||||
|
||||
return new Promise(async(resolve, reject) => {
|
||||
try {
|
||||
const result = await soniox.transcribeFileShort('data/test_audio.wav');
|
||||
const result = await soniox.transcribeFileShort('data/test_audio.wav', {
|
||||
model: 'en_v2'
|
||||
});
|
||||
if (result.words.length > 0) resolve(result);
|
||||
else reject(new Error('no transcript returned'));
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user