mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-03-19 13:28:11 +08:00
[voice] add text to voice
This commit is contained in:
@@ -11,3 +11,6 @@ class Bridge(object):
|
||||
|
||||
def fetch_voice_to_text(self, voiceFile):
|
||||
return voice_factory.create_voice("google").voiceToText(voiceFile)
|
||||
|
||||
def fetch_text_to_voice(self, text):
|
||||
return voice_factory.create_voice("google").textToVoice(text)
|
||||
Reference in New Issue
Block a user