Lettore sintetico di annunci programmabile!

hehehe, vediamo come usare un sitentizzatore vocale su linux:

[preliminare per raspberry 1]

https://raspberrypi.stackexchange.com/questions/44/why-is-my-audio-sound-output-not-working

sudo apt-get install alsa-utils
 sudo modprobe snd_bcm2835


add snd_bcm2835 to /etc/modules

TEST :

wget http://rpf.io/lamp3 -O example.mp3 --no-check-certificate

aplay example.mp3

__ VERSIONE 1 (non va su raspberry1)

Installarlo:

apt install festival

Aggiungere voci

apt install festvox-italp16kapt

Decidere quale voce ha priorità, nel file: /usr/share/festival/voices.scm

POi lo script è:

#!/bin/bash

#This script counts.
#if crash remember there are 86400 sec in a day.
#if crash- if more than a billion

# create a variable to represent the filename
COUNTER_FILE=”counter.txt”

while [ true ]; do
count=`cat $COUNTER_FILE`
echo $count | festival –tts –language italiian
((count++))
echo $count > $COUNTER_FILE

done

Fonti:

https://learn.adafruit.com/speech-synthesis-on-the-raspberry-pi/installing-the-festival-speech-package

https://packages.debian.org/jessie/festival-voice

http://www2.pd.istc.cnr.it/FESTIVAL/home/download-FESTIVAL.htm

http://www.solomonson.com/content/ubuntu-linux-text-speech

https://raspberrypi.stackexchange.com/questions/10384/speech-processing-on-the-raspberry-pi

___________________________________________________________________

VERSIONE 2 :  Flite

non male, in realtà però non mi mette la lingua italiana…

http://www.festvox.org/flite/doc/flite_7.html

#!/bin/bash
#This script counts.
#if crash remember there are 86400 sec in a day.
#if crash- if more than a 100 billion

# create a variable to represent the filename in case of crash start again from the same number
COUNTER_FILE=”counter.txt”

while [ true ]; do
count=`cat $COUNTER_FILE`
flite -t $count
((count++))
echo $count > $COUNTER_FILE
sleep 10s

done

___________________________________________________________________

-VERSIONE 3: svox

[non-free]

https://packages.debian.org/source/jessie/svox

___________________________________________________________________

-VERSIONE 4:

[non-free]

https://packages.debian.org/jessie/sound/libttspico-utils

pico2wave, se non va devi installare il pacchetto libttspico0.
___________________________________________________________________
-Versione5:
5: https://packages.debian.org/stretch/espeak

________________________________________________________________

Ed infine bisogna farlo partire al boot:

Five Ways To Run a Program On Your Raspberry Pi At Startup