Skip to content

Commit

Permalink
set whisper shell run
Browse files Browse the repository at this point in the history
  • Loading branch information
WEIFENG2333 committed Nov 24, 2024
1 parent 9098497 commit 2545c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/core/bk_asr/WhisperASR.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _run(self, callback=None) -> str:
stderr=subprocess.PIPE,
text=True,
encoding='utf-8',
creationflags=subprocess.CREATE_NO_WINDOW if os.name == 'nt' else 0
shell=True
)

total_duration = self.get_audio_duration(str(temp_audio))
Expand Down

0 comments on commit 2545c6b

Please sign in to comment.