Skip to content

Commit

Permalink
use process.wait() instead of waitpid fixes #172
Browse files Browse the repository at this point in the history
  • Loading branch information
smacke committed Jan 17, 2023
1 parent 8bcbd94 commit 24f551b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffsubsync/speech_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def redirect_stderr(enter_result=None):
if "silero" not in self.vad:
in_bytes = np.frombuffer(in_bytes, np.uint8)
media_bstring.append(detector(in_bytes))
os.waitpid(process.pid, 0)
process.wait()
if len(media_bstring) == 0:
raise ValueError(
"Unable to detect speech. "
Expand Down

0 comments on commit 24f551b

Please sign in to comment.