mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-28 05:58:33 +08:00
[voice] add support for wispper
This commit is contained in:
@@ -10,7 +10,7 @@ class Bridge(object):
|
||||
return bot_factory.create_bot("chatGPT").reply(query, context)
|
||||
|
||||
def fetch_voice_to_text(self, voiceFile):
|
||||
return voice_factory.create_voice("google").voiceToText(voiceFile)
|
||||
return voice_factory.create_voice("openai").voiceToText(voiceFile)
|
||||
|
||||
def fetch_text_to_voice(self, text):
|
||||
return voice_factory.create_voice("google").textToVoice(text)
|
||||
return voice_factory.create_voice("baidu").textToVoice(text)
|
||||
Reference in New Issue
Block a user