🌊 feat: enhance TTSService with Deepgram SDK integration and refactor voice validation

This commit is contained in:
Marco Beretta 2024-11-23 16:49:56 +01:00
parent 5eabd2493c
commit b7f4903acd
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
3 changed files with 123 additions and 33 deletions

View file

@ -37,6 +37,9 @@ async function getVoices(req, res) {
case TTSProviders.LOCALAI:
voices = ttsSchema.localai?.voices;
break;
case TTSProviders.DEEPGRAM:
voices = ttsSchema.deepgram?.voices;
break;
default:
throw new Error('Invalid provider');
}