Forums : Ohloh Code: Code Search

Dear Open Hub Users,

We’re excited to announce that we will be moving the Open Hub Forum to https://community.synopsys.com/s/black-duck-open-hub. Beginning immediately, users can head over, register, get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.


On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at [email protected]

how to extract audio file from a video file in java

I want to extract the audio clip from a video file in java and then further convert that audio file into text so that it can be saved in a document.

PLease help by providing some code or so ,urgently needed.

Thanksss.

Invention over 9 years ago
 

Dinesh,

That's a tall order... First, to extract the audio track, the best tool I've found is ffmpeg. Not Java, unfortunately, but could probably be called from Java. The second part is the difficult one. Speech-to-text is a rough job under the best of circumstances. Any possibility that the video already has captions embedded? That would be so much easier to extract.

In any case, there are solutions for speech-to-text but probably cost (Dragon Dictate etc.) Also, if the speech is combined with other sounds it complicates the issue. Easiest would be a lecture where the sound is clearly recorded but a soundtrack is often more difficult with music or sound effects added.

Hope that helps.

ssnow-blackduck over 9 years ago