mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-17 01:31:55 +00:00
FS-11265 #resolve add detectSpeech and playAndDetectSpeech
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user