subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if audio_file.endswith('.ogg'): wav_file = tempfile.mktemp(suffix=".wav") cmd = f"ffmpeg -i '{audio_file}' -ar 16000 -ac 1 '{wav_file}' -y 2>/dev/null" subprocess.run(cmd, shell=True, check=True) audio_file = wav_file # Transcribe with faster-whisper- Confidence
- 98% confidence
- Finding
- subprocess.run(cmd, shell=True, check=True)
