Hopefully made this thing safe...
This commit is contained in:
parent
3e703f526f
commit
e695e0a257
12
autospeak.pl
12
autospeak.pl
@ -46,7 +46,17 @@ sub speak_message {
|
|||||||
my $SpeechVoice = Irssi::settings_get_str("speech_voice");
|
my $SpeechVoice = Irssi::settings_get_str("speech_voice");
|
||||||
my $SpeechModule = Irssi::settings_get_str("speech_module");
|
my $SpeechModule = Irssi::settings_get_str("speech_module");
|
||||||
# Speak The Message
|
# Speak The Message
|
||||||
system("spd-say -P notification -y $SpeechVoice -r $SpeechRate -o $SpeechModule -- \"$summary $body\"&");
|
my @spd = ("spd-say",
|
||||||
|
"-P",
|
||||||
|
"notification",
|
||||||
|
"-o",
|
||||||
|
$SpeechModule,
|
||||||
|
"-y",
|
||||||
|
$SpeechVoice,
|
||||||
|
"-r",
|
||||||
|
$SpeechRate,
|
||||||
|
"$summary $body");
|
||||||
|
system(@spd);
|
||||||
}
|
}
|
||||||
|
|
||||||
# Handle incoming public messages:
|
# Handle incoming public messages:
|
||||||
|
Loading…
Reference in New Issue
Block a user