3

Past versions of Ubuntu had speech built in.

Searching in Unity I can't find anything with the words "speak" nor "speech" that are relevant for TTS

My plan is to have cron jobs speak so I can leave the monitor shut off.

Beginning with having it do a time announcement each hour. It is OK if it is not perfectly precise to the second.

So how can I make 16.04 LTS speak?

SDsolar
  • 3,169

2 Answers2

3

For my project, cron jobs that can talk, espeak is the simplest.

sudo apt-get update
sudo apt-get install espeak

It can announce the time with /home/me/scripts/saytime:

#!/bin/bash
echo "\`$(date +%H)\` Hundred" | espeak

Then set it into crontab like so:

export EDITOR=gedit
crontab -e

...add this line:

00 * * * * /home/me/scripts/saytime

For more details about espeak itself:

How to text-to-speech output using command-line?

SDsolar
  • 3,169
0

You may need to initialize sound in crontab temporary shell to get sound.

So you can initialize sound in crontab or at least in script that is called from crontab.

pbies
  • 184