August 26th, 2013, 02:28 PM
Running say command from script
i have a script that will call the say command on my Mac and read a text file.
In version 2.6 i used this code
on version3.3.2 commands has been removed. So i tried using subprocess but haven't had any luck. Here is my code.
commands.getstatusoutput('/usr/bin/say -f info.txt')
subprocess.check_output("/usr/bin/say -f info.txt")
August 26th, 2013, 06:31 PM
Try it like this
Otherwise you'd need to set shell=True, as in
I'll need to install my speech server.
[/code] are essential for python code and Makefiles!
August 27th, 2013, 07:26 AM
That worked just like i needed. Thanks