Closed youssefavx closed 3 years ago
The python 3 log says that it cannot find the espeak header files correctly:
cew_func.obj : error LNK2001: unresolved external symbol espeak_Synth
cew_func.obj : error LNK2001: unresolved external symbol espeak_SetSynthCallback
cew_func.obj : error LNK2001: unresolved external symbol espeak_SetVoiceByProperties
cew_func.obj : error LNK2001: unresolved external symbol espeak_Initialize
cew_func.obj : error LNK2001: unresolved external symbol espeak_Synchronize
cew_func.obj : error LNK2001: unresolved external symbol espeak_Terminate
build\lib.win-amd64-3.7\aeneas\cew\cew.cp37-win_amd64.pyd : fatal error LNK1120: 6 unresolved externals
However, note that Windows is not officially supported (mostly because I do not own a personal Windows machine).
I guess you installed the python 2 version using the SIL installer? https://github.com/readbeyond/aeneas/blob/master/wiki/INSTALL.md#all-in-one-installer-1 --- from the information you shared, it looks like aeneas was installed correctly. As the diagnostics say, you probably want to set your command prompt / PowerShell to use UTF-8 by issuing the command:
set PYTHONIOENCODING=UTF-8
before executing any aeneas CLI or python program using aeneas as a library. The
#coding=utf-8
has nothing to do with the shell Python is executed from.
Having said all of this, from you posted I have not enough information about what you are doing to help you. I would need to see the code you wrote using aeneas, and possibly the input text and audio. If you cannot share those publicly, you can send me an email with the URL of a FTP / Dropbox / OneDrive / etc. link from which I can download a ZIP containing everything I need to reproduce.
Closing due to inactivity.
I'm running Aeneas inside of a script in Python 2 on Windows (doing python 2 because installing aeneas with python 3 gave me an error). It keeps running and then the script just stops around this line:
ExecuteTask(task).execute()
I added a print statement after every line, and after that line, and that print statement never showed up, and there were no errors. The script just stopped running. I don't know if this has to do with utf-8 or not.
When I ran diagnostics, this is what I got:
When I load the text files I want to use for Aeneas, this is what I'm doing:
And at the top of my code I have:
#coding=utf-8
While installing Aeneas with python3 like so: py -3 -m pip install aeneas, this is the error I get: