stampzilla-go icon indicating copy to clipboard operation
stampzilla-go copied to clipboard

chromecast TTS use google real api with wavenet voices!

Open jonaz opened this issue 3 years ago • 0 comments

https://cloud.google.com/text-to-speech/docs/libraries#client-libraries-install-go

https://cloud.google.com/text-to-speech/docs/reference/rest/v1/text/synthesize#AudioEncoding

from the demo:

will need service account configured in the chromecast node for this to work.

https://texttospeech.googleapis.com/v1beta1/text:synthesize

{
  "audioConfig": {
    "audioEncoding": "LINEAR16",
    "pitch": 0,
    "speakingRate": 1
  },
  "input": {
    "text": "testar på svenska"
  },
  "voice": {
    "languageCode": "sv-SE",
    "name": "sv-SE-Wavenet-B"
  }
}

jonaz avatar Jan 13 '22 19:01 jonaz