Reputation: 6753
I have a collection of audio files. Now, I have a piece of text (say a lyric) that i want to match with the audio files? In other words, which audio file contains this lyric. I am curious how we can do this in Java. I would prefer a solution that uses preprocessing of the audio files so that the search is fast. Is there any API that can help?
Upvotes: 0
Views: 817
Reputation: 168835
For that you'd need speech recognition. The JSAPI might be a way to go, but last time I checked, only text-to-speech parts (they are plug-ins provided by 3rd parties) were available, not the other way around.
Upvotes: 0
Reputation: 75406
Recognizing words is hard. Recognizing words in songs is even harder.
It sounds like you are not interested in how to do that, but more to locate things in your song database. If so, the simplest way to do so, may be to locate lyrics for each song based on its title and other meta data, and then just search in that text.
Upvotes: 1