add ali voice output

增加阿里云语音输出支持。
This commit is contained in:
chazzjimel
2023-12-03 18:19:03 +08:00
parent 88fb3dbf60
commit d89b056886
4 changed files with 197 additions and 7 deletions

View File

@@ -29,12 +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
elif voice_type == "ali":
from voice.ali.ali_voice import AliVoice
return ElevenLabsVoice()
elif voice_type == "linkai":
from voice.linkai.linkai_voice import LinkAIVoice
return LinkAIVoice()
return AliVoice()
raise RuntimeError