Repository navigation
[google-cloud-java][Text-to-Speech][Android] want to use api key #3400
Description
Activity
- addedtriage meI really want to be triaged.I really want to be triaged.
on Jun 23, 2018 I use http-method to use the API_KEY on Android and it work fine for me.
Here is the example. But if you use restricted Google API key on Android, it can't work.
If the Text-to-Speech Java Library can support the API_KEY, please let me know. Thanks.
- addedtype: questionRequest for information or clarification. Not an issue.Request for information or clarification. Not an issue.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.api: texttospeechIssues related to the Text-to-Speech API.Issues related to the Text-to-Speech API.and removedtriage meI really want to be triaged.I really want to be triaged.
on Jun 26, 2018 Thanks for the information. Currently there probably won't be a better way, but we are working on an authentication approach for android right now. Please stand by.
Thanks for the information. Currently there probably won't be a better way, but we are working on an authentication approach for android right now. Please stand by.
Hello @hzyi-google, since your reply is one year old, were there any updates on a dedicated Android library for Google Cloud Text-to-Speech?
Thank you.
heyy can you provide full code? I want to use this API in my app but there is no proper documentation for using it in Android
I stopped working on the Java libraries a while ago so I don't know the latest status.
cc/ @ajaaym @chingor13
Any update on this?
- added 5 commits that reference this issue
on Mar 24, 2026
I use the Text-to-Speech Java Library on my Android app.
I want to use google cloud api-key to use the Text-to-Speech Java Library.
On my android. If I did the following code, it got the error message.
So I read the Authentication API Keys document and found API-Key not support Text-to-Speech, so I can't use api-key to Text-to-Speech Java Library.
If I want to use Text-to-Speech by API-Key or Text-to-Speech Java Library on Android. How can I do it ?
The following code is my command line and execute on mac and It work fine and can get the "audioContent". I think I can use http method by java. Is there any other way ?