I want to build a Java Swing application which takes a song and plays that song. At that time, the lyrics of the song will be displayed in a .txt file.Lyrics will be caught from the sound of the songs. My songs are .mp3 and .wav format. How can I do that using Java? What api/plugin is needed for that purpose?
Wow, that sounds hard to do. The only thing I can think of is trying to integrate the Java Speech API somehow. But I'm not sure how, or even if it is possible. [ February 05, 2007: Message edited by: Paul Sturrock ]
Yes, not only hard, and not only in Java, but impossible in any language. The state of speech recognition technology is nowhere near able to recognize lyrics in music -- clear, distinct speech on a silent background is hard enough, and context-free recognition is only possible with speaker-specific training. You're talking about science fiction here
As another option, maybe you can use the filename of your mp3 as a search criteria. I wouldn't be surprised if there is a web service somewhere that will return lyrics based on artists and/or song titles. It may not be accurate, but it is more doable.
Hmm. There is no capability of Flash I know of to properly recognize speach - so I can only assume the applications you have seen already had the lyrics compiled in the swf. That is unless you nkow different - If so, I'd be interested if you could post a link?
Evan Cristofori: "What the guys said about flash... it is the way to go."
Guru dhaasan: "so when the song is played the lyrics will be displayed..."
You are missing the point. Soumya wrote: "Lyrics will be caught from the sound of the songs." So Soumya wants a program that can convert sound to text. This is totally impossible with current computer technology. It is impossible in Java, it is impossible in Flash, it is impossible in any programming language.
Letting the computer recognise spoken text is very difficult. Microsoft Windows Vista has this built-in, but when Microsoft did a demonstration it went totally wrong. Soumya is talking about recognising the lyrics in a song, which is even much more difficult than spoken text, because you have music in the background and the voice is constantly changing pitch and speed.
What Soumya wants is indeed science fiction as Ernest said. Come back in 50 years and ask your question again - by that time we maybe have super advanced thinking robots that can do this for you....