We have moved at community.getvera.com

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

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #45 on: August 03, 2015, 02:23:00 am »
@JS007 - Thank you again!  Working now.

Including Microsoft Translatif ?

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #46 on: August 03, 2015, 02:31:16 am »
@JS007: if you got the "failed" error message (and you installed trunc 221), that means that the session token was retrieved. I have no idea why it does not work for you or only work sometimes.

@tomgru: are you using Edge/UI7 too ?

Client ID must contain only letters, numbers, _ or -.

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #47 on: August 03, 2015, 02:38:03 am »
@JS007: if you got the "failed" error message (and you installed trunc 221), that means that the session token was retrieved. I have no idea why it does not work for you or only work sometimes.

@tomgru: are you using Edge/UI7 too ?

Client ID must contain only letters, numbers, _ or -.

I did get it to work one time with 221 while playing, then all other times it failed, but Google works every-time, so just leaving that as default, that works perfect for me
« Last Edit: August 03, 2015, 02:40:08 am by JS007 »

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #48 on: August 03, 2015, 02:51:57 am »
@JS007: if you got the "failed" error message (and you installed trunc 221), that means that the session token was retrieved. I have no idea why it does not work for you or only work sometimes.

@tomgru: are you using Edge/UI7 too ?

Client ID must contain only letters, numbers, _ or -.

I did get it to work one time with 221 while playing, then all other times it failed, but Google works every-time, so just leaving that as default, that works perfect for me


The access token is normally valid during a certain time (10 minutes). I use the saved token while the time has not expired. Maybe your session token expired earlier !? I will make a change to add a second try getting a new session token in case the first try failed.

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #49 on: August 03, 2015, 03:36:00 am »
@JS007: please try trunc version 222 (only L_SonosTTS.lua has changed). I added a second try with new session token and I added warnings (that are in fact logs) to help debugging.

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #50 on: August 03, 2015, 04:06:03 am »
@JS007: please try trunc version 222 (only L_SonosTTS.lua has changed). I added a second try with new session token and I added warnings (that are in fact logs) to help debugging.

nope, google still works, but not ms

edit by lolodomo: logs suppressed
« Last Edit: August 03, 2015, 06:09:02 am by lolodomo »

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #51 on: August 03, 2015, 06:03:32 am »
@JS007; good point is that authentication is working perfectly for you. The problem is the wget command to retrieve the MP3 seems to fail.

Please try again with trunc version 223 (only L_SonosTTS.lua changed), I added few traces. I would like to see if similar URL to get languages is working or not.
« Last Edit: August 03, 2015, 06:17:58 am by lolodomo »

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #52 on: August 03, 2015, 06:10:43 am »
@JS007: please send logs only to me through PM, I am not sure it is safe to share your session token with everybody. We can read your client id but apprently not your client secret.
« Last Edit: August 03, 2015, 08:29:01 am by lolodomo »

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #53 on: August 03, 2015, 11:25:02 am »
@JS007: please send logs only to me through PM, I am not sure it is safe to share your session token with everybody. We can read your client id but apprently not your client secret.

sent logs, the first try actually worked, future tries failed... I sent log example of both

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #54 on: August 03, 2015, 11:28:08 am »
@JS007: please send logs only to me through PM, I am not sure it is safe to share your session token with everybody. We can read your client id but apprently not your client secret.

np, when all done testing I will change the id and secret, thanks

Offline tomgru

  • Hero Member
  • *****
  • Posts: 1403
  • Karma: +18/-6
Re: New TTS engine: Microsoft Translator
« Reply #55 on: August 03, 2015, 12:10:37 pm »
Fyi, l'm un U15.

Offline wezley69

  • Sr. Member
  • ****
  • Posts: 289
  • Karma: +6/-6
Re: New TTS engine: Microsoft Translator
« Reply #56 on: August 03, 2015, 05:36:40 pm »
@lolodomo - No MS not working. I was just happy having Google back!

Offline lolodomo

  • Moderator
  • Master Member
  • *****
  • Posts: 3484
  • Karma: +74/-10
Re: New TTS engine: Microsoft Translator
« Reply #57 on: August 04, 2015, 02:58:00 am »
@JS007: please try with trunc version 224, I added a new log that displays the command that is run to get the MP3 file.
As soon as it fails, please take the last log entry that starts with "Microsoft TTS: command=" and run it manually in a SSH console after suppressing the "--quiet". Please describe the result. Be careful, the log entry is on several lines. Just suppress \ to have everything on a unique line if you prefer.
We should have more details about what is the reason of the failure.

PS: you have only 10 minutes to run the command again and again. After that delay, the command will fail normally due to token expired.
« Last Edit: August 04, 2015, 03:18:59 am by lolodomo »

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #58 on: August 04, 2015, 06:12:00 am »
@JS007: please try with trunc version 224, I added a new log that displays the command that is run to get the MP3 file.
As soon as it fails, please take the last log entry that starts with "Microsoft TTS: command=" and run it manually in a SSH console after suppressing the "--quiet". Please describe the result. Be careful, the log entry is on several lines. Just suppress \ to have everything on a unique line if you prefer.
We should have more details about what is the reason of the failure.

PS: you have only 10 minutes to run the command again and again. After that delay, the command will fail normally due to token expired.

not sure if I did this right

the line in log

02   08/04/15 5:02:39.719   luup_log:144: Sonos: warning: Microsoft TTS: command=rm /www/Say.144.mp3 ; wget --output-document /www/Say.144.mp3 \
--quiet \

response

root@MiOS:~# rm /www/Say.144.mp3 ; wget --output-document /www/Say.144.mp3
rm: can't remove '/www/Say.144.mp3': No such file or directory
BusyBox v1.19.4 (2015-01-30 01:47:09 PST) multi-call binary.

Usage: wget [-c|--continue] [-s|--spider] [-q|--quiet] [-O|--output-document FILE]
        [--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
        [--no-check-certificate] [-U|--user-agent AGENT] URL...

Retrieve files via HTTP or FTP

        -s      Spider mode - only check file existence
        -c      Continue retrieval of aborted transfer
        -q      Quiet
        -P DIR  Save to DIR (default .)
        -O FILE Save to FILE ('-' for stdout)
        -U STR  Use STR for User-Agent header
        -Y      Use proxy ('on' or 'off')

root@MiOS:~#
« Last Edit: August 04, 2015, 06:16:20 am by JS007 »

Offline JS007

  • Sr. Member
  • ****
  • Posts: 319
  • Karma: +1/-3
Re: New TTS engine: Microsoft Translator
« Reply #59 on: August 04, 2015, 06:33:06 am »
trying to run again, see you said more of cmd below first line

edit : sent logs via pm

if I ran that wrong, if you could send me a pm of how it should look, I can give it another try
« Last Edit: August 04, 2015, 06:58:53 am by JS007 »