feat support Whisper TTS (#523)

* feat support openai

* update speech utils version
This commit is contained in:
Hoan Luu Huu
2023-11-09 21:51:20 +07:00
committed by GitHub
parent 31559cbb3b
commit 87632c549e
4 changed files with 326 additions and 8 deletions

View File

@@ -840,6 +840,11 @@ class CallSession extends Emitter {
speech_credential_sid: credential.speech_credential_sid,
api_key: credential.api_key
};
} else if ('whisper' === vendor) {
return {
api_key: credential.api_key,
model_id: credential.model_id
};
} else if (vendor.startsWith('custom:')) {
return {
speech_credential_sid: credential.speech_credential_sid,