Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nanotts call #1

Open
zen2 opened this issue Aug 29, 2020 · 0 comments
Open

nanotts call #1

zen2 opened this issue Aug 29, 2020 · 0 comments

Comments

@zen2
Copy link

zen2 commented Aug 29, 2020

I have struggle today to use nanotts from exec node in node-red by calling a script with message as parameter.
Looking for a solution I found your issue on nanotts github and your notice on this repository.
I got same error than you: "**error: multiple inputs" while using either option -i or -f with a temporary file with text.
I finally find a solution by not using both options:

#!/bin/bash

DIR="/home/homeassistant/tts/nanotts"
CMD="nanotts -l $DIR/lang -v fr-FR --volume 0.1 -p"
MSG="$@"

echo "$MSG" | "$DIR"/$CMD 2>/dev/null

I call this script wirh exec node in node-red with the message between double quotes.
I hope that can help you for your node-red palette.
I will be using it once you solve this point. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant