This example does Sphinx4 automatic speech recognition using a statistical. Note that it is important to put your "require" statements before your "include" statements. JAR file and some necessary language and acoustic models to do Sphinx-based. Include_class '.props.ConfigurationManager' But if you need to include many Java jar files into your JRuby script at one time, here's a very cool way to do that: Dir.each Where the jar file 'sphinx4.jar' is in a local subdirectory named lib, which is cool. You can include one Java jar file in your JRuby script path very easily, like this: require 'lib/sphinx4.jar' Help make Scala and Functional Programming free! Click here to learn about this Kickstarter project.Įver need to include a Java jar file in a JRuby script? As I work to convert my Mac speech recognition server to JRuby, the first task I need to tackle is to include the Sphinx-4 jar files in my JRuby path.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
June 2023
Categories |