コード例 #1
0
ファイル: __init__.py プロジェクト: manuelcortez/socializer
def setup():
	fix_requests.fix()
	if hasattr(sys, "frozen"):
		fix_win32com.fix()
コード例 #2
0
ファイル: __init__.py プロジェクト: TWBlueQS/TWBlueQS
def setup():
	fix_arrow.fix()
	if hasattr(sys, "frozen"):
		fix_win32com.fix()
		fix_requests.fix()
	fix_urllib3_warnings.fix()
コード例 #3
0
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()
コード例 #4
0
ファイル: main.py プロジェクト: sukiletxe/zesarux-ao2
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)
コード例 #5
0
def setup():
    fix_arrow.fix()
    if hasattr(sys, "frozen"):
        fix_win32com.fix()
    fix_urllib3_warnings.fix()
コード例 #6
0
def setup():
	if hasattr(sys, "frozen"):
		fix_win32com.fix()