rhasspy / piper

A fast, local neural text to speech system

Home Page:https://rhasspy.github.io/piper-samples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with .json input to piper

AZM999 opened this issue · comments

I am trying to call the piper from my script by using the following command :

echo simple.json  |  ./piper --model en_US-lessac-medium.onnx --json-input --output_file welcome.wav

but I am getting the following error :

[2024-05-24 00:00:18.355] [piper] [info] Loaded voice in 0.217876099 second(s)
[2024-05-24 00:00:18.355] [piper] [info] Initialized piper
terminate called after throwing an instance of 'nlohmann::json_abi_v3_11_2::detail::parse_error'
  what():  [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: 's'
Aborted (core dumped)

the contents of file simple.json are :

{ "text": "First sentence to speak." }
{ "text": "Second sentence to speak." }

I am using Debian 12 Bookworm and have build piper from source version 1.2.0

echo simple.json

you have to use **Get-Content .\simple.json **

edit:
ah debian i think is cat the command not Get-Content