diff --git a/lib/session/call-session.js b/lib/session/call-session.js index 77c2cd7c..8b198a36 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -862,6 +862,12 @@ class CallSession extends Emitter { voice_engine: credential.voice_engine, options: credential.options }; + } else if ('rimelabs' === vendor) { + return { + api_key: credential.api_key, + model_id: credential.model_id, + options: credential.options + }; } else if ('assemblyai' === vendor) { return { speech_credential_sid: credential.speech_credential_sid, diff --git a/lib/utils/db-utils.js b/lib/utils/db-utils.js index dc427565..abf98699 100644 --- a/lib/utils/db-utils.js +++ b/lib/utils/db-utils.js @@ -100,6 +100,11 @@ const speechMapper = (cred) => { obj.user_id = o.user_id; obj.voice_engine = o.voice_engine; obj.options = o.options; + } else if ('rimelabs' === obj.vendor) { + const o = JSON.parse(decrypt(credential)); + obj.api_key = o.api_key; + obj.model_id = o.model_id; + obj.options = o.options; } else if ('assemblyai' === obj.vendor) { const o = JSON.parse(decrypt(credential)); obj.api_key = o.api_key; diff --git a/package-lock.json b/package-lock.json index 42456710..75ac826a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@jambonz/http-health-check": "^0.0.1", "@jambonz/mw-registrar": "^0.2.7", "@jambonz/realtimedb-helpers": "^0.8.8", - "@jambonz/speech-utils": "^0.0.50", + "@jambonz/speech-utils": "^0.0.51", "@jambonz/stats-collector": "^0.1.9", "@jambonz/time-series": "^0.2.8", "@jambonz/verb-specifications": "^0.0.69", @@ -2322,9 +2322,9 @@ } }, "node_modules/@jambonz/speech-utils": { - "version": "0.0.50", - "resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.0.50.tgz", - "integrity": "sha512-fcMaOuWrBVFh6FKiiurYhnQV71xXmnkyBQmp4OjNd1Zo8Ya+tZMdAJjyHtimjJdgiwJbwDnfdSwKSuz8G9CVkQ==", + "version": "0.0.51", + "resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.0.51.tgz", + "integrity": "sha512-3Zk2CERs1PYQiCG08NDMNBbDzBBfPuEwgADTANMP56dd07PpW360ufL8CcQfkBmWKGVma0wevRrv6DQLu2Ifdg==", "dependencies": { "@aws-sdk/client-polly": "^3.496.0", "@aws-sdk/client-sts": "^3.496.0", @@ -11930,9 +11930,9 @@ } }, "@jambonz/speech-utils": { - "version": "0.0.50", - "resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.0.50.tgz", - "integrity": "sha512-fcMaOuWrBVFh6FKiiurYhnQV71xXmnkyBQmp4OjNd1Zo8Ya+tZMdAJjyHtimjJdgiwJbwDnfdSwKSuz8G9CVkQ==", + "version": "0.0.51", + "resolved": "https://registry.npmjs.org/@jambonz/speech-utils/-/speech-utils-0.0.51.tgz", + "integrity": "sha512-3Zk2CERs1PYQiCG08NDMNBbDzBBfPuEwgADTANMP56dd07PpW360ufL8CcQfkBmWKGVma0wevRrv6DQLu2Ifdg==", "requires": { "@aws-sdk/client-polly": "^3.496.0", "@aws-sdk/client-sts": "^3.496.0", diff --git a/package.json b/package.json index e7e124bc..14299196 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@jambonz/http-health-check": "^0.0.1", "@jambonz/mw-registrar": "^0.2.7", "@jambonz/realtimedb-helpers": "^0.8.8", - "@jambonz/speech-utils": "^0.0.50", + "@jambonz/speech-utils": "^0.0.51", "@jambonz/stats-collector": "^0.1.9", "@jambonz/time-series": "^0.2.8", "@jambonz/verb-specifications": "^0.0.69",