2015-03-26, 12:28
(2015-03-25, 16:51)Kvantos Wrote: How can I send phrases to XBMC TTS by JSON RPC API?
You would use JSONRPC.NotifyAll with the following parameters:
Code:
sender = 'service.xbmc.tts'
message = 'SAY'
data = {"text":"<text>","interrupt":True}
Where <text> is the the text you want spoken first encoded utf-8 and then converted to hex.
If you need a full example of the JSON RPC call, just ask and I'll put that together. I should also mention that I haven't actually tested this via JSON RPC, though I believe it should work.