Имя - это имя, которое отображается при наведении на файл в панели запуска. Команда - это команда, которую вы запускаете в терминале для запуска программного обеспечения.
Из man spd-say:
NAME spd-say - send text-to-speech output request to speech-dispatcher SYNOPSIS spd-say [options] "some text" DESCRIPTION spd-say sends text-to-speech output request to speech-dispatcher process which handles it and ideally outputs the result to the audio system. OPTIONS -r, --rate Set the rate of the speech (between -100 and +100, default: 0) -p, --pitch Set the pitch of the speech (between -100 and +100, default: 0) -i, --volume Set the volume (intensity) of the speech (between -100 and +100, default: 0)Следовательно, вы можете получить текст в речь следующей командой:
spd-say "<type text>"
Пример:
spd-say "Welcome to Ubuntu Linux"
Вы также можете , поэтому вы можете получить текст в речь, следуя следующей команде: см. man-страницу.
Для festival (голос кажется мне более естественным):
sudo apt-get install festival
echo "hello" | festival --tts
Конфигурация скорости и скорости: [ ! d3]
create ~/.festivalrc:
(Parameter.set 'Audio_Command "play -b 16 -c 1 -e signed-integer -r $SR -t raw $FILE tempo 1.5 pitch -100") (Parameter.set 'Audio_Method 'Audio_Command)
См. также http://www.solomonson.com/content/ubuntu-linux-text-speech [ ! d6]
Обновление: проверено на другом компьютере ubuntu. Если бы установить английский речевой пакет для работы с фестивалем должным образом:
sudo apt-get install festvox-kallpc16k
Также play - команда cli, которая поставляется с пакетом sox:
sudo apt-get install sox
Ноябрь 2017 Ubuntu 16.04
Для моего проекта, cron заданий, которые могут говорить, espeak является самым простым.
sudo apt-get update
sudo apt-get install espeak
Для первой части, чтобы система говорила, что время требует одной записи cron
0 * * * * /home/username/scripts/saytime
saytime:
#!/bin/bash
echo "\`$(date +%H)\` Hundred" | espeak
Он может принимать входные данные через stdio, например:
cat textfile | espeak -s 100
Для справки здесь приведены параметры командной строки для eSpeak:
espeak [options] [""] -a Amplitude, 0 to 200, default is 100
-g Word gap. Pause between words, units of 10mS at the default speed
-k Indicate capital letters with: 1=sound, 2=the word "capitals",
higher values indicate a pitch increase (try -k20).
-l Line length. If not zero (which is the default), consider
lines less than this length as end-of-clause
-p Pitch adjustment, 0 to 99, default is 50
-s Speed in words per minute, 80 to 450, default is 175
-v Use voice file of this name from espeak-data/voices
-w Write speech to this WAV file, rather than speaking it directly
-z [ ! d10] No final sentence pause at the end of the text
espeak [опции] [""]
List the available voices for the specified language.
If <language> is omitted, then list all voices.
Python Google Speech:
pip install google_speech
google_speech "Test the hello world"
Python Google Speach:
apt-get install svox-pico
pico2wave --wave=test.wav "Test the hello world"
play test.wav
Svox Nanotts:
git clone https://github.com/gmn/nanotts.git
cd nanotts
make
./nanotts -v en-US "Test the hello world"
] Svox Nanotts:
Сравнение речевых синтезаторов