Skip to content

🎥 Make videos programmatically with React

use npx remotion ffmpeg

Igor Samokhovets4c4599021128
diff --git a/packages/template-audiogram/transcribe.ts b/packages/template-audiogram/transcribe.ts
index cdc3017b45..cec0da91e3 100644
--- a/packages/template-audiogram/transcribe.ts
+++ b/packages/template-audiogram/transcribe.ts
@@ -60,7 +60,7 @@ async function transcribeAudio(options: TranscriptionOptions) {
const tempAudioForWhisper = path.join(os.tmpdir(), `whisper-${Date.now()}.wav`);
// Cut the audio starting from speech start time and convert to 16-bit WAV
- execSync(`ffmpeg -i "${options.audioPath}" -ss ${options.speechStartsAtSecond} -ar 16000 -ac 1 "${tempAudioForWhisper}" -y`);
+ execSync(`npx remotion ffmpeg -i "${options.audioPath}" -ss ${options.speechStartsAtSecond} -ar 16000 -ac 1 "${tempAudioForWhisper}" -y`);
const whisperCppOutput = await transcribe({
model: WHISPER_MODEL,