diff --git a/autospeak.pl b/autospeak.pl index 8e3ea55..96d4170 100644 --- a/autospeak.pl +++ b/autospeak.pl @@ -46,7 +46,17 @@ sub speak_message { my $SpeechVoice = Irssi::settings_get_str("speech_voice"); my $SpeechModule = Irssi::settings_get_str("speech_module"); # 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: