1

I have Apache Web server installed on my Raspberry Pi. I was wondering If I could use javascript,html, and php to create a webpage where the user types some text into a text field and then that text is sent to the php file. Then I want the php file to execute the espeak command to make the Raspberry speak the text that was entered. Is there any way to do this? I am new to php and don't really understand how this works yet. Help would be appreciated.

  • A CGI script could be a better approach if you want it to run commands/scripts on the Pi (this may of some help,various tutorials are available) Another alternative could a external API (e.g. this), and have a HTML + javascript page linking to it – Wilf Jul 20 '14 at 10:52
  • N.B. epseak can be used with Python, as shown here – Wilf Jul 20 '14 at 11:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.