This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

text to speech?
#1
Has anyone a working solution for text to speech (and send it to sonos)?

Before i used: translate.google.com, but now its banned by google.
Code:
function sonosSay(ip, lang, speak)
  local url = require("socket.url")
  local speak = url.escape(speak)
  uri = string.format("x-rincon-mp3radio://translate.google.com/translate_tts?tl=%s&q=%s", lang, speak)
  upnpavcmd(ip, 1400, 'SetAVTransportURI', '<CurrentURI>'..uri..'</CurrentURI><CurrentURIMetaData/>')
  upnpavcmd(ip, 1400, 'Play', '<Speed>1</Speed>')
end

I like to use the dutch language.
Reply


Messages In This Thread
text to speech? - by gjniewenhuijse - 07.12.2016, 19:20
RE: text to speech? - by gjniewenhuijse - 09.01.2017, 14:41
RE: text to speech? - by bmodeco - 21.03.2017, 10:12
RE: text to speech? - by gjniewenhuijse - 21.03.2017, 13:05
RE: text to speech? - by bmodeco - 26.04.2017, 18:13

Forum Jump: