def setup(): fix_requests.fix() if hasattr(sys, "frozen"): fix_win32com.fix()
def setup(): fix_arrow.fix() if hasattr(sys, "frozen"): fix_win32com.fix() fix_requests.fix() fix_urllib3_warnings.fix()
import cmd, os, sys import tts, time import fix_win32com if hasattr(sys, "frozen"): fix_win32com.fix() def main(): tts.set_output(cmd.args.sapi) with open(cmd.args.file) as f1: for line in f1: tts.speak(line, False) while True: if tts.get_output().name == "sapi5" and tts.is_speaking: time.sleep(0.05) else: break main()
import cmd, platform, sys import tts, time if platform.system() == 'Windows': import fix_win32com if hasattr(sys, "frozen"): fix_win32com.fix() tts.set_output(cmd.args.sapi) if platform.system() == 'Windows': with open(cmd.args.file) as f1: for line in f1: tts.speak(line, False) while True: if tts.get_output().name == "sapi5" and tts.is_speaking: time.sleep(0.05) else: break else: tts.speak(cmd.args.text, False) time.sleep(len(cmd.args.text) * cmd.args.wait)
def setup(): fix_arrow.fix() if hasattr(sys, "frozen"): fix_win32com.fix() fix_urllib3_warnings.fix()
def setup(): if hasattr(sys, "frozen"): fix_win32com.fix()