Vuizur / tatoeba-to-anki

Creates Anki Flash cards from Tatoeba sentences, ordering them by difficulty and downloading audio
GNU General Public License v3.0
7 stars 2 forks source link

Error with Edge tts #10

Open ghost opened 1 year ago

ghost commented 1 year ago
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command 'edge-tts --file "audio/3003609.mp3.txt" --write-media "audio/3003609.mp3" --voice pl-PL-ZofiaNeural' returned non-zero exit status 1.
Traceback locals:
    input = None
    capture_output = False
    timeout = None
    check = True
    popenargs = ('edge-tts --file "audio/3003609.mp3.txt" --write-media "audi...
    len(popenargs) = 1
    kwargs = {'stdout': -1, 'shell': True}
    process = <Popen: returncode: 1 args: 'edge-tts --file "audio/3003609.mp3...
    stdout = b''
    stderr = None
    retcode = 1
Vuizur commented 1 year ago

Hmm, I noticed that I forgot to push some code, so I pushed this now. But I'm not sure if the new code changes a lot. But to make sure, test the newest version. I just tested the package and for me it worked (I used poetry as an environment.) What code exactly did you execute and what system are you on?

ghost commented 1 year ago

Okay! Will check now. Running Arch Linux and I just tried the example.py file in the Readme. Then tried different languages and they all have the same error

Vuizur commented 1 year ago

The download method was changed a while back, so it might work now. (I only can't test it, because edge-tts seems to be broken on my WSL2 install, but its maintainer uses Linux, so the library is definitely Linux compatible.)

I'll also soon publish a list of preconstructed decks, so end users won't have to run the program anymore.