- # We can't have two speakers going at the same time so if we have an error
- # backoff a little and try again.
- my $attempts = 0;
- my $maxretries = 3;
- my $backoff = 2;
-
- my ($status, @output);
-
- while ($attempts++ < $maxretries) {
- ($status, @output) = Execute "/usr/local/bin/gt \"$msg\"";
-
- if ($status) {
- my $errmsg = "Unable to speak (Status: $status) - " . join "\n", @output;