Texttospeech, 429 Received message larger than max #5
Comments
Tentatively triaging as a bug to appease the SLO bots. @nnegrey Would you be able to take a look? |
@alexander-fenster, could this be some GRPC size limit thing? |
That sounds right based on this googleapis/google-cloud-python#8860 |
@nnegrey Definitely a gRPC problem, not much we (as a client library) can do here. Could you please talk to an API team? |
Yea, I'll reach out. |
Howdy, mind trying again? Was able to get this to work now, there were some backend changes made. |
I'm going to close this out as it should be fixed, but if it isn't, please let me know and I'll reopen. |
I'm still getting the same error
|
My bad, I forgot to switch my test over to LINEAR16. I've reopened the issue with the product team. |
@nnegrey Do you have the bug number for this? |
Internal issue was marked fixed on May 18. Googlers see 150287650. Thanks Noah! |
I still have the same issue with |
@telpirion Could you take another look? |
ANy update on this? Facing the same issue. |
I can't reproduce this issue with a text payload of ~1550 characters. However, I can reproduce this with a text payload of ~4400 characters. I will escalate to the Text-to-Speech team. |
Googlers, see 170125537. |
@telpirion any update on this? Need to decide if we should keep using the python client. Will really appreciate it. Thanks. |
@prohilla Yes! There is a work around. Using the principle described here, you can change the options used to create the Text-to-Speech client so that it accepts a larger message size. Steps Assuming that you're using Text-to-Speech v1:
I'm going to close this issue for now. Please re-open if you continue to see this problem. |
@telpirion I believe the same max applies in all the grpc implementations. It might be worth tracking a FR to increase the defaults in the library somehow. Programmatic way to do the above: from google.cloud import texttospeech_v1
from google.cloud.texttospeech_v1.services.text_to_speech.transports.grpc import (
TextToSpeechGrpcTransport,
)
channel = TextToSpeechGrpcTransport.create_channel(
options=[("grpc.max_receive_message_length", 24 * 1024 * 1024)]
)
transport = TextToSpeechGrpcTransport(channel=channel)
client = texttospeech_v1.TextToSpeechClient(transport=transport) |
I get an error when trying to synthesize speech over ~1500 characters (4MiB) despite documentation stating the limit is 5000 characters. There is no problem synthesizing 5000 characters when using MP3 encoding (output file size: 1.2MB) on the same text, indicating that the problem is definitely just the larger file size when using LINEAR16 encoding (output file size: >13MB). This seems to be related to issues googleapis/google-cloud-python#5819, googleapis/google-cloud-python#5574
Environment details
API:
OS:
Python version:
Google Cloud Service Info:
Steps to reproduce
Code example
Stack trace
The text was updated successfully, but these errors were encountered: