Skip to content

Commit e0179a7

Browse files
authored
Fix Google Cloud 504 Deadline Exceeded (home-assistant#148589)
1 parent d393d5f commit e0179a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

homeassistant/components/google_cloud/stt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async def request_generator() -> AsyncGenerator[
127127
try:
128128
responses = await self._client.streaming_recognize(
129129
requests=request_generator(),
130-
timeout=10,
130+
timeout=30,
131131
retry=AsyncRetry(initial=0.1, maximum=2.0, multiplier=2.0),
132132
)
133133

homeassistant/components/google_cloud/tts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ async def _async_get_tts_audio(
218218

219219
response = await self._client.synthesize_speech(
220220
request,
221-
timeout=10,
221+
timeout=30,
222222
retry=AsyncRetry(initial=0.1, maximum=2.0, multiplier=2.0),
223223
)
224224

0 commit comments

Comments
 (0)