Hey guys,
In an app I am currently developing, I need a good text to speech functionality. For that I want to use an api and I think the Google cloud text to speech api is just the best api on the market (https://cloud.google.com/text-to-speech/?utm_source=google&utm_medium=cpc&utm_campaign=emea-ro-all-en-dr-bkws-all-all-trial-b-gcp-1011340&utm_content=text-ad-none-any-dev_c-cre_654621767022-adgp_Hybrid+%7C+BKWS+-+BRO+%7C+Txt+~+AI+%26+ML+~+Text-to-Speech-kwid_43700075997020393-kwd-496508578319-userloc_1011795&utm_term=kw_google%20text%20to%20speech-net_g-plac_&&gad_source=1&gclid=CjwKCAiA04arBhAkEiwAuNOsIn0u8DPp5Na0LfMqZYM3QhPWzjnAEb3ReOKZVBJxgEdRWLAhsJoskhoC4jIQAvD_BwE&gclsrc=aw.ds).
I have used APIs before but I’m not that sure, how to use this api in Flutterflow.
URL:
https://texttospeech.googleapis.com/v1beta1/text:synthesize
Example JSON:
{
"audioConfig": {
"audioEncoding": "LINEAR16",
"effectsProfileId": [
"small-bluetooth-speaker-class-device"
],
"pitch": 0,
"speakingRate": 1
},
"input": {
"text": "Google Cloud Text-to-Speech enables developers to synthesize natural-sounding speech with 100+ voices, available in multiple languages and variants. It applies DeepMind’s groundbreaking research in WaveNet and Google’s powerful neural networks to deliver the highest fidelity possible. As an easy-to-use API, you can create lifelike interactions with your users, across many applications and devices."
},
"voice": {
"languageCode": "en-US",
"name": "en-US-Studio-O"
}
}
Can you guys maybe tell me how exactly I can use this api in my Flutterflow project to play the text to speech as an audio and also where I need to put the api key.
Thanks a lot!
Greetings
Benjamin