add ali voice output

增加阿里云语音输出接口
This commit is contained in:
chazzjimel
2023-12-06 00:43:19 +08:00
parent d89b056886
commit 293a03b7c8
3 changed files with 75 additions and 23 deletions

View File

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