Roland0 wrote: > You seem to have tested this command: > > Code: -------------------- > > /home/tc/gTTS.sh -o /tmp/annTTS.wav -t "Test" -------------------- > > > > and not the one actually used according to the log you posted: > > Code: -------------------- > > /home/tc/gTTS.sh -o /tmp/annTTS.wav --tld at --lang de -t "TextTextText" -------------------- > > > > Verify that your script handles those extra parms, or remove them.
Hi Roland, you're right - I've removed the extra parameters (included in the gTTS.sh script): Code: -------------------- #!/bin/bash # MG 2021-12-12 # based on https://forums.slimdevices.com/showthread.php?109096-Announce-LMS-Announce-play-announcements-notifications/page10 while getopts "o:t:" opt; do case $opt in o) DESTFILE="$OPTARG" ;; t) TEXT="$OPTARG" ;; esac done #ssh user@otherraspi "/usr/bin/mimic -o /dev/stdout -voice slt -t \"$TEXT\"" > "${DESTFILE}" ssh pi@192.168.1.120 "python3 /home/pi/.local/bin/gtts-cli -o /dev/stdout \"$TEXT\" --tld at --lang de" > "${DESTFILE}" -------------------- Code: -------------------- tc@pi-LMS:~$ ls -l total 12 -rwxr-xr-x 1 root staff 579 Dec 25 17:42 gTTS.sh -rwxr-xr-x 1 tc staff 2135 Dec 23 2020 pcp-powerbutton.sh -rwxr-xr-x 1 tc staff 713 Dec 23 2020 powerscript.sh tc@pi-LMS:~$ sh /home/tc/gTTS.sh -o /tmp/annTTS.wav -t "Test" -------------------- Code: -------------------- ls -l /tmp/annTTS.wav -rw-r--r-- 1 tc staff 4320 Dec 25 17:47 /tmp/annTTS.wav tc@pi-LMS:~$ -------------------- Code: -------------------- http://192.168.1.130:9000/plugins/LMSannounce/js.html?cmd=announceTTS&ttsprofile=gtts-de&text=TextTextText&playerid=00:04:20:22:fa:31 -------------------- Code: -------------------- {"error":true,"msg":"error 32512 while executing TTS"} -------------------- Code: -------------------- [21-12-25 18:00:03.1122] main::init (390) Starting Logitech Media Server (v8.2.0, 1627922070, Tue Aug 3 11:43:18 CEST 2021) perl 5.032000 - arm-linux-gnueabihf-thread-multi-64int [21-12-25 18:00:06.6594] Plugins::LMSannounce::Plugin::initPlugin (116) LMSannounce init start [21-12-25 18:00:06.6608] Plugins::LMSannounce::Plugin::initPlugin (137) LMSannounce: using /usr/local/etc/la-ttsprofiles.json [21-12-25 18:00:06.6620] Plugins::LMSannounce::Plugin::initPlugin (144) LMSannounce: parsed la-ttsprofiles.json [21-12-25 18:00:06.6627] Plugins::LMSannounce::Plugin::initPlugin (150) LMSannounce initialized (v0.1.0) [21-12-25 18:00:34.3549] Plugins::LMSannounce::Plugin::handleJSONP (201) handleJSONP cmd=announceTTS pid=00:04:20:22:fa:31 forcewake= [21-12-25 18:00:34.3559] Plugins::LMSannounce::Plugin::handleJSONP (210) handleJSONP targetClient=00:04:20:22:fa:31 [21-12-25 18:00:34.3566] Plugins::LMSannounce::Plugin::savePlaylistState (374) savePlaylistState called [21-12-25 18:00:34.3611] Plugins::LMSannounce::Plugin::announceTTS (323) announceTTS called: ttspreset=gtts-de text=TextTextText [21-12-25 18:00:34.3621] Plugins::LMSannounce::Plugin::announceTTS (325) announceTTS: preset={'output' => '-o ','options' => '','text' => '-t','cmd' => '/home/tc/gTTS.sh'} [21-12-25 18:00:34.3626] Plugins::LMSannounce::Plugin::announceTTS (330) announceTTS: command: /home/tc/gTTS.sh -o /tmp/annTTS.wav -t "TextTextText" -------------------- one thing: in the log I saw the following lines: Code: -------------------- [21-12-25 18:00:34.3621] Plugins::LMSannounce::Plugin::announceTTS (325) announceTTS: preset={'output' => '-o ','options' => '','text' => '-t','cmd' => '/home/tc/gTTS.sh'} [21-12-25 18:00:34.3626] Plugins::LMSannounce::Plugin::announceTTS (330) announceTTS: command: /home/tc/gTTS.sh -o /tmp/annTTS.wav -t "TextTextText" -------------------- -------------------- isn't there one extra space after -o ? Code: -------------------- -o /tmp/annTTS.wav -------------------- ------------------------------------------------------------------------ martingr's Profile: http://forums.slimdevices.com/member.php?userid=64961 View this thread: http://forums.slimdevices.com/showthread.php?t=109096 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins