-4

I have to use the library to convert the .mp4 to .wav for fetching the transcription using google's speech to text API. But it is taking approx 5 minutes to convert a 40 MB file. I have tried moviepy and other libraries for the same. Please suggest what to use.

Chauhan
  • 1
  • 1

1 Answers1

0

@PrathameshDoke

we are not getting the error. Just the time taken in conversion is too longer. The code we are using is following

import moviepy.editor as mp

from moviepy.editor import * # Quick and dirty

from moviepy.editor import VideoFileClip

clip = VideoFileClip("trim.5F346E8F-3677-45FF-A1DB-C002F0F07CC1.MOV")

clip.audio.write_audiofile("theaudio.wav")

Chauhan
  • 1
  • 1