Menu
  • HOME
  • TAGS

How to use python Popen with a espeak and aplay

python,asynchronous,popen,espeak

Your example is the equivalent of typing this in the shell: $ espeak '-ves -s100 \'HEY\' --stdout' $ aplay '-D \'sysdefault\'' Which is obviously wrong. Each list entry is one argument (argv entry) passed to the executable, no escaping/quoting needed on your side. So you want to use: ["aplay", "-D",...

sSpeak to mp3 in php on both windows and linux (online text-to-speech)

php,linux,windows,text-to-speech,espeak

First we need to setup path to espeak and lame. Make sure you have installed both. In my case it looks like this: I tought, someone might find this useful. I'm using this code to generate my command in local windows wamp server and online linux server: // APPLICATION PATHS...