1
votes

Sphinx seems to be only real option for Java speech recognition. Documentation is sparse and it requires a high-level of domain knowledge. I used their example of a starting program and it works for one file and not for another, extremely similar, file. What is the difference? What is the secret to getting it to work more accurately.

This file, https://www.opdsupport.com/downloads/miscellaneous/sample-audio-files/52-welcome-wav/download works, but this one, https://www.opdsupport.com/downloads/miscellaneous/sample-audio-files/49-longwelcome-wav/download does not.
I noticed that the non-working file had a different sample rate, so I used a program to convert it to 16000, but still no luck

1
Yes, I also noticed that the file that didn't work had 2 channels, so I also converted that to 1 and it still doesn't seem to work (I would attach the modified file, but there doesn't seem to be a way to do that) - Peter Kronenberg
@PaulProgrammer Turns out you're right. The conversion method I used didn't work. I tried converting with SOX to 16000 sample rate and 1 channel and that fixed the problem. Was also successfully able to convert an mp3 to a wav file. - Peter Kronenberg

1 Answers

1
votes

Make sure to inspect the file carefully. According to the docs your file must be either 8khz or 16khz and mono only. There are many tools available to do this -- I use audacity, but probably overkill for just a basic conversion like this.