This is a very barebones and simple node to utilize the pico2wave commandline tool easily from nodered. It does exactly one thing . The node converts an input string to spoken audio in the chosen language with svox pico tts. You can choose from english, french, german, italian and spanish. You can configure the node to either output a single wav buffer or write the audio to a wav file. You can find the node here:
added typedInput for both input and output (so the stt text now can also come from a flow, a global variable or a string and the result can be put out to any msg property)
You are right! This is my test Node-RED (running on a Raspi 4) just installed today for voice2json, so I decided to install this node, too.
After installing git (nothing else despite the dependencies) it throws these errors:
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:315:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 4.19.118-v7l+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/.node-red/node_modules/utf-8-validate
gyp ERR! node -v v12.18.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
and some warnings, but the node works now. Thank you!
hmm don’t think those errors have anything to do with my nodes. At least i haven’t seen them before but i am not nom expert by any stretch of the imagination and im still quite new to the whole nodered node development thing
Install sometimes give errors along the way, but provided at the end it shows that it has installed ok (it will show the node name and the version) then it is nothing to worry about.