Fix Google Cloud 504 Deadline Exceeded (#148589)

This commit is contained in:
Lưu Quang Vũ 2025-07-12 01:53:38 +07:00 committed by Franck Nijhof
parent dc2736580f
commit 150d4716fa
No known key found for this signature in database
GPG Key ID: AB33ADACE7101952
2 changed files with 2 additions and 2 deletions

View File

@ -127,7 +127,7 @@ class GoogleCloudSpeechToTextEntity(SpeechToTextEntity):
try:
responses = await self._client.streaming_recognize(
requests=request_generator(),
timeout=10,
timeout=30,
retry=AsyncRetry(initial=0.1, maximum=2.0, multiplier=2.0),
)

View File

@ -218,7 +218,7 @@ class BaseGoogleCloudProvider:
response = await self._client.synthesize_speech(
request,
timeout=10,
timeout=30,
retry=AsyncRetry(initial=0.1, maximum=2.0, multiplier=2.0),
)