cmusphinx / sphinx4

Pure Java speech recognition library
cmusphinx.sourceforge.net
Other
1.41k stars 586 forks source link

Loading a previously saved Transform from a file in to Recognizer is not working..... #40

Closed G10DRAS closed 8 years ago

G10DRAS commented 9 years ago

Using code from TranscriberDemo.java I successfully saved Transform in to a file as follows:

// Transform represents the speech profile Transform transform = stats.createTransform(); transform.store("MyVoiceTransform", 0);

But when I load Transform from file into the Recognizer, code didn't works. I debug the code and found issue with Scanner object in load() of Transform Class. Scanner is not working as expected, ie not able to parse file. I use the following code to load Transform from file in to Recognizer.

StreamSpeechRecognizer recognizer = new StreamSpeechRecognizer(configuration); recognizer.loadTransform("MyVoiceTransform", 1);

G10DRAS commented 8 years ago

Any update on the issue ? Thanks in advance.

nshmyrev commented 8 years ago

Sorry, I didn't look yet. Thank you for the remainder.

Arinerron commented 8 years ago

I'm having the same issue. Any thoughts?

G10DRAS commented 8 years ago

Hello Nickolay, Its a great feature, unfortunatly not working. Is there any thing equivalent to Transform Load, avalable that we can levarage, Thanks

nshmyrev commented 8 years ago

Hi

I actually fixed this probably in https://github.com/cmusphinx/sphinx4/commit/ffa62f865b258623926ed2bd23d5015570161c9d . I just need some more tests.

G10DRAS commented 8 years ago

Good news. I will give it a try in a day or two.

Thank you Nickolay.

Arinerron commented 8 years ago

Yay, thanks :grinning: