@@ -36,12 +36,15 @@ jobs:
3636 cd ~/.modelforce/bin
3737 curl -L -o piper.tar.gz "https://github.com/rhasspy/piper/releases/download/2023.11.14-2/piper_linux_x86_64.tar.gz"
3838 tar xzf piper.tar.gz
39- chmod +x piper
39+ find . -type f -name "piper" -exec chmod +x {} \;
4040 ls -la
41+ ls -la */
4142
4243 - name : Check Piper version
4344 run : |
44- ~/.modelforce/bin/piper --version
45+ PIPER_BIN=$(find ~/.modelforce/bin -name "piper" -type f -executable | head -1)
46+ echo "Found Piper at: $PIPER_BIN"
47+ $PIPER_BIN --version
4548
4649 - name : Download test voice
4750 run : |
5356
5457 - name : Test Piper synthesis
5558 run : |
56- echo "Hello world, this is a test" | ~/.modelforce/bin/piper \
59+ PIPER_BIN=$(find ~/.modelforce/bin -name "piper" -type f -executable | head -1)
60+ echo "Hello world, this is a test" | $PIPER_BIN \
5761 --model ~/.modelforce/voices/piper/en_US-lessac-medium.onnx \
5862 --output_file ~/.modelforce/test-output.wav
5963 ls -la ~/.modelforce/test-output.wav
@@ -96,11 +100,13 @@ jobs:
96100 New-Item -ItemType Directory -Path "$env:USERPROFILE\.modelforce\bin" -Force
97101 Invoke-WebRequest -Uri "https://github.com/rhasspy/piper/releases/download/2023.11.14-2/piper_windows_amd64.zip" -OutFile "$env:TEMP\piper.zip"
98102 Expand-Archive -Path "$env:TEMP\piper.zip" -DestinationPath "$env:USERPROFILE\.modelforce\bin" -Force
99- Get-ChildItem "$env:USERPROFILE\.modelforce\bin"
103+ Get-ChildItem "$env:USERPROFILE\.modelforce\bin" -Recurse
100104
101105 - name : Check Piper version
102106 run : |
103- & "$env:USERPROFILE\.modelforce\bin\piper.exe" --version
107+ $piperExe = Get-ChildItem "$env:USERPROFILE\.modelforce\bin" -Recurse -Filter "piper.exe" | Select-Object -First 1
108+ Write-Host "Found Piper at: $($piperExe.FullName)"
109+ & $piperExe.FullName --version
104110
105111 - name : Download test voice
106112 run : |
@@ -111,10 +117,11 @@ jobs:
111117
112118 - name : Test Piper synthesis
113119 run : |
120+ $piperExe = Get-ChildItem "$env:USERPROFILE\.modelforce\bin" -Recurse -Filter "piper.exe" | Select-Object -First 1
114121 $inputFile = "$env:TEMP\piper-input.txt"
115122 Set-Content -Path $inputFile -Value "Hello world, this is a test" -Encoding ASCII
116123
117- $process = Start-Process -FilePath "$env:USERPROFILE\.modelforce\bin\piper.exe" `
124+ $process = Start-Process -FilePath $piperExe.FullName `
118125 -ArgumentList "--model", "$env:USERPROFILE\.modelforce\voices\piper\en_US-lessac-medium.onnx", `
119126 "--output_file", "$env:USERPROFILE\.modelforce\test-output.wav" `
120127 -RedirectStandardInput $inputFile `
0 commit comments