We have moved at community.getvera.com

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

Offline JsChiSurf

  • Jr. Member
  • **
  • Posts: 81
  • Karma: +4/-0
Re: New TTS engine: Microsoft Translator
« Reply #135 on: March 02, 2016, 11:00:01 am »
awesome...thanks guys.  Glad my stomping grounds could actually help!

Thanks again for your help. Without your "insider" status, it would have been a while, if ever, to find a resolution.

Offline DeltaNu1142

  • Hero Member
  • *****
  • Posts: 1153
  • Karma: +40/-67
Re: New TTS engine: Microsoft Translator
« Reply #136 on: March 02, 2016, 11:13:08 am »
I have finally added a parameter "Microsoft option". By default, the parameter is empty and the result will be a small audio file and no gender specified. You can set in the plugin UI one of these values: "Male", "Female", "MinSize|Male", "MinSize|Female", "MaxQuality|Male", "MaxQuality|Female".
Files updated, but not tested... need to get home to do that.

Does this look right?

Vera 3 @ UI5 | HomeWave | PLEG

Offline sebby

  • Sr. Member
  • ****
  • Posts: 306
  • Karma: +15/-3
Re: New TTS engine: Microsoft Translator
« Reply #137 on: March 02, 2016, 12:49:11 pm »
this worked beautifully... thank you!

Offline Mai Pensato

  • Full Member
  • ***
  • Posts: 228
  • Karma: +5/-1
Re: New TTS engine: Microsoft Translator
« Reply #138 on: March 02, 2016, 05:13:25 pm »
I also uploaded the 4 files and did some tests. It works indeed, both male and female voice (Dutch).
At "Minsize"  the TTS works much faster but still not as fast as the Google TTS
Tomorrow morning when I hear my more extended weather report (several sentences) I know if in this way the MS is workable
(it's now 23h in Holland..)

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #139 on: March 02, 2016, 07:21:38 pm »
Rather than one unique call, you can do several calls, for example one for each sentence. You even have not to care about timings, messages will be read in sequence. Doing like that, you have only small audio files to download. It is how my weather report is done and it works well.

Offline tomgru

  • Hero Member
  • *****
  • Posts: 1403
  • Karma: +18/-6
Re: New TTS engine: Microsoft Translator
« Reply #140 on: March 03, 2016, 09:36:57 am »
awesome...thanks guys.  Glad my stomping grounds could actually help!

Thanks again for your help. Without your "insider" status, it would have been a while, if ever, to find a resolution.

You bet! My pleasure!

Offline markoe

  • Full Member
  • ***
  • Posts: 137
  • Karma: +4/-3
Re: New TTS engine: Microsoft Translator
« Reply #141 on: March 03, 2016, 12:18:43 pm »
I have finally added a parameter "Microsoft option". By default, the parameter is empty and the result will be a small audio file and no gender specified.
You can set in the plugin UI one of these values: "Male", "Female", "MinSize|Male", "MinSize|Female", "MaxQuality|Male", "MaxQuality|Female".

You will have to upload 4 files I have updated: I_Sonos1.xml J_Sonos1.js L_SonosTTS.lua S_Sonos1.xml
Don't forget to free your WEB browser cache as the JavaScript file is updated.

I did try to update also, but failed . Result was total silence from MS TTS  if I try via the test bottom from the device or via running the scene. I can see the Microsoft option parameter on the sonos device TTS parameters so atleast part of the fix has entered the system. I did restore vera settings from the backup and vera works now as earlier.

It must have been me doing someting wrong during file load, possible the .js file. I will give this a second try during weekend. Thanks anyway.

update 5.3.2016 It works now after I did get the files from zip-file
« Last Edit: March 05, 2016, 08:07:37 am by markoe »

Offline Mai Pensato

  • Full Member
  • ***
  • Posts: 228
  • Karma: +5/-1
Re: New TTS engine: Microsoft Translator
« Reply #142 on: March 03, 2016, 01:48:08 pm »
Rather than one unique call, you can do several calls, for example one for each sentence. You even have not to care about timings, messages will be read in sequence. Doing like that, you have only small audio files to download. It is how my weather report is done and it works well.
My code is built up as several seperate calls; every sentence is one "luup.call_action..."

This morning it went well with the MS TTS. All the sentences came fluently. The only thing I already noticed before:  MS does not recognize digits:  2.5 degrees is spoken as "two five"  whereas Google TTS  "two point five"

Offline spudjr

  • Full Member
  • ***
  • Posts: 133
  • Karma: +2/-0
Re: New TTS engine: Microsoft Translator
« Reply #143 on: March 04, 2016, 06:57:34 pm »
Will this latest change be going to the app store or do we need to upload the four files. Thanks

Offline michelhamelin

  • Full Member
  • ***
  • Posts: 162
  • Karma: +3/-1
Re: New TTS engine: Microsoft Translator
« Reply #144 on: March 08, 2016, 10:35:51 pm »
I don t know why but,  i get this error:

Error executing function Sonos_showTTS():

Offline BOFH

  • Sr. Hero Member
  • ******
  • Posts: 2409
  • Karma: +112/-140
Re: New TTS engine: Microsoft Translator
« Reply #145 on: March 09, 2016, 09:30:48 am »
After you downloaded the ZIP file and extracted it, did you upload all 4 files with date 3/1/2016 to Vera and restarted LUUP?
Vera3 UI5 UI7 Edge Plus
Trane TZEMT400AB32 | Schlage BE369 FE599 | GE 45601 45602 45603 45604 45606 45609 45631 | Intermatic HA01C HA03C HA05C HA07C CA600 CA3000 | Aeon DSC06106 | Telguard GDC1 | Foscam FI8910W FI8905W FI9821W | D-Link 930L | Wanscam JW0011 | ZModo ZPIBH13W

Offline michelhamelin

  • Full Member
  • ***
  • Posts: 162
  • Karma: +3/-1
Re: New TTS engine: Microsoft Translator
« Reply #146 on: March 09, 2016, 12:00:58 pm »
ok Thanks now it work, i was trying to downlod files one by one instead zip achive.

Offline symonsaz

  • Sr. Newbie
  • *
  • Posts: 33
  • Karma: +1/-0
Re: New TTS engine: Microsoft Translator
« Reply #147 on: March 09, 2016, 09:16:30 pm »
THANK YOU GUYS... worked like a charm! ;D

Offline Kryckmeister

  • Jr. Member
  • **
  • Posts: 58
  • Karma: +1/-1
Re: New TTS engine: Microsoft Translator
« Reply #148 on: April 01, 2016, 09:21:34 am »
I just can't get it (Microsoft) to work consistently. Yesterday I tried it out, both english and swedish worked in all my units but today, nothing. I've checked client ID and Client secret and they are identical. I'm all out of ideas.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #149 on: April 02, 2016, 03:50:50 am »
I just can't get it (Microsoft) to work consistently. Yesterday I tried it out, both english and swedish worked in all my units but today, nothing. I've checked client ID and Client secret and they are identical. I'm all out of ideas.

Did you subscribe to the free 2 million characters ?