• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Lyrics of a song using Java

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?

Please help me.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
author and iconoclast
Posts: 24204
44
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you want to do it then Flash would be a better option!!
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Kaustubh Patil:
If you want to do it then Flash would be a better option!!



How does it make a difference whether Java or Flash are used?
 
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ulf Dittmer:


How does it make a difference whether Java or Flash are used?



Time to failure is diminished?
 
author
Posts: 23928
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Henry
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What the guys said about flash... it is the way to go.

In flash you could simply import the song and then use the timeline to have your words come up in sync with the music.

Give it a try...
 
Ranch Hand
Posts: 126
VI Editor Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yeah...... I too saw some of the Tamil language songs given a touch using Flash. so when the song is played the lyrics will be displayed......
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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....
 
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please check your PM.
 
So I left, I came home, and I ate some pie. And then I read this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic