TTS: Receiving google.api_core.exceptions.InternalServerError: 500 INTERNAL: ErrorSpacePayload error

Hi there,

This was working before and suddenly stopped giving the following error : -

processing mlpy.txt --> mlpy.wav
gs://bucketname/mlpy.wav projects/myproject/locations/mylocation
Traceback (most recent call last):
File "txt_to_wav.py", line 73, in <module>
result = operation.result(timeout=900) ## wait upto 15 mins
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python\Python312\Lib\site-packages\google\api_core\future\polling.py", line 261, in result
raise self._exception
google.api_core.exceptions.InternalServerError: 500 INTERNAL: [type.googleapis.com/util.ErrorSpacePayload='SpeechErrorSpace::TTS_BACKEND_REQUEST_RPC_ERROR'] 13: INTERNAL: [type.googleapis.com/util.ErrorSpacePayload='SpeechErrorSpace::TTS_BACKEND_REQUEST_RPC_ERROR']

Any one seen this before? Any solution? What do we do? Thanks for your help.

1 REPLY 1

The 500 Internal Server Error often indicates an issue on the server-side, which might not be directly controllable from your end. Temporary issues can occur on the service provider's end. Trying the same operation after some time (an hour or more) might resolve the problem if it's due to a transient issue.

Remember to handle exceptions in your code to capture and log such errors gracefully, providing helpful messages for debugging and informing users when necessary.