stampzilla-go
stampzilla-go copied to clipboard
chromecast TTS use google real api with wavenet voices!
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"
}
}