98_Text2Speech.pm: fixing warnings in logfile during each call

Reference: https://forum.fhem.de/index.php/topic,55860.0.html


git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@12241 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
tobiasfaust 2016-10-02 17:41:28 +00:00
parent e81f2126f6
commit 74b62b5cd8

View File

@ -802,6 +802,8 @@ sub Text2Speech_DoIt($) {
} }
if(-e $Mp3WrapFile) { if(-e $Mp3WrapFile) {
$cmd = Text2Speech_BuildMplayerCmdString($hash, $Mp3WrapFile); $cmd = Text2Speech_BuildMplayerCmdString($hash, $Mp3WrapFile);
$cmd .= " >/dev/null" if($verbose < 5);
Log3 $hash->{NAME}, 4, "Text2Speech:" .$cmd; Log3 $hash->{NAME}, 4, "Text2Speech:" .$cmd;
system($cmd); system($cmd);
#Text2Speech_WriteStats($hash, 1, $Mp3WrapFile, join(" ", @Mp3WrapText)); #Text2Speech_WriteStats($hash, 1, $Mp3WrapFile, join(" ", @Mp3WrapText));
@ -841,6 +843,8 @@ sub Text2Speech_DoIt($) {
if(-e $file) { # Datei existiert jetzt if(-e $file) { # Datei existiert jetzt
$cmd = Text2Speech_BuildMplayerCmdString($hash, $file); $cmd = Text2Speech_BuildMplayerCmdString($hash, $file);
$cmd .= " >/dev/null" if($verbose < 5);
Log3 $hash->{NAME}, 4, "Text2Speech:" .$cmd; Log3 $hash->{NAME}, 4, "Text2Speech:" .$cmd;
system($cmd); system($cmd);
} }
@ -931,6 +935,8 @@ sub Text2Speech_WriteStats($$$$){
=pod =pod
=item helper =item helper
=item summary speaks given text via loudspeaker
=item summary_DE wandelt uebergebenen Text um fuer Ausgabe auf Lautsprecher
=begin html =begin html
<a name="Text2Speech"></a> <a name="Text2Speech"></a>