How to use:
- Clone the project
- Run
npm install
- To convert youtube video to mp3 run:
node yt-video-convert-to-mp3.js "YOUTUBE_VIDEO_URL_HERE___FORMAT_EQUAL_https://www.youtube.com/watch?v=UJZ2GXfxY5A"
- After converting the video to mp3, you can find the mp3 file in the output_audios folder
- To convert generated audio to text run:
node audio-to-text-file.js file_name_here_from_output_audios_folder.mp3
- To convert Video to text run:
node video-to-text.js YOUTUBE_VIDEO_URL_HERE__https://www.youtube.com/watch?v=UJZ2GXfxY5A
- To get API path run:
npm run dev
Note: API path is : http://localhost:3000/video-to-text (POST)
{
"video_url": "https://www.youtube.com/watch?v=UJZ2GXfxY5A",
"delete_audio_file": true,
"delete_text_file": true
}
Response:
{
"transcription": "your transcription here"
}