Using a script
Code:
#!/bin/sh
# convert the bash alias="piper --cuda" into a bash function and run it:
/home/geremia/.local/bin/piper --cuda "$@"
in place of /opt/calibre/bin/piper that uses my GPU-enabled, PIP-installed piper, which works when I run
Code:
echo 'hello, this is a test.' | ./piper --model /home/geremia/.cache/calibre/piper-voices/en_US-ryan-high.onnx | aplay
, I get this in ebook-viewer:
Code:
calibre, version 8.3.0
ERROR: Read aloud failed: piper process failed with exit code: 2 and error messages: