I'm trying to get a working demo for the google-text-to-speech API under Java/Windows Desktop.
I have created a project in the Google Cloud as described in the Google Cloud manual, activated the Cloud Text-to-Speech API and created a new "Service Account Key". After that I took the sample program provided by Google (QuickstartSample) and put it into IntelliJ and tried out several other sample programs from Github. I also tried the several examples/hints on stackoverflow.
I use Java SDK 14.0.2, IntelliJ 2020.2.3 and Windows 10 as development environment.
None of the example programs available on the internet seems to work properly.
Can someone please provide a working example program in the above mentioned running environment (Java SDK 14.0.2, IntelliJ 2020.2.3, Windows 10.)?
Any help is highly appreciated. Many thanks.