bencevans / node-sonos

🔈 Sonos Media Player Interface/Client
https://www.npmjs.com/package/sonos
MIT License
703 stars 147 forks source link

TTS Example not working #15

Closed svrooij closed 10 years ago

svrooij commented 10 years ago

It seams like google blocked sonos devices. If I try to run this example then it gives back an 500 error

bencevans commented 10 years ago

Aah, yeah. Looks like Google have either changed URL or removed their TTS service :crying_cat_face:

svrooij commented 10 years ago

It seams like there is a problem with sonos. They changed something, the url can't have a %20 or a +

so i made a php script that just redirects to some other TTS I found (think it could be google as well) VoiceRSS (http://www.voicerss.org/api/documentation.aspx)

use the url http://i872953.iris.fhict.nl/speech/en-us_text.mp3 and replace all the spaces in the text with _ like http://i872953.iris.fhict.nl/speech/en-us_Ben_evens_made_a_nice_node_library_for_sonos.mp3

bencevans commented 10 years ago

Sweet! Looking at the code it wasn't properly converted from coffeescript but still the Google service seems down unfortunately. I'm more than happy to use a different provider such as your API. If you could send in a pull request it would be greatly appreciated.

bencevans commented 10 years ago

Kindly fixed by @svrooij in pull-request #17