![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
Piper with --cuda acceleration?
Is there a way to enable CUDA GPU acceleration with Calibre's packaged version of Piper?
Appending the "--cuda" flag had no effect; it still used only my CPU: Code:
cat test.txt | /opt/calibre/bin/piper/piper --model /home/geremia/.cache/calibre/piper-voices/en_US-ryan-high.onnx --sentence-silence 0.0 --length_scale 0.1 --cuda |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Build your own piper and replace the binary in the calibre package with it or with a script what adds --cuda to the argument list and then calls your own binary
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
|
![]() |
![]() |
![]() |
#4 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 256
Karma: 100000
Join Date: Oct 2012
Device: Calibre
|
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 "$@" Code:
echo 'hello, this is a test.' | ./piper --model /home/geremia/.cache/calibre/piper-voices/en_US-ryan-high.onnx | aplay Code:
calibre, version 8.3.0 ERROR: Read aloud failed: piper process failed with exit code: 2 and error messages: |
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,265
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
No clue, calibre just calls the piper binary in json mode with each sentence, presumably it doesnt work with cuda in that mode. You'd have to ask the piper developers.
|
![]() |
![]() |
Advert | |
|
![]() |
Tags |
calibre, cuda, gpu, piper, tts |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Piper GPU Acceleration | apophis | Calibre | 2 | 03-26-2025 03:17 PM |
Piper and MacOS problem | MDMullins | Viewer | 6 | 11-14-2024 01:34 AM |
T68 - Hardware graphics acceleration | emmen | Onyx Boox | 6 | 12-29-2014 04:39 AM |
Amazon's Silk Browser Acceleration Tested: Less Bandwidth Consumed, But Slower Perfor | afv011 | Kindle Fire | 5 | 11-24-2011 04:08 PM |
Android Honeycomb Port For Nook Color Gets Graphics Acceleration | Nathan Campos | News | 0 | 01-30-2011 01:11 PM |