mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2026-07-24 13:02:16 +00:00
soundhound speech credential support audio endpoint (#520)
* soundhound speech credential support audio endpoint * soundhound speech credential support audio endpoint * wip * wip
This commit is contained in:
@@ -676,8 +676,10 @@ const testHoundifyStt = async(logger, credentials) => {
|
||||
requestInfo: {
|
||||
UserID: user_id || 'test_user',
|
||||
Latitude: 37.388309,
|
||||
Longitude: -121.973968
|
||||
Longitude: -121.973968,
|
||||
},
|
||||
// custom endpint is used only for feature server.
|
||||
// ...(houndify_server_uri && {endpoint: houndify_server_uri}),
|
||||
|
||||
// Audio format configuration
|
||||
sampleRate: 16000,
|
||||
@@ -887,6 +889,7 @@ function decryptCredential(obj, credential, logger, isObscureKey = true) {
|
||||
obj.client_key = isObscureKey ? obscureKey(o.client_key) : o.client_key;
|
||||
obj.client_id = o.client_id;
|
||||
obj.user_id = o.user_id;
|
||||
obj.houndify_server_uri = o.houndify_server_uri;
|
||||
} else if ('resemble' === obj.vendor) {
|
||||
const o = JSON.parse(decrypt(credential));
|
||||
obj.api_key = isObscureKey ? obscureKey(o.api_key) : o.api_key;
|
||||
|
||||
Reference in New Issue
Block a user