Results 1 to 15 of 15
- 02-01-2013, 04:19 PM #1
Member
- Join Date
- Feb 2013
- Posts
- 11
- Rep Power
- 0
Automatic subtitle generation for sound in video files
I selected AUTOMATIC SUBTITLE GENERATION FOR SOUND IN VIDEO FILES as my major project and when I searched on internet I found some documents explaining about this topic and the end result is not satisfactory so I want to know is it possible using java? Result doesn't have to be accurate but is it possible to get 80% success rate if audio is clean and 50% for a normal video? or have I done mistake by selecting this project?
Last edited by yaswanth; 02-01-2013 at 04:25 PM.
- 02-01-2013, 08:08 PM #2
Re: Automatic subtitle generation for sound in video files
You're asking a question that's way too vague to really answer. What approach are you planning on taking? What have you done so far? What have other people done?
If you really have no idea how to proceed, then perhaps you did bite off more than you can chew.How to Ask Questions the Smart Way
Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!
- 02-02-2013, 09:02 AM #3
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,413
- Blog Entries
- 7
- Rep Power
- 17
Re: Automatic subtitle generation for sound in video files
I smell speech to text transformation and that means speech recognition (a nasty subject); I don't know if it can be done where actors speak (or shout, or whisper) simultaneously; the other way around, i.e. text to speech, is much easier. Maybe Google knows more ...
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 03-10-2013, 05:41 PM #4
Member
- Join Date
- Feb 2013
- Posts
- 11
- Rep Power
- 0
Re: Automatic subtitle generation for sound in video files
I wanted to approach this project in three steps.
1. Audio extraction from videos
2. voice to text using speech recognition
3. generate subtitle
Thus far I didn't got much further in this project sorry for the absence of reply.
though I got the basic knowledge in approaching those modules.
I am thinking of using Xuggler to extract audio and by using Sphinx-4 which is an application completely written in java which helps us in speech recognition module and I am thinking to generate subtitle by recording time in the video where the voice has started and stopped by using acoustic principles.
Now I need help with extracting audio from video using Xuggler or any other optimum solution.
- 05-22-2013, 10:56 AM #5
Member
- Join Date
- May 2013
- Posts
- 5
- Rep Power
- 0
Re: Automatic subtitle generation for sound in video files
I am also doing my project in automatic subtitle generation in videos. i have done audio extraction ,speech recognition with sphinx 4 but am having problem generating subtitles.Any java code to implement this and how to go able it
- 05-22-2013, 11:53 AM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: Automatic subtitle generation for sound in video files
If it's recognising the speech and turning it into text, then where's the problem?
Please do not ask for code as refusal often offends.
- 05-22-2013, 02:04 PM #7
Member
- Join Date
- Feb 2013
- Posts
- 11
- Rep Power
- 0
- 05-22-2013, 02:13 PM #8
Member
- Join Date
- Feb 2013
- Posts
- 11
- Rep Power
- 0
Re: Automatic subtitle generation for sound in video files
Are you able to sync audio with text? If yes tell me how to do it.
generating subtitle is easy with this
I am studying JMF for audio and text syncing.Java Code:FileWriter fileWritter = new FileWriter(file,true); BufferedWriter bufferWritter = new BufferedWriter(fileWritter);
- 05-23-2013, 09:28 AM #9
Member
- Join Date
- May 2013
- Posts
- 5
- Rep Power
- 0
Re: Automatic subtitle generation for sound in video files
how to convert speech to text using Sphinx 4 in subtitle generation using sphinx4 and and how to create the subtitle file using a java
- 05-23-2013, 09:58 AM #10
Member
- Join Date
- Feb 2013
- Posts
- 11
- Rep Power
- 0
Re: Automatic subtitle generation for sound in video files
To convert from speech to text use Sphinx 4. Download sphinx 4 from here
to get the overall idea about how to use sphinx 4 download source version.In this version complete program code is available.
watch out video tutorial here for how to execute sphinx 4 program.
Out of curiosity may I ask you why you are interested in this project? general or project purpose?
- 05-23-2013, 10:39 AM #11
Member
- Join Date
- May 2013
- Posts
- 5
- Rep Power
- 0
Re: Automatic subtitle generation for sound in video files
I am doing my project work in automatic generation of subtitles in videos
- 05-23-2013, 10:57 AM #12
Member
- Join Date
- May 2013
- Posts
- 5
- Rep Power
- 0
Re: Automatic subtitle generation for sound in video files
Thanks but I am also doing my project in automatic subtitle generation in videos. i have done audio extraction ,speech recognition with sphinx 4 but am having problem generating subtitles.Any java code to implement this and how to go able it
- Yesterday, 10:59 AM #13
Member
- Join Date
- Feb 2013
- Posts
- 11
- Rep Power
- 0
Re: Automatic subtitle generation for sound in video files
Are you able to sync audio with text generated? If not you need to study more about JMF and come up with your own code.
if you just want to write generated text into .srt file then I did it like this.
Java Code:File file =new File("F:\\subtitle.srt"); if(!file.exists()) { file.createNewFile(); } //true = append file FileWriter fileWritter = new FileWriter(file,true); BufferedWriter bufferWritter = new BufferedWriter(fileWritter); bufferWritter.newLine(); bufferWritter.write(data);// here "data" is my generated text
- Yesterday, 12:10 PM #14
Member
- Join Date
- May 2013
- Posts
- 5
- Rep Power
- 0
Re: Automatic subtitle generation for sound in video files
Thanks
But what if you don't have a subtitle and want to generate one from scratch using sphinx4 and java
- Yesterday, 12:43 PM #15
Member
- Join Date
- Feb 2013
- Posts
- 11
- Rep Power
- 0
Similar Threads
-
Automatic Stringbuilder code generation
By JeffB in forum Reviews / AdvertisingReplies: 0Last Post: 10-23-2012, 01:53 AM -
Storing video files in mysql database
By mrvigneshmca in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 09-27-2009, 03:50 PM -
How to play video files in Java
By Hasan in forum Advanced JavaReplies: 11Last Post: 04-26-2009, 11:57 PM -
dividing video files into frames..
By swathi palla in forum AWT / SwingReplies: 0Last Post: 02-15-2009, 03:39 PM -
Play sound and Video in a Mobile Phone
By luisarca in forum Sun Java Wireless ToolkitReplies: 2Last Post: 05-23-2007, 10:52 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks