add ElevenLabs TTS to voice factory

This commit is contained in:
uezhenxiang2023
2023-08-19 11:20:47 +08:00
parent 2473334dfc
commit acbd506568
3 changed files with 87 additions and 1 deletions

View File

@@ -29,4 +29,8 @@ def create_voice(voice_type):
from voice.azure.azure_voice import AzureVoice
return AzureVoice()
elif voice_type == "elevenlabs":
from voice.elevent.elevent_voice import ElevenLabsVoice
return ElevenLabsVoice()
raise RuntimeError