bump retry count for micd and soundd (#36415)

retry
This commit is contained in:
Maxime Desroches
2025-10-21 21:54:40 -07:00
committed by GitHub
parent cc8f6eadfe
commit 5289b08bcf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ class Soundd:
volume = ((weighted_db - AMBIENT_DB) / DB_SCALE) * (MAX_VOLUME - MIN_VOLUME) + MIN_VOLUME
return math.pow(10, (np.clip(volume, MIN_VOLUME, MAX_VOLUME) - 1))
@retry(attempts=7, delay=3)
@retry(attempts=10, delay=3)
def get_stream(self, sd):
# reload sounddevice to reinitialize portaudio
sd._terminate()
+1 -1
View File
@@ -94,7 +94,7 @@ class Mic:
self.measurements = self.measurements[FFT_SAMPLES:]
@retry(attempts=7, delay=3)
@retry(attempts=10, delay=3)
def get_stream(self, sd):
# reload sounddevice to reinitialize portaudio
sd._terminate()