We have moved at community.getvera.com

Author Topic: Plugin 2.1 Beta - Text To Speech Support  (Read 7989 times)

Offline JoeyD

  • Sr. Member
  • ****
  • Posts: 410
  • Karma: +36/-5
Re: Plugin 2.1 Beta - Text To Speech Support
« Reply #15 on: February 22, 2015, 09:45:28 am »
Hi jtmoore,

There is no "speed" setting for the plugin.  I researching konradwalsh's problem, I though I ran across others having similar issues with text to speech and "squeezesalve" players.  I don't know if this pertains to you or not.

Basically, the TTS sound file is mono, 22KHz file.  If your squeezebox player does not support that sample rate then I believe you end up with the symptoms you describe.

bartandeweg

  • Guest
Re: Plugin 2.1 Beta - Text To Speech Support
« Reply #16 on: February 23, 2015, 04:56:57 am »
Played with this this weekend. The plugin works fine. But after a few times it won't 'say' anything anymore. Did not got the time to explore why. Try to play with this a bit more in the next days and will post my findings.

One question. If i wan't more devices 'say' the same at the same time (for instance, when smoke is detected somewhere). Can i just add more luup.call_actions in the LUA?

Code: [Select]
local lul_arguments = {}
lul_arguments["Text"] = "The quick brown fox jumped over the lazy dog.  Have a nice day!"
lul_arguments["Line1"] = "Vera Squeezbox Plugin"
lul_arguments["Line2"] = "Text to speech test"
lul_arguments["Volume"] = 70
luup.call_action("urn:micasaverde-com:serviceId:SqueezeBoxPlayer1","Say",lul_arguments,10)
luup.call_action("urn:micasaverde-com:serviceId:SqueezeBoxPlayer1","Say",lul_arguments,11)
luup.call_action("urn:micasaverde-com:serviceId:SqueezeBoxPlayer1","Say",lul_arguments,13)

Offline JoeyD

  • Sr. Member
  • ****
  • Posts: 410
  • Karma: +36/-5
Re: Plugin 2.1 Beta - Text To Speech Support
« Reply #17 on: February 24, 2015, 06:05:18 pm »
I believe that might work. However, at best they won't be in sync  .   I explained in an earlier post that dynamic syncing is not yet supported.

Offline cw-kid

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1612
  • Karma: +18/-2
Re: Plugin 2.1 Beta - Text To Speech Support
« Reply #18 on: September 16, 2015, 12:10:48 pm »
Hi

Is this 2.1 version of the plug-in still working OK for Google TTS ? Google changed some things recently which broke the TTS in the Sonos and DLNA plug-ins and the dev had to update them to fix.

Also was the issue with the volume getting set at zero resolved?

I am currently using the 2.0 version of the Squeezebox plug-in.

Thanks

Offline cw-kid

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1612
  • Karma: +18/-2
Re: Plugin 2.1 Beta - Text To Speech Support
« Reply #19 on: October 10, 2015, 03:35:14 pm »
Just setting up a Vera Edge UI7. I installed the updated Squeezebox 2.1 files to try the TTS Say feature.

I am running a SqueezeLite instance on my Windows file server. And in LMS it plays the http://VERA-IP/Say.9.mp3 file, but I also hear no sound.

Also there seems to be an issue in UI7 using the Squeezebox device SetFileToPlay command, this does not work either and I hear nothing.

On my old VeraLite UI5 I can create a scene and use the Squeezebox SetFileToPlay command and enter a URL like:

http://translate.google.co.uk/translate_tts?tl=en_gb&q=beer+assistant&client=t

When I run the scene the SqueezeLite instance says "Beer Assistant"

However when in UI7 if I create a similar scene using the same URL as above, it does not play and I hear nothing.

Looking at the LMS the difference seems to be that UI7 sends the URL differently and the & characters get changed to &

http://translate.google.co.uk/translate_tts?tl=en_gb&q=beer+assistant&client=t

So in UI7 nither the new SAY TTS feature or the old SetFileToPlay method are working.  :-[
« Last Edit: October 10, 2015, 03:43:08 pm by cw-kid »

Offline cw-kid

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1612
  • Karma: +18/-2
Re: Plugin 2.1 Beta - Text To Speech Support
« Reply #20 on: October 10, 2015, 04:02:09 pm »
From the Vera log for the SAY TTS.

Code: [Select]
08 10/10/15 21:00:00.325 JobHandler_LuaUPnP::HandleActionRequest device: 9 service: urn:micasaverde-com:serviceId:SqueezeBoxPlayer1 action: Say <0x7478f520>
08 10/10/15 21:00:00.326 JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=9 <0x7478f520>
08 10/10/15 21:00:00.326 JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:SqueezeBoxPlayer1 <0x7478f520>
08 10/10/15 21:00:00.326 JobHandler_LuaUPnP::HandleActionRequest argument action=Say <0x7478f520>
08 10/10/15 21:00:00.327 JobHandler_LuaUPnP::HandleActionRequest argument Text=This is a test of the squeezebox say system.  It should be about 7 seconds long. <0x7478f520>
50 10/10/15 21:00:00.332 luup_log:8: SQUEEZE: Getting OS Command to retrieve MP3 file... <0x7754d320>
50 10/10/15 21:00:00.332 luup_log:8: SQUEEZE: file = /www/Say.9.mp3 <0x7754d320>
50 10/10/15 21:00:00.332 luup_log:8: SQUEEZE: GoogleServerURL = http://translate.google.com <0x7754d320>
50 10/10/15 21:00:00.333 luup_log:8: SQUEEZE: language = en <0x7754d320>
50 10/10/15 21:00:00.855 luup_log:8: SQUEEZE: OS Command: rm /www/Say.9.mp3 ; wget --output-document /www/Say.9.mp3 \
--quiet \
--header "Accept-Charset: utf-8;q=0.7,*;q=0.3" \
--header "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" \
--user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11" \
"http://translate.google.com/translate_tts?tl=en&q=This%20is%20a%20test%20of%20the%20squeezebox%20say%20system%2e%20%20It%20should%20be%20about%207%20seconds%20long%2e" <0x7754d320>
50 10/10/15 21:00:00.856 luup_log:8: SQUEEZE: LOCAL FILE STORED AS: http://192.168.0.117:80/Say.9.mp3    DURATION = 1 seconds <0x7754d320>
04 10/10/15 21:00:00.928 <0x7754d320>
06 10/10/15 21:00:01.106 Device_Variable::m_szValue_set device: 9 service: urn:upnp-org:serviceId:RenderingControl variable: Mute was: 0 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0xbf0698/NONE duplicate:0 <0x74de4520>
06 10/10/15 21:00:01.107 Device_Variable::m_szValue_set device: 9 service: urn:upnp-org:serviceId:RenderingControl variable: Volume was: 64 now: 0 #hooks: 0 upnp: 0 skip: 0 v:0xbf0068/NONE duplicate:0 <0x74de4520>
06 10/10/15 21:00:01.277 Device_Variable::m_szValue_set device: 9 service: urn:upnp-org:serviceId:AVTransport variable: CurrentTrackURI was: file:///D:/ServerFolders/Music/Ed%20Sheeran/+/01.%20The%20A%20Team.mp3 now: http://192.168.0.117/Say.9.mp3 #hooks: 0 upnp: 0 skip: 0 v:0xc1b150/NONE duplicate:0