Author Topic: New TTS engine: Microsoft Translator  (Read 61885 times)

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #30 on: August 02, 2015, 03:07:32 pm »
ok, this one did not work, test 6, then the next one test 7 worked

no difference between configs, just change to 6 pressed say, then to 7 and pressed say, on 7 worked, on 4,5,6 did not (tried a about a dozen times after the working one and none worked again)

if you need more of log let me know, I saved it off

TEST 6   (did not work)
08   08/02/15 14:01:56.315   JobHandler_LuaUPnP::HandleActionRequest device: 144 service: urn:micasaverde-com:serviceId:Sonos1 action: Say <0x73d2e520>
08   08/02/15 14:01:56.315   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=144 <0x73d2e520>
08   08/02/15 14:01:56.316   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:Sonos1 <0x73d2e520>
08   08/02/15 14:01:56.316   JobHandler_LuaUPnP::HandleActionRequest argument action=Say <0x73d2e520>
08   08/02/15 14:01:56.317   JobHandler_LuaUPnP::HandleActionRequest argument Text=this is a tts test6 <0x73d2e520>
08   08/02/15 14:01:56.317   JobHandler_LuaUPnP::HandleActionRequest argument Language=en <0x73d2e520>
08   08/02/15 14:01:56.318   JobHandler_LuaUPnP::HandleActionRequest argument Engine=MICROSOFT <0x73d2e520>
08   08/02/15 14:01:56.318   JobHandler_LuaUPnP::HandleActionRequest argument Volume=71 <0x73d2e520>
08   08/02/15 14:01:56.318   JobHandler_LuaUPnP::HandleActionRequest argument SameVolumeForAll=false <0x73d2e520>
50   08/02/15 14:01:56.319   luup_log:144: Sonos: debug: Say: this is a tts test6 <0x73d2e520>
50   08/02/15 14:01:56.320   luup_log:144: Sonos: debug: TTS queueAlert for device 144 <0x73d2e520>
50   08/02/15 14:01:56.320   luup_log:144: Sonos: debug: Microsoft TTS: device 144 language en <0x73d2e520>
10   08/02/15 14:01:56.444   GlobalLog: mongoose ctx: 0xdd46a0 s: d:29796 <0x72f2e520>
10   08/02/15 14:01:56.446   mg_callback from IP:127.0.0.1:34847 /port_3480/data_request id=lu_status&DataVersion=541619621&MinimumDelay=1000&Timeout=60&LoadTime=1438541619&rand=0.4476009610740712 start id: 254 <0x72f2e520>
12   08/02/15 14:01:56.446   luvd_get_info_data_request starting /data_request?id=lu_status&DataVersion=541619621&MinimumDelay=1000&Timeout=60&LoadTime=1438541619&rand=0.4476009610740712 pMem 0x1740000/24379392 diff: 11800576 <0x72f2e520>
10   08/02/15 14:01:56.447   JobHandler_LuaUPnP::HandleRequest id lu_status request pMem 0x1740000/24379392 diff: 11800576 <0x72f2e520>
50   08/02/15 14:01:56.504   luup_log:144: Sonos: debug: savePlaybackContexts: device=144 uuids=RINCON_B8E937ECD11A01400 <0x73d2e520>
50   08/02/15 14:01:56.505   luup_log:144: Sonos: debug: controlAnotherZone targetUUID=RINCON_B8E937ECD11A01400 sourceDevice=144 <0x73d2e520>
50   08/02/15 14:01:56.506   luup_log:144: Sonos: debug: controlAnotherZone result=144 <0x73d2e520>
50   08/02/15 14:01:56.506   luup_log:144: Sonos: debug: refreshNow: device=144 <0x73d2e520>
50   08/02/15 14:01:56.507   luup_log:144: Sonos: debug: GetZoneGroupState('http://192.168.1.171:1400/ZoneGroupTopology/Control', 'urn:schemas-upnp-org:service:ZoneGroupTopology:1') Called with parameter count=1 <0x73d2e520>
50   08/02/15 14:01:56.507   luup_log:144: Sonos: debug: UPnP_request: url=[http://192.168.1.171:1400/ZoneGroupTopology/Control], body=[


TEST 7 (worked)
08   08/02/15 14:02:01.024   JobHandler_LuaUPnP::HandleActionRequest device: 144 service: urn:micasaverde-com:serviceId:Sonos1 action: Say <0x73d2e520>
08   08/02/15 14:02:01.024   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=144 <0x73d2e520>
08   08/02/15 14:02:01.025   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:Sonos1 <0x73d2e520>
08   08/02/15 14:02:01.025   JobHandler_LuaUPnP::HandleActionRequest argument action=Say <0x73d2e520>
08   08/02/15 14:02:01.025   JobHandler_LuaUPnP::HandleActionRequest argument Text=this is a tts test7 <0x73d2e520>
08   08/02/15 14:02:01.031   JobHandler_LuaUPnP::HandleActionRequest argument Language=en <0x73d2e520>
08   08/02/15 14:02:01.031   JobHandler_LuaUPnP::HandleActionRequest argument Engine=MICROSOFT <0x73d2e520>
08   08/02/15 14:02:01.032   JobHandler_LuaUPnP::HandleActionRequest argument Volume=71 <0x73d2e520>
08   08/02/15 14:02:01.032   JobHandler_LuaUPnP::HandleActionRequest argument SameVolumeForAll=false <0x73d2e520>
50   08/02/15 14:02:01.033   luup_log:144: Sonos: debug: Say: this is a tts test7 <0x73d2e520>
50   08/02/15 14:02:01.034   luup_log:144: Sonos: debug: TTS queueAlert for device 144 <0x73d2e520>
50   08/02/15 14:02:01.035   luup_log:144: Sonos: debug: Microsoft TTS: device 144 language en <0x73d2e520>
10   08/02/15 14:02:01.242   luvd_get_info_data_request creating file buffer /data_request?id=lu_status&DataVersion=541619649&MinimumDelay=1000&Timeout=60&LoadTime=1438541619&rand=0.25168364846448526 pMem 0x1740000/24379392 diff: 11800576 <0x72d2e520>
10   08/02/15 14:02:01.244   luvd_get_info_data_request done /data_request?id=lu_status&DataVersion=541619649&MinimumDelay=1000&Timeout=60&LoadTime=1438541619&rand=0.25168364846448526 ret 0 size 802 pMem 0x1740000/24379392 diff: 11800576 took 0 info (nil) <0x72d2e520>
10   08/02/15 14:02:01.244   mg_callback /data_request stop id: 258 <0x72d2e520>
10   08/02/15 14:02:01.286   UPnPCallbackEventHandler 4 start PIDLOG2 29796 <0x7432e520>
10   08/02/15 14:02:01.296   UPnPCallbackEventHandler 4 start PIDLOG2 29796 <0x7412e520>
10   08/02/15 14:02:01.302   UPnPCallbackEventHandler 4 start PIDLOG2 29796 <0x7432e520>
10   08/02/15 14:02:01.312   UPnPCallbackEventHandler 4 start PIDLOG2 29796 <0x7412e520>
50   08/02/15 14:02:01.396   luup_log:144: Sonos: debug: savePlaybackContexts: device=144 uuids=RINCON_B8E937ECD11A01400 <0x73d2e520>
50   08/02/15 14:02:01.396   luup_log:144: Sonos: debug: controlAnotherZone targetUUID=RINCON_B8E937ECD11A01400 sourceDevice=144 <0x73d2e520>
50   08/02/15 14:02:01.397   luup_log:144: Sonos: debug: controlAnotherZone result=144 <0x73d2e520>
50   08/02/15 14:02:01.397   luup_log:144: Sonos: debug: refreshNow: device=144 <0x73d2e520>
50   08/02/15 14:02:01.398   luup_log:144: Sonos: debug: GetZoneGroupState('http://192.168.1.171:1400/ZoneGroupTopology/Control', 'urn:schemas-upnp-org:service:ZoneGroupTopology:1') Called with parameter count=1 <0x73d2e520>
50   08/02/15 14:02:01.399   luup_log:144: Sonos: debug: UPnP_request: url=[http://192.168.1.171:1400/ZoneGroupTopology/Control], body=[
« Last Edit: August 02, 2015, 03:44:27 pm by JS007 »

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #31 on: August 02, 2015, 04:01:03 pm »
Thank you @lolodomo! You are a saver.

Even if I had to sign up for a M$ account to get the speaking back.

As I fixed Google at the same time, you will be able to compare the two and choose the best.
For French, I think I prefer Microsoft.
It is also interesting to try various country languages for example for English, voices are different.

is the new code still the link in the top post of this thread? trunk-219?

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #32 on: August 02, 2015, 04:24:06 pm »
Thank you @lolodomo! You are a saver.

Even if I had to sign up for a M$ account to get the speaking back.

As I fixed Google at the same time, you will be able to compare the two and choose the best.
For French, I think I prefer Microsoft.
It is also interesting to try various country languages for example for English, voices are different.

is the new code still the link in the top post of this thread? trunk-219?

No, 221 now.
http://code.mios.com/trac/mios_sonos-wireless-music-systems/browser/trunk
« Last Edit: August 02, 2015, 05:24:38 pm by lolodomo »

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #33 on: August 02, 2015, 04:32:37 pm »
I updated the link everywhere. It may explain your problems.

Offline wezley69

  • Sr. Member
  • ****
  • Posts: 289
  • Karma: +6/-6
Re: New TTS engine: Microsoft Translator
« Reply #34 on: August 02, 2015, 05:13:59 pm »
Tried 221 and now getting this when trying to access TTS page: Error executing function Sonos_showTTS():

Attached is the log.

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #35 on: August 02, 2015, 05:18:39 pm »
No, 221 know.
http://code.mios.com/trac/mios_sonos-wireless-music-systems/browser/trunk

ok, changed to new code 221 and google now works :)

Microsoft I get the "luup_log:144: Sonos: warning: Microsoft TTS: can't get session token <0x7414c520>"

I am using the same client id and secret that was sometimes working on older code 219, so key should be ok

but at least google working on the edge again and with more voice choices


Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #36 on: August 02, 2015, 05:29:12 pm »
Tried 221 and now getting this when trying to access TTS page: Error executing function Sonos_showTTS():

Attached is the log.

Take the JS file from the ZIP. Upload it, reload and clear your browser cache.
« Last Edit: August 03, 2015, 02:07:22 am by lolodomo »

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #37 on: August 02, 2015, 05:33:34 pm »
ok, changed to new code 221 and google now works :)

Microsoft I get the "luup_log:144: Sonos: warning: Microsoft TTS: can't get session token <0x7414c520>"

I am using the same client id and secret that was sometimes working on older code 219, so key should be ok

Weird. Same problem as @tomgru.
What's your client id ? Only letters are accepted if I correctly remember. No space.

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #38 on: August 02, 2015, 06:03:33 pm »
ok, changed to new code 221 and google now works :)

Microsoft I get the "luup_log:144: Sonos: warning: Microsoft TTS: can't get session token <0x7414c520>"

I am using the same client id and secret that was sometimes working on older code 219, so key should be ok

Weird. Same problem as @tomgru.
What's your client id ? Only letters are accepted if I correctly remember. No space.
sent info on PM, feel free to test with them

Offline wezley69

  • Sr. Member
  • ****
  • Posts: 289
  • Karma: +6/-6
Re: New TTS engine: Microsoft Translator
« Reply #39 on: August 02, 2015, 06:07:16 pm »
JD file?  JS file? 

Your 221 link is no longer to a zip file.

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #40 on: August 02, 2015, 06:11:03 pm »
JD file?  JS file? 

Your 221 link is no longer to a zip file.

the zip link is at bottom of that page, took me a bit to find it too


Download in other formats:
    Zip Archive <-----

« Last Edit: August 02, 2015, 06:12:36 pm by JS007 »

Offline wezley69

  • Sr. Member
  • ****
  • Posts: 289
  • Karma: +6/-6
Re: New TTS engine: Microsoft Translator
« Reply #41 on: August 02, 2015, 06:24:08 pm »
@JS007 - Thank you and the JD file he is referring to?

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #42 on: August 02, 2015, 06:34:53 pm »
@JS007 - Thank you and the JD file he is referring to?

thinking was referring to those 4 files, if you try to right click on file names on new link and say "save link as"  they will be corrupt as not real file, so need to grab them from the zip

" I_Sonos1.xml + J_Sonos1.js + L_SonosTTS.lua + S_Sonos1.xml. Take them from the ZIP file."
« Last Edit: August 02, 2015, 06:45:50 pm by JS007 »

Offline wezley69

  • Sr. Member
  • ****
  • Posts: 289
  • Karma: +6/-6
Re: New TTS engine: Microsoft Translator
« Reply #43 on: August 02, 2015, 07:14:12 pm »
@JS007 - Thank you again!  Working now.

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #44 on: August 02, 2015, 08:08:30 pm »
ok, changed to new code 221 and google now works :)

Microsoft I get the "luup_log:144: Sonos: warning: Microsoft TTS: can't get session token <0x7414c520>"

I am using the same client id and secret that was sometimes working on older code 219, so key should be ok

Weird. Same problem as @tomgru.
What's your client id ? Only letters are accepted if I correctly remember. No space.

did a restore from backup, then reinstalled plugin, now get this again rather then the session token

this may just be a ui7 thing, as long as google works on ui7 ( which it is, thanks for fixing that ), I am good unless you want to keep trying to get microsoft to work on ui7 edge

10   08/02/15 19:03:28.463   sbrk JobHandler_LuaUPnP::HandleActionRequest from IP:228.9.17.119 pMem 0x1626000/23224320 diff: 12406784 <0x73a1e520>
08   08/02/15 19:03:28.463   JobHandler_LuaUPnP::HandleActionRequest device: 144 service: urn:micasaverde-com:serviceId:Sonos1 action: Say <0x73a1e520>
08   08/02/15 19:03:28.464   JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=144 <0x73a1e520>
08   08/02/15 19:03:28.464   JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:micasaverde-com:serviceId:Sonos1 <0x73a1e520>
08   08/02/15 19:03:28.465   JobHandler_LuaUPnP::HandleActionRequest argument action=Say <0x73a1e520>
08   08/02/15 19:03:28.465   JobHandler_LuaUPnP::HandleActionRequest argument Text=test tts 882 <0x73a1e520>
08   08/02/15 19:03:28.465   JobHandler_LuaUPnP::HandleActionRequest argument Language=en <0x73a1e520>
08   08/02/15 19:03:28.466   JobHandler_LuaUPnP::HandleActionRequest argument Engine=MICROSOFT <0x73a1e520>
08   08/02/15 19:03:28.466   JobHandler_LuaUPnP::HandleActionRequest argument Volume=82 <0x73a1e520>
08   08/02/15 19:03:28.467   JobHandler_LuaUPnP::HandleActionRequest argument SameVolumeForAll=false <0x73a1e520>
50   08/02/15 19:03:28.468   luup_log:144: Sonos: debug: Say: test tts 882 <0x73a1e520>
50   08/02/15 19:03:28.468   luup_log:144: Sonos: debug: TTS queueAlert for device 144 <0x73a1e520>
50   08/02/15 19:03:28.469   luup_log:144: Sonos: debug: Microsoft TTS: device 144 language en <0x73a1e520>
02   08/02/15 19:03:28.931   luup_log:144: Sonos: warning: Microsoft TTS: failed! <0x73a1e520>
50   08/02/15 19:03:28.932   luup_log:144: Sonos: debug: TTS endPlayback for device 144 <0x73a1e520>
50   08/02/15 19:03:28.953   luup_log:144: Sonos: debug: restorePlaybackContexts: device=144 <0x73a1e520>
35   08/02/15 19:03:28.954   ImplAction::HandleActionRequest SSonos1_Sonos1_Say_run returned 0 <0x73a1e520>
10   08/02/15 19:03:28.955   luvd_get_info_data_request creating file buffer /data_request?id=lu_action&output_format=xml&DeviceNum=144&serviceId=urn:micasaverde-com:serviceId:Sonos1&action=Say&Text=test%20tts%20882&Language=en&Engine=MICROSOFT&Volume=82&GroupZones=&SameVolumeForAll=false pMem 0x1626000/23224320 diff: 12406784 <0x73a1e520>
10   08/02/15 19:03:28.956   luvd_get_info_data_request done /data_request?id=lu_action&output_format=xml&DeviceNum=144&serviceId=urn:micasaverde-com:serviceId:Sonos1&action=Say&Text=test%20tts%20882&Language=en&Engine=MICROSOFT&Volume=82&GroupZones=&SameVolumeForAll=false ret 0 size 125 pMem 0x1626000/23224320 diff: 12406784 took 0 info 0x73a1dd28 <0x73a1e520>
10   08/02/15 19:03:28.957   luvd_open /data_request?id=lu_action&output_format=xml&DeviceNum=144&serviceId=urn:micasaverde-com:serviceId:Sonos1&action=Say&Text=test%20tts%20882&Language=en&Engine=MICROSOFT&Volume=82&GroupZones=&SameVolumeForAll=false FileBuffer 0x13a06e8 <0x73a1e520>
10   08/02/15 19:03:30.000   GlobalLog: mongoose ctx2: 0xc2f508 s: d:8446 <0x7361e520>

.
« Last Edit: August 02, 2015, 08:12:36 pm by JS007 »