Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Speech to Text coversion from Frontend application

Hi,

I have a requirement to convert a real-time speech to text, I followed the documentation(nodejs example) and I want to know if there are any solution to covert the speech from frontend instead(React app), with chromeos I was wondering if there are any solution for this from frontend.

I want to know if my approach is not recommended due to security concerns as we have to expose API keys of speech to text service.

Thanks

0 1 85
1 REPLY 1

Hi @Shyabithd,

Welcome to Google Cloud Community!

Currently, Cloud Speech-to-Text can be implemented using Nodejs, PHP, Go, Python, Java, C++, Ruby and .NET as seen here. I understand how important to have this on frontend frameworks like React. With this, I suggest filing this as a feature request. Please note that I can't provide any details or timelines at this moment. However, you may keep an eye on the release notes for any latest updates or new features related to Cloud Speech to Text.

As for your API key, you may try storing them as an Environment Variable or use Google Cloud Secret Manager as a best practice. You may also try using a service account (if applicable) as it allows for more granular permissions and is generally a more secure approach.

Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.