Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google now demands an APIKey #17

Open
bergvdna opened this issue Jul 22, 2021 · 6 comments
Open

Google now demands an APIKey #17

bergvdna opened this issue Jul 22, 2021 · 6 comments

Comments

@bergvdna
Copy link

Thanks for sharing this code.
I have been able to use this for a long time, with success.
But Google now demands an APIKey and I don't know how to insert it so that it will work again.
I am curious about the solution.
Thank you in advance.
Arie

@horihiro
Copy link
Owner

My Google Home Mini can speak by the URL generated by the latest version of this module with my ESP32 board, so I don't think that an API key always is required.
And I have no information about an API that needs the key.

@bergvdna
Copy link
Author

bergvdna commented Jul 23, 2021 via email

@bergvdna
Copy link
Author

bergvdna commented Jul 24, 2021 via email

@horihiro
Copy link
Owner

If you use HTTPClient of arduino-esp32 , -5 means HTTPC_ERROR_CONNECTION_LOST according to the following line. It might be caused by HTTP connection to HTTPS URL (https://...)

https://github.com/espressif/arduino-esp32/blob/6e47e18a1b6f18d5f0b9b21eba2a202ee30601ef/libraries/HTTPClient/src/HTTPClient.h#L44

Try using HTTPS connection. The example is the following link (possibly, it might be needed to change the rootCA to an appropriate one).
https://github.com/espressif/arduino-esp32/blob/master/libraries/HTTPClient/examples/BasicHttpsClient/BasicHttpsClient.ino

And the response of translate.google.com is not string, it is mp3 binary data.
I'm not sure what you can get as a result of getString.

@bergvdna
Copy link
Author

bergvdna commented Jul 25, 2021 via email

@bergvdna
Copy link
Author

bergvdna commented Aug 2, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants