mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 13:47:15 +08:00
add ali voice output
增加阿里云语音输出支持。
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user