Skip to content

Commit

Permalink
Handle broken pipe error in silero
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Mar 29, 2023
1 parent a166537 commit f11b15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/vad/silero/bin/silero_speech_prob.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def main() -> None:
speech_probability = detector.get_speech_probability(chunk)
print(speech_probability, flush=True)
chunk = sys.stdin.buffer.read(bytes_per_chunk)
except KeyboardInterrupt:
except (KeyboardInterrupt, BrokenPipeError):
pass


Expand Down

0 comments on commit f11b15f

Please sign in to comment.