-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
How to specify quotaUser upon Speech Streaming request #475
Comments
@heroddaji Please take a loot at https://cloud.google.com/speech/limits to use the API appropriately. |
@heroddaji it doesn't appear our grpc clients currently expose the ability to do userquota, or if they do, it's very non-obvious how to do so. |
@heroddaji there are several ways to limit it from your end (such as with redis). |
@heroddaji Support for the quotaUser is no longer available. If the request is authenticated, the user QPS limit applies to the actual user (Google user ID). Otherwise, client IP is used. Hope that helps. |
thank you, i have not yet fully understand the part "the user QPS limit applies to the actual user (Google user ID)". In which situation this applies? because in our app, we will use our google_json_secret key (our id). and distribute the app to users:
Sorry for confusion, but I hope you all can help me. |
@heroddaji Can you please give me details and specifics about how you are using or intend to use the speech api and distribute it to your users? I do get a sense from your previous comment, but I don't want to assume. Thanks. |
@heroddaji you shouldn't distribute your service account private key to end users. Client applications can't keep secrets, and private keys are intended for server-to-server communication. |
@heroddaji Closing this due to no activity. Please, open another issue if you have further questions. Also, adding to what @jonparrott said you should architect your system such that your app talks to the service which behind the scenes invokes the Speech API using the service account. |
Source-Link: googleapis/synthtool@7197a00 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:c43f1d918bcf817d337aa29ff833439494a158a0831508fda4ec75dc4c0d0320 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Source-Link: googleapis/synthtool@7197a00 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:c43f1d918bcf817d337aa29ff833439494a158a0831508fda4ec75dc4c0d0320 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Source-Link: googleapis/synthtool@7197a00 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:c43f1d918bcf817d337aa29ff833439494a158a0831508fda4ec75dc4c0d0320 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Dear,
We have a requirement to limit per user usage of speech streaming recognition.
We want to limit by user identity "quotaUser" param as specified here:
https://support.google.com/cloud/answer/7035610?hl=en
So far I cannot find out how to do that from Cloud Speech API doc.
Could you please help me providing a sample code in python?
if it even better if you use speech_streaming.py example code.
The text was updated successfully, but these errors were encountered: