mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 13:47:15 +08:00
feat(voice): add dashscope & zhipu ASR, in-page mic input
This commit is contained in:
@@ -58,4 +58,12 @@ def create_voice(voice_type):
|
||||
from voice.minimax.minimax_voice import MinimaxVoice
|
||||
|
||||
return MinimaxVoice()
|
||||
elif voice_type == "dashscope":
|
||||
from voice.dashscope.dashscope_voice import DashScopeVoice
|
||||
|
||||
return DashScopeVoice()
|
||||
elif voice_type == "zhipu" or voice_type == "zhipuai":
|
||||
from voice.zhipuai.zhipuai_voice import ZhipuAIVoice
|
||||
|
||||
return ZhipuAIVoice()
|
||||
raise RuntimeError
|
||||
|
||||
Reference in New Issue
Block a user