jishi/node-sonos-http-api — pull request #17 by Goran58 (2014-06-26 17:34:47+00:00)
Title: Support for text-to-speech and save/restore state

Hi Jishi,
I have added some basic support for tts (Google translate) and save/restore state in your great module. With these commands you can:

Save state

Play tts message

Restore state

I have only tested with one Sonos speaker and with streaming radio. I guess it need some more work to be more generic. But I hope this can be a good start.

Tts - say:
http://localhost:5005/{room name}/say/{text_message}/{language}
where:
text message is a text string. Spaces must be replaced by %20. Example: Hello%20World
language is the preferred spoken language. Example: en = English, sv = Swedish. Default if not given is English.

Save state - saveall/restoreall
http://localhost:5005/saveall
http://localhost:5005/restoreall