Added the & char so the script doesn't wait to stop speaking before other script actions run. Script was holding up the sound script.
This commit is contained in:
parent
2b7d0c83c3
commit
617bc2a002
@ -45,7 +45,7 @@ sub speak_message {
|
|||||||
my $SpeechRate = Irssi::settings_get_int("speech_rate");
|
my $SpeechRate = Irssi::settings_get_int("speech_rate");
|
||||||
my $SpeechVoice = Irssi::settings_get_str("speech_voice");
|
my $SpeechVoice = Irssi::settings_get_str("speech_voice");
|
||||||
# Speak The Message
|
# Speak The Message
|
||||||
system("espeak-ng -v $SpeechVoice -s $SpeechRate \"$summary $body\"");
|
system("espeak-ng -v $SpeechVoice -s $SpeechRate \"$summary $body\"&");
|
||||||
}
|
}
|
||||||
|
|
||||||
# Handle incoming public messages:
|
# Handle incoming public messages:
|
||||||
|
Loading…
Reference in New Issue
Block a user