我正在使用pyttsx将文本转换为音频,在使用cx_freeze进行编译之前工作正常。但是在它转换为exe后,没有声音输出。即使它没有产生任何错误。我的设置文件如下:
.
.
.
executables = [cx_Freeze.Executable("version2.py", base=base)]
includes = ['pyttsx', 'pyttsx.drivers.sapi5']
packages = ['tkinter']
cx_Freeze.setup(
name = "SpellChcker",
options = {"build_exe": {"packages": packages, 'includes': includes}},
version = "0.01",
description = "Spelling check app",
executables = executables
)