mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
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@12241 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
3987448af3
commit
5fba1e8cdc
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user