Home | History | Annotate | Download | only in srec_jni

Lines Matching refs:grammar

191         (JNIEnv *env, jclass clazz, jint recognizer, jint grammar, jstring ruleName) {
193 checkEsrError(env, SR_RecognizerSetupRule((SR_Recognizer*)recognizer, (SR_Grammar*)grammar, rn));
205 (JNIEnv *env, jclass clazz, jint recognizer, jint grammar, jstring ruleName, jint weight) {
207 checkEsrError(env, SR_RecognizerActivateRule((SR_Recognizer*)recognizer, (SR_Grammar*)grammar, rn, weight));
212 (JNIEnv *env, jclass clazz, jint recognizer, jint grammar, jstring ruleName) {
214 checkEsrError(env, SR_RecognizerDeactivateRule((SR_Recognizer*)recognizer, (SR_Grammar*)grammar, rn));
224 (JNIEnv *env, jclass clazz, jint recognizer, jint grammar, jstring ruleName) {
227 checkEsrError(env, SR_RecognizerIsActiveRule((SR_Recognizer*)recognizer, (SR_Grammar*)grammar, rn, &rtn));
233 (JNIEnv *env, jclass clazz, jint recognizer, jint grammar) {
235 checkEsrError(env, SR_RecognizerCheckGrammarConsistency((SR_Recognizer*)recognizer, (SR_Grammar*)grammar, &rtn));
348 (JNIEnv *env, jclass clazz, jint grammar) {
349 checkEsrError(env, SR_GrammarCompile((SR_Grammar*)grammar));
353 (JNIEnv *env, jclass clazz, jint grammar, jstring slot, jstring word, jstring pronunciation, jint weight, jstring tag) {
362 checkEsrError(env, SR_GrammarAddWordToSlot((SR_Grammar*)grammar, sl, wo, pr, weight, ta));
371 (JNIEnv *env, jclass clazz, jint grammar) {
372 checkEsrError(env, SR_GrammarResetAllSlots((SR_Grammar*)grammar));
376 (JNIEnv *env, jclass clazz, jint grammar, jint vocabulary) {
377 checkEsrError(env, SR_GrammarSetupVocabulary((SR_Grammar*)grammar, (SR_Vocabulary*)vocabulary));
381 (JNIEnv *env, jclass clazz, jint grammar, jint recognizer) {
382 checkEsrError(env, SR_GrammarSetupRecognizer((SR_Grammar*)grammar, (SR_Recognizer*)recognizer));
386 (JNIEnv *env, jclass clazz, jint grammar) {
387 checkEsrError(env, SR_GrammarUnsetupRecognizer((SR_Grammar*)grammar));
392 SR_Grammar* grammar = 0;
393 checkEsrError(env, SR_GrammarCreate(&grammar));
394 return (jint)grammar;
398 (JNIEnv *env, jclass clazz, jint grammar) {
399 checkEsrError(env, SR_GrammarDestroy((SR_Grammar*)grammar));
405 SR_Grammar* grammar = 0;
407 checkEsrError(env, SR_GrammarLoad(fn, &grammar));
409 return (jint)grammar;
413 (JNIEnv *env, jclass clazz, jint grammar, jstring fileName) {
415 checkEsrError(env, SR_GrammarSave((SR_Grammar*)grammar, fn));
420 (JNIEnv *env, jclass clazz, jint grammar, jstring transcription) {
422 checkEsrError(env, SR_GrammarSave((SR_Grammar*)grammar, tr));
427 (JNIEnv *env, jclass clazz, jint grammar) {
428 checkEsrError(env, SR_GrammarAllowAll((SR_Grammar*)grammar));