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

Speech: Increase speech max received msg size to 256 MiB #8338

Merged
merged 1 commit into from
Jun 17, 2019

Conversation

plamut
Copy link
Contributor

@plamut plamut commented Jun 14, 2019

Closes #5819

This PR increases the default max received message size for speech messages to 256 MiB.

Hardcoded, indeed, but that setting was already not directly available to end users (a full SpeechGrpcTransport needs to be passed instead). This PR does not address this aspect.

How to test

  • Install the synthtool,
  • Revert the changes in transports/speech_grpc_transport.py,
  • Got to the speech library directory and run the synthtool.

Expected result:

  • The generated code changes in transports/speech_grpc_transport.py are the same as those submitted with this PR.
  • The problem described in the issue description is also resolved, because the old 4 MiB max message size is now much higher.

@plamut plamut added the api: speech Issues related to the Speech-to-Text API. label Jun 14, 2019
@plamut plamut requested a review from busunkim96 as a code owner June 14, 2019 14:17
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 14, 2019
@busunkim96
Copy link
Contributor

CC @lukesneeringer Is there a way we can get the library to generate with the higher message size? It feels a bit weird to have this be our permanent fix.

@plamut
Copy link
Contributor Author

plamut commented Jun 17, 2019

Re-ran with the latest synthtool and rebased onto the latest master to fix the merge conflict.

@plamut plamut merged commit 9996587 into googleapis:master Jun 17, 2019
@plamut plamut deleted the iss-5819 branch June 17, 2019 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: speech Issues related to the Speech-to-Text API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Speech: v1p1beta1 with diarization, 429 Received message larger than max
3 participants