Announcement

Collapse
No announcement yet.

Google TTS through Chromecast

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • spud
    replied
    Originally posted by Groot View Post

    Yes, have seen that. And set it up like you have shown, but it is still the HS voice that sounds on my speakers
    What kind of speakers?
    It only work with speakers handled by the chromecast plugin, i.e chromecast, google home, etc...

    Leave a comment:


  • Groot
    replied
    That's on my computers and sonos speakers that is.

    Leave a comment:


  • Groot
    replied
    Originally posted by spud View Post

    Yes the Google TTS voice is available within the Chromecast plugin: see attached screenshot:

    Yes, have seen that. And set it up like you have shown, but it is still the HS voice that sounds on my speakers

    Leave a comment:


  • spud
    replied
    Originally posted by Groot View Post
    Hi,

    Can see that this is a old post, but is there a workaround to use Google TTS with HS3 now?
    Having the same issues as ServiceXp, So I'm guessing it is a 64bit issue?
    Yes the Google TTS voice is available within the Chromecast plugin: see attached screenshot:

    Click image for larger version

Name:	google_tts.png
Views:	31
Size:	88.9 KB
ID:	1267781

    Leave a comment:


  • Groot
    replied
    Hi,

    Can see that this is a old post, but is there a workaround to use Google TTS with HS3 now?
    Having the same issues as ServiceXp, So I'm guessing it is a 64bit issue?

    Leave a comment:


  • ServiceXp
    replied
    Originally posted by spud View Post
    1. win10 uses 64bits voices whereas Homeseer and the Chromecast plugin use 32bits voices, read this post: https://forums.homeseer.com/showthre...33#post1360733

    2. if you use $$date instead of $date, HS3 inserts some <say-as type="date"> tags that Google don't understand.
    "The time is now $time On $date" works fine for me with google tts.
    Thanks spud, I'll make the changes.

    The interesting thing on TTS voice issue, until the 1803 update, I could use <voice required="name = Microsoft Voice Name Here"> to override the default with one of the other installed voices. That no longer works.

    I suspect, (need to investigate) the 1803 update may have 'upgraded' my 32bit voices with 64bit versions..

    Leave a comment:


  • spud
    replied
    Originally posted by ServiceXp View Post
    Having 2 problems with TTS. One I've had, but didn't bother to report, and the other started with the Windows 1803 update.

    1) With the 1803 update, it seems the PI will not use any other voice regardless of what is selected as the system default voice in Windows.

    Because of the above I tried the google voice option again..

    2) Using google voice and a system variable in the speech string makes a mess of the spoken string..

    Example: The time is now $time On $$date


    Massive Log file attached.
    1. win10 uses 64bits voices whereas Homeseer and the Chromecast plugin use 32bits voices, read this post: https://forums.homeseer.com/showthre...33#post1360733

    2. if you use $$date instead of $date, HS3 inserts some <say-as type="date"> tags that Google don't understand.
    "The time is now $time On $date" works fine for me with google tts.

    Leave a comment:


  • ServiceXp
    replied
    Having 2 problems with TTS. One I've had, but didn't bother to report, and the other started with the Windows 1803 update.

    1) With the 1803 update, it seems the PI will not use any other voice regardless of what is selected as the system default voice in Windows.

    Because of the above I tried the google voice option again..

    2) Using google voice and a system variable in the speech string makes a mess of the spoken string..

    Example: The time is now $time On $$date


    Massive Log file attached.
    Attached Files

    Leave a comment:


  • Dutch
    replied
    Originally posted by spud View Post
    in version 3.0.0.19 available here, you can now use Google TTS instead of the Windows/Linux system TTS.

    note that the messages are limited to about 200 characters, it's a bit slower than the system TTS, and since it's kind of a hack, Google could break it at anytime.

    [ATTACH]68217[/ATTACH]
    Working great! Thanks a lot Spud!

    Leave a comment:


  • spud
    replied
    in version 3.0.0.19 available here, you can now use Google TTS instead of the Windows/Linux system TTS.

    note that the messages are limited to about 200 characters, it's a bit slower than the system TTS, and since it's kind of a hack, Google could break it at anytime.

    Click image for larger version

Name:	google_tts.png
Views:	1
Size:	64.5 KB
ID:	1196383

    Leave a comment:


  • Dutch
    replied
    I think this should get us going...

    https://cloud.google.com/text-to-speech/

    Leave a comment:


  • bkazm
    replied
    Originally posted by spud View Post
    A while ago Rich posted a script to use Google TTS on Linux:
    https://forums.homeseer.com/showthread.php?t=175012

    but last time I tested it wasn't working anymore..
    My vb coding is rusty, but it looks like a possible solution is here:
    https://stackoverflow.com/questions/...ts-api-blocked

    Basically:
    • you must include "client" in your query string (client=t seems to work)
    • (in case you are trying to retrieve it using AJAX) the Referer of the HTTP request must be https://translate.google.com/
    • "tk" field changes for every query, and it must be populated with a matching hash: tk = hash(q, TKK), where q is the text to be TTSed, and TKK is a var in the global scope when you load translate.google.com: (type 'window.TKK' in the console). see the hash function at the bottom of this reply (calcHash).

    Leave a comment:


  • spud
    replied
    A while ago Rich posted a script to use Google TTS on Linux:
    https://forums.homeseer.com/showthread.php?t=175012

    but last time I tested it wasn't working anymore.
    note that if you can make that script work, the Chromecast plugin will automatically use the Google TTS voice, because it uses speak_to_file.sh as well.

    Leave a comment:


  • MattL0
    replied
    Originally posted by bkazm View Post
    I don't recall how TTS works in Homeseer, but the code I linked basically uses the Google TTS api to create an MP3 of the audio on the fly. Maybe that's how the other TTS in homeseer works, I don't know - I never used it. But since an MP3 is created, anything should be able to play the speech.
    I hope rich see this too

    Leave a comment:


  • bkazm
    replied
    I don't recall how TTS works in Homeseer, but the code I linked basically uses the Google TTS api to create an MP3 of the audio on the fly. Maybe that's how the other TTS in homeseer works, I don't know - I never used it. But since an MP3 is created, anything should be able to play the speech.

    Leave a comment:

Working...
X