mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Fix Google Cloud 504 Deadline Exceeded (#148589)
This commit is contained in:
parent
d393d5fdbb
commit
e0179a7d45
@ -127,7 +127,7 @@ class GoogleCloudSpeechToTextEntity(SpeechToTextEntity):
|
|||||||
try:
|
try:
|
||||||
responses = await self._client.streaming_recognize(
|
responses = await self._client.streaming_recognize(
|
||||||
requests=request_generator(),
|
requests=request_generator(),
|
||||||
timeout=10,
|
timeout=30,
|
||||||
retry=AsyncRetry(initial=0.1, maximum=2.0, multiplier=2.0),
|
retry=AsyncRetry(initial=0.1, maximum=2.0, multiplier=2.0),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ class BaseGoogleCloudProvider:
|
|||||||
|
|
||||||
response = await self._client.synthesize_speech(
|
response = await self._client.synthesize_speech(
|
||||||
request,
|
request,
|
||||||
timeout=10,
|
timeout=30,
|
||||||
retry=AsyncRetry(initial=0.1, maximum=2.0, multiplier=2.0),
|
retry=AsyncRetry(initial=0.1, maximum=2.0, multiplier=2.0),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user