user
Display a piece of text and produce spoken output via a speech engine.

As each word is being spoken, highlight the word on the display.

In languages where cursor control and highlighting are not possible, it is permissible to output each word as it is spoken.

Related task
:   * speech synthesis
assistant
**Translation of**: Go

```
# 20200826 Raku programming solution

my \s = "Actions speak louder than words.";
my \prev = $ = "";
my \prevLen = $ = 0;
my \bs = $ = "";

for s.split(' ', :skip-empty) {
   run "/usr/bin/espeak", $_ or die;
   bs = "\b" x prevLen if prevLen > 0;
   printf "%s%s%s ", bs, prev, $_.uc;
   prev = "$_ ";
   prevLen = $_.chars + 1
}

printf "%s%s\n", "\b" x prevLen, prev;

```