Skip to content

simple PHP interface for espeak on raspbian/debian

License

Notifications You must be signed in to change notification settings

bryanlogan/ESpeakWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ESpeakWeb

simple PHP interface for espeak on raspbian/debian

Install

Install the following packages

$ sudo apt-get install apache2 libapache2-mod-php5 php5-common php5-cgi espeak sox

Place the PHP files in a directory accessible to apache. For example: /var/www/tts

Grant the apache2 service account access to play audio

$ sudo usermod -G audio www-data

Access the TTS site from your web browser. For example if your device's IP is 192.168.1.10 and you installed the php files in /var/www/tts you would go to http://192.168.1.10/tts

Use the form to test the TTS.

Programmatic access

send an HTTP POST to the tts.php file with the following form values:

field type description
tones bit send 1 to play tones before speech. 0 to skip tones
text string the text to speak

Below is an example using curl:

curl --data "tones=1&text=test test" 192.168.1.10/tts/tts.php 

About

simple PHP interface for espeak on raspbian/debian

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages