Integrates Espeak speech synthesizer with Asterisk for voice conversion in software applications.
Installing the Asterisk-eSpeak module is as simple as a pie. In the app-eSpeak folder, just type the command '$ make $ make install' to build and install the module. Furthermore, to install the sample configuration file, issue the following command after the 'make install' command: '$ make samples'. This will enable you to test the module freely.
Using the module is not complex either. The Espeak() function, when invoked, sends a text string to the eSpeak TTS engine, receives the resulting waveform, and plays it to the user immediately. You can also include any interrupt keys to terminate and return control to the system immediately. To make use of the Asterisk dial plan application, you can utilize the code snippet provided below.
```
;eSpeak Demo
exten => 1234,1,Answer() ;;Play message using the default language as set in espeak.conf
exten => 1234,n,Espeak("This is a simple espeak test in English.",any,) ;;Play the message in Spanish
exten => 1234,n,Espeak("Esta es una simple prueba espeak en español.",any,es) ;;Play the message in Greek
exten => 1234,n,Espeak("ΑυτÏŒ είναι Îνα απλÏŒ τÎστ του espeak στα ελληνικά.",any,el) ;;Read a text file from disk (relative to the channel language) ;;and play it with espeak using the asterisk channel language.
exten => 1234,n,ReadFile(MYTEXT=/path/${LANGUAGE}/myfile,200)
exten => 1234,n,Espeak("${MYTEXY}",any,${LANGUAGE}) exten => 1234,n,Hangup()
```
As shown in the above code, you can test the Espeak() function by making the system play messages in various languages, including English, Spanish, and even Greek! You can also play text files from disk and make the system read them out loud, all while utilizing the Asterisk channel language.
Version 1.6-0.1 Beta: N/A