|
@@ -788,7 +788,15 @@ def anchor_video_eng(name_hash,name,text_content, image_urls,sub_titles,avatar):
|
|
|
print("video at : www.choozmo.com:8168/"+video_sub_folder+name_hash+".mp4")
|
|
|
#line notifs
|
|
|
|
|
|
+import pyttsx3
|
|
|
+def make_speech(text):
|
|
|
+ engine = pyttsx3.init()
|
|
|
+ #voices = engine.getProperty('voices')
|
|
|
+ engine.setProperty('voice', 'Mandarin')
|
|
|
+ engine.save_to_file(text, '/app/speech.mp3')
|
|
|
+ engine.runAndWait()
|
|
|
|
|
|
+
|
|
|
class video_service(rpyc.Service):
|
|
|
def exposed_call_video(self,name_hash,name,text_content, image_urls,multiLang,avatar):
|
|
|
print('ML:'+str(multiLang))
|
|
@@ -798,6 +806,7 @@ class video_service(rpyc.Service):
|
|
|
def exposed_call_video_gen(self,name_hash,name,text_content, image_urls,multiLang,avatar):
|
|
|
print('ML:'+str(multiLang))#this is long video version,
|
|
|
video_gen(name_hash,name,text_content, image_urls,multiLang,avatar)
|
|
|
+ def expose_make_speech(self,text):
|
|
|
|
|
|
|
|
|
|