I try
/mnt/sda1/mp3.py "hello world" and is ok
try
/mnt/sda1/mp3.py "hello italy" or something else
and goes wrong, actually http://tts-api.com/tts.mp3?q=hello%20italy
doesn't respond.
Were is the problem?
Thanks
SoX is a command line utility that can convert various formats of computer audio files in to other formats. It can also apply various effects to these sound files during the conversion. As an added bonus, SoX can play and record audio files on several unix-style platforms.
First of all thank you. I spent a few hours on this and eventually got it working. The problem is that the file seems to be written to the root not the sd. (running the script from SSH kept on coming back with "file not found" until I found them in the root. Had to change the path to the file at the end of the script to make it work)
Due to arduino's warning that "You're discouraged from using the Yún's built-in non-volatile memory, because it has a limited number of writes," I thought I should make sure the file is saved to the SD card.
My python skills are non-existent. How do I make the file go to the sd? i tried adding the full path in "filename" but it didn't like that. Any thoughts?
Just tried replacing filename with the path again. Worked this time. Sorry for wasting your time. I don't know what changed. I strongly dislike python.
The thing that's still puzzling to me is why the mismatched path originally worked for you?