Searched refs:transcription (Results 1 - 19 of 19) sorted by relevance

/external/srec/srec/crec/
H A Dtext_parser.c34 const char* transcription, int tlen)
42 if ( strlen ( transcription ) >= MAX_LOCAL_LEN - 1)
44 PLogError("Transcription too long [%s]\n", transcription);
52 wd = transcription;
55 for (wd = transcription + tlen - 1; wd > transcription; wd--)
69 PLogError("Word too long in transcription [%s]\n", transcription);
101 if (wd == transcription && whether_final_atok) return PARSE_PASS;
102 if (wd == transcription) retur
33 check_word_path(srec_context* context, arc_token* atok, const char* transcription, int tlen) argument
110 FST_CheckPath_Simple(srec_context* context, const char* transcription) argument
122 FST_CheckPath_Complex(srec_context* context, const char* transcription, char* literal, size_t max_literal_len) argument
192 FST_CheckPath(srec_context* context, const char* transcription, char* literal, size_t max_literal_len) argument
[all...]
H A Dword_lattice.c230 int sprint_word_token_backtrace(char *transcription, int len, srec* rec, wtokenID wtoken_index) argument
236 char *tr_end = transcription;
244 *transcription = 0;
265 *transcription = 0;
275 if (wlen + tr_end - transcription + 1 >= len)
277 *transcription = 0;
284 while (from_p >= transcription) *(to_p--) = *(from_p--);
290 to_p = transcription;
297 *transcription = 0;
444 int srec_get_top_choice_transcription(multi_srec* recm, char *transcription, in argument
520 char transcription[MAX_LEN]; local
[all...]
/external/srec/srec/include/
H A Dword_lattice.h44 int srec_get_top_choice_transcription(multi_srec* rec, char *transcription, int len, int whether_strip_slot_markers) ;
46 int sprint_word_token_backtrace(char *transcription, int len, srec* rec, wtokenID wtoken_index);
H A Dsrec_context.h217 int FST_CheckPath(srec_context* context, const char* transcription,
/external/srec/srec/Semproc/include/
H A DSR_SemanticProcessor.h47 ESR_ReturnCode(*checkParse)(struct SR_SemanticProcessor_t* self, SR_SemanticGraph* semgraph, const LCHAR* transcription, SR_SemanticResult** result, size_t* resultCount);
H A DSR_SemanticProcessorImpl.h66 SREC_SEMPROC_API ESR_ReturnCode SR_SemanticProcessor_CheckParse(SR_SemanticProcessor* self, SR_SemanticGraph* semgraph, const LCHAR* transcription, SR_SemanticResult** result, size_t* resultCount);
/external/srec/srec/Nametag/src/
H A DNametagImpl.c36 LCHAR transcription[MAX_STRING_LEN]; local
60 rc = result->getValue(result, 0, L("meaning"), transcription, &len);
69 len = LSTRLEN(transcription)+1;
70 rc = SR_NametagCreateFromValue(id, transcription, (int)len, self);
76 LCHAR* long_pron = transcription;
/external/srec/srec/Grammar/include/
H A DSR_Grammar.h107 * Indicates if a transcription is a valid result of a Grammar rule.
110 * @param transcription Transcription value
113 * @return ESR_INVALID_ARGUMENT if self or transcription are null; ESR_INVALID_STATE if an internal error has occured.
115 ESR_ReturnCode(*checkParse)(struct SR_Grammar_t* self, const LCHAR* transcription, SR_SemanticResult** result, size_t* resultCount);
500 * Checks if transcription is parsable by the grammar.
503 * @param transcription transcription to be checked
506 * @return ESR_INVALID_ARGUMENT if self, transcription are null; ESR_INVALID_STATE if an internal error has occured.
508 SREC_GRAMMAR_API ESR_ReturnCode SR_GrammarCheckParse(SR_Grammar* self, const LCHAR* transcription, SR_SemanticResult** result, size_t* resultCount);
517 SREC_GRAMMAR_API ESR_ReturnCode SR_GrammarAllowOnly(SR_Grammar* self, const char* transcription);
[all...]
H A DSR_GrammarImpl.h170 SREC_GRAMMAR_API ESR_ReturnCode SR_Grammar_CheckParse(SR_Grammar* self, const LCHAR* transcription, SR_SemanticResult** result, size_t* resultCount);
/external/srec/srec/Grammar/src/
H A DSR_Grammar.c173 ESR_ReturnCode SR_GrammarCheckParse(SR_Grammar* self, const LCHAR* transcription, SR_SemanticResult** result_void, size_t* resultCount) argument
181 return self->checkParse(self, transcription, result, resultCount);
H A DSR_GrammarImpl.c646 ESR_ReturnCode SR_Grammar_CheckParse(SR_Grammar* self, const LCHAR* transcription, SR_SemanticResult** result, size_t* resultCount) argument
652 if (transcription == NULL)
662 if (CA_CheckTranscription(impl->syntax, transcription, 0) == 0)
668 rc = impl->semproc->checkParse(impl->semproc, impl->semgraph, transcription, result, resultCount);
673 strcpy(copy_of_trans, transcription);
683 ESR_ReturnCode SR_GrammarAllowOnly(SR_Grammar* self, const char* transcription) argument
693 strcpy(copy_of, transcription);
719 i, wdid, transcription); */
/external/srec/srec/ca/
H A Dsyn_srec.c333 int CA_CheckTranscription(CA_Syntax *hSyntax, const char *transcription, int no) argument
339 rc = FST_CheckPath(context, transcription, literal, max_literal_len);
340 if (rc == 0) strcpy((char*)transcription, literal);
/external/srec/srec/test/SRecTest/src/
H A DSRecTest.c149 LCHAR transcription [MAX_LINE_LENGTH]; member in struct:ApplicationData_t
2257 LSPRINTF ( data->raw_waveform_filename, L("a%lu__%s.raw"), (unsigned long)recognition_count, data->transcription );
2306 LPRINTF ( L("TRANSCRIPTION : '%s'\n"), data->transcription );
2590 LPRINTF(L("TRANSCRIPTION : '%s'\n"), data->transcription);
2625 int srec_test_log_reco_from_file_data ( SR_Grammar *active_grammar, ApplicationData *data, LCHAR *waveform, LCHAR *bos, LCHAR *eos, LCHAR *transcription )
2634 LSPRINTF ( data->transcription, "%s", transcription );
2635 transcription_length = LSTRLEN ( data->transcription );
2637 while ( ( *( data->transcription + transcription_length - 1 ) == '\n' ) ||
2638 ( *( data->transcription
2696 LCHAR *transcription; local
2790 LCHAR *transcription; local
[all...]
/external/srec/srec/test/SRecTestAudio/src/
H A DSRecTestAudio.c148 LCHAR transcription [MAX_LINE_LENGTH]; member in struct:ApplicationData_t
1950 LSPRINTF ( data->raw_waveform_filename, L("a%lu__%s.raw"), (unsigned long)recognition_count, data->transcription );
2004 LPRINTF ( L("TRANSCRIPTION : '%s'\n"), data->transcription );
2263 LPRINTF(L("TRANSCRIPTION : '%s'\n"), data->transcription);
2298 int srec_test_log_reco_from_file_data ( SR_Grammar *active_grammar, ApplicationData *data, LCHAR *waveform, LCHAR *bos, LCHAR *eos, LCHAR *transcription )
2307 LSPRINTF ( data->transcription, "%s", transcription );
2308 transcription_length = LSTRLEN ( data->transcription );
2310 while ( ( *( data->transcription + transcription_length - 1 ) == '\n' ) ||
2311 ( *( data->transcription
[all...]
/external/srec/srec/Recognizer/include/
H A DSR_Recognizer.h463 * @param transcription Transcription for the utterance
466 * @param isInvocab True if the transcription is accepted by the grammar, False otherwise
471 const LCHAR* transcription,
873 * @param transcription Transcription for the utterance
876 * @param isInvocab True if the transcription is accepted by the grammar, False otherwise
881 const LCHAR* transcription,
H A DSR_RecognizerImpl.h145 /* sets the start offset and read_size at the end of recognition when endpointed transcription is known */
523 const LCHAR* transcription,
/external/srec/srec/Recognizer/src/
H A DRecognizer.c359 const LCHAR* transcription,
369 return self->logWaveformData(self, waveformFilename, transcription, bos, eos, isInvocab);
357 SR_RecognizerLogWaveformData(SR_Recognizer* self, const LCHAR* waveformFilename, const LCHAR* transcription, const double bos, const double eos, ESR_BOOL isInvocab) argument
H A DRecognizerImpl.c2024 /* now that we have an endpointed result, we can parse the result transcription
3492 const LCHAR* transcription, const double bos,
3501 CHKLOG(rc, SR_EventLogToken_AUDIO(impl->eventLog, impl->osi_log_level, L("TRANS"), transcription));
3491 SR_RecognizerLogWaveformDataImpl(SR_Recognizer* self, const LCHAR* waveformFilename, const LCHAR* transcription, const double bos, const double eos, ESR_BOOL isInvocab) argument
/external/srec/srec_jni/
H A Dandroid_speech_srec_Recognizer.cpp420 (JNIEnv *env, jclass clazz, jlong grammar, jstring transcription) {
421 const char* tr = env->GetStringUTFChars(transcription, 0);
423 env->ReleaseStringUTFChars(transcription, tr);
419 Java_android_speech_srec_Recognizer_SR_1GrammarAllowOnly(JNIEnv *env, jclass clazz, jlong grammar, jstring transcription) argument

Completed in 191 milliseconds