Faz download e transcrição de video do YouTube
https://www.fronteditor.dev/gists/64e6ade5434ccd23e6ad89d50cafea3b/view
https://creatomate.com/blog/how-to-use-ffmpeg-in-nodejs
- npm install --save
- npm run dev
//https://huggingface.co/docs/transformers.js/guides/node-audio-processing
const options = {
chunk_length_s: 15,
stride_length_s: 5,
language: "portuguese",
task: "transcribe",
return_timestamps: true,
};
// "Xenova/whisper-small" => pode ser modificado para um modelo maior mas requer mais processamento de sua amquina
const transcriber = await pipeline(
"automatic-speech-recognition",
"Xenova/whisper-small"
);