FS-11265 #resolve add detectSpeech and playAndDetectSpeech

This commit is contained in:
Seven Du
2018-07-21 23:55:24 +08:00
committed by Mike Jerris
parent 3f51f3b4e4
commit ae4e48fa15
9 changed files with 93 additions and 0 deletions
+1
View File
@@ -42,6 +42,7 @@
%newobject Dbh;
%newobject API::execute;
%newobject API::executeString;
%newobject CoreSession::playAndDetectSpeech;
%include "typemaps.i"
%apply int *OUTPUT { int *len };
@@ -128,6 +128,10 @@ class CoreSession {
int max_digits,
int max_tries,
int timeout, char *terminators, char *audio_files, char *bad_input_audio_files, char *dtmf_buf, char *digits_regex);
int playAndDetectSpeech(char *file, char *engine, char *grammar);
void detectSpeech(char *arg0, char * = NULL, char *arg2 = NULL, char *arg3 = NULL);
int streamFile(char *file, int starting_sample_count = 0);