[voice] add support for wispper

This commit is contained in:
wanggang
2023-03-08 11:02:01 +08:00
parent 720ad07f83
commit 882e6c3576
7 changed files with 60 additions and 42 deletions

View File

@@ -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)