[voice] add text to voice

This commit is contained in:
wanggang
2023-03-07 23:28:57 +08:00
parent 1711a5c064
commit cc19017c01
5 changed files with 75 additions and 18 deletions

View File

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