amaurycrickx / recognito

Java Speaker Recognition Framework
Apache License 2.0
191 stars 102 forks source link

test script is not working #1

Closed Jeahan closed 10 years ago

Jeahan commented 10 years ago

I found recognito framework for speaker recognition. I want to test recognito. but test script is not working.

First, "myUser/userDao" variable is not defined.

Usage)

// handle persistence the way you want myUser.setVocalPrint(print);

userDao.saveOrUpdate(myUser);

amaurycrickx commented 10 years ago

Dear Jeahan,

Indeed, the myUser and userDao variables are not defined :-)

This program excerpt aims at showing you how you'd use the framework in your own application.

The classes User and UserDao are yours to create, as I wouldn't know how to define them usefully for all purposes. (DAO is an acronym meaning Data Access Object, most often than not, this means saving or retrieving from a database, in this particular case, User objects)

The comment just above tells you "handle persistence the way you want". This means you may choose to save the user's vocal print together with the User in a database or in a flat file so that you don't have to restart the training phase each time you start up the application.

For a simple test run, you'll probably want to skip these lines. What I did with the 500 speakers is put them in a Map and serialize to disk. The key was the name of the speaker and the value, the vocal print.

Thanks for giving it a shot :-)

I still have to write a user guide and I'll most probably add a sample test application for a quick starter kit.

If you're facing any further problems, please note I'm watching the voice-recognition tag on Stackoverflow. (this is the tag relating to speaker recognition, and there are not much people asking about it, so usually I don't miss them...)

Cheers !

Amaury

amaurycrickx commented 10 years ago

I now have commented out those lines, so the intent should be more clear