TTS FreePBX 13

Text-to-speech Asterisk

5

TTS (text-to-speech) . , . , . , TTS FreePBX 13 Asterisk .


TTS

FreePBX TTS, filte. , . . , Applications -> Text to Speech

  TTS  FreePBX 13
  • Name - TTS
  • Text -
  • Choose an Engine - . , filte
  • Destination - , Text

-. . , . , TTS FreePBX? , festival


FreePBX Festival

FreePBX Distro CentOS 6. .

cd /usr/src
wget http://www.cstr.ed.ac.uk/downloads/festival/2.1/speech_tools-2.1-release.tar.gz
wget http://www.cstr.ed.ac.uk/downloads/festival/2.1/festival-2.1-release.tar.gz

tar zxvf festival-2.1-release.tar.gz
tar zxvf speech_tools-2.1-release.tar.gz
cd speech_tools
./configure
make
make install
cd ..
cd festival
./configure
 make
make install
ncurses-devel. yum install ncurses-devel

PATH, festival/bin/

export PATH=$PATH:/usr/src/festival/bin/

. , festival/lib/ /voices /russian:

mkdir /usr/src/festival/lib/voices/
mkdir /usr/src/festival/lib/voices/russian/

:

wget http://sourceforge.net/projects/festlang.berlios/files/msu_ru_nsh_clunits-0.5.tar.bz2

, :

tar xjf msu_ru_nsh_clunits-0.5.tar.bz2 -C ./festival/lib/voices/russian

vim /usr/src/festival/lib/languages.scm

vim /usr/src/festival/lib/languages.scm

:

(define (language_russian)
 "(language_russian)
  Set up language parameters for Russian."
  (set! male1 voice_msu_ru_nsh_clunits)
  (male1)
  (Parameter.set 'Language 'russian)
) 

:

(language_british_english))
  ((equal? language 'british_english)

, :

(language_russian))
    ((equal? language 'russian)

/usr/src/festival/lib/siteinit.scm :

(set! voice_default 'voice_msu_ru_nsh_clunits)

. , :

mkdir /var/lib/asterisk/festivalcache/ && chown asterisk:asterisk /var/lib/asterisk/festivalcache/

/etc/asterisk/festival.conf :

[main]
host=localhost
port=1314
usecache=yes
cachedir=/var/lib/asterisk/festivalcache/  \\  
festivalcommand=(tts_textasterisk "%s" 'file)(quit)\n

festival

festival --server

, :

 [pbx@localhost ~]#festival --server
server    Fri Aug 12 13:00:32 2016 : Festival server started on port 1314

. /etc/asterisk/extensions_custom.conf :

[festival]
exten => s,1,Answer
exten => s,n,Festival('. . .')
exten => s,n,Hangup

. , FreePBX Custom Destinations. Admin -> Custom Destinations . Add Destination

Custom Destionations  FreePBX 13

:

  • Target - festival,s,1, -. - [_],[],[]
  • Description -
  • Notes - . , , .
  • Return - Return ( ), Destination TTS.

Submit Apply Config.

, FreePBX. , IVR 5 , :

  Text to Speech FreePBX 13

IVR 5 . CLI Festival:

client(1) Fri Aug 12 13:00:54 2016 : accepted from localhost
client(1) Fri Aug 12 13:01:04 2016 : disconnected
client(2) Fri Aug 12 13:01:20 2016 : accepted from localhost
client(2) Fri Aug 12 13:01:20 2016 : disconnected

Google TTS FreePBX

Google TTS . Settings -> Text To Speech Engines /var/lib/asterisk/agi-bin/propolys-tts.agi. , , Google , .

TTS Festival .


?


: