bugfix: get of speech credential was not returning soniox api_key

This commit is contained in:
Dave Horton
2023-03-03 13:49:36 -05:00
parent e573f6ab06
commit 08962fe7ba

View File

@@ -308,6 +308,10 @@ router.get('/:sid', async(req, res) => {
const o = JSON.parse(decrypt(credential));
obj.riva_server_uri = o.riva_server_uri;
}
else if ('soniox' === obj.vendor) {
const o = JSON.parse(decrypt(credential));
obj.api_key = obscureKey(o.api_key);
}
else if (obj.vendor.startsWith('custom:')) {
const o = JSON.parse(decrypt(credential));
obj.auth_token = obscureKey(o.auth_token);