mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-13 06:44:14 +00:00
FS-11265 #resolve add detectSpeech and playAndDetectSpeech
This commit is contained in:
1 parent
3f51f3b4e4
commit
ae4e48fa15
9 files changed
+93
No files matched your search
@@ -13,6 +13,9 @@
|
||||
%newobject CoreSession;
|
||||
%newobject Event;
|
||||
%newobject Stream;
|
||||
%newobject API::execute;
|
||||
%newobject API::executeString;
|
||||
%newobject CoreSession::playAndDetectSpeech;
|
||||
|
||||
|
||||
// I thought we were using swig because it's easier than the alternatives :-)
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
|
||||
@@ -84,6 +84,7 @@ char * SWIG_csharp_string_callback(const char * str) {
|
||||
%newobject Stream;
|
||||
%newobject API::execute;
|
||||
%newobject API::executeString;
|
||||
%newobject CoreSession::playAndDetectSpeech;
|
||||
|
||||
// Allow bitwise compare on flag fields
|
||||
%typemap(csclassmodifiers) session_flag_t "[System.Flags] public enum"
|
||||
|
||||
@@ -45,6 +45,9 @@ typedef unsigned long in_addr_t;
|
||||
%newobject CoreSession;
|
||||
%newobject Event;
|
||||
%newobject Stream;
|
||||
%newobject API::execute;
|
||||
%newobject API::executeString;
|
||||
%newobject CoreSession::playAndDetectSpeech;
|
||||
|
||||
#define SWITCH_DECLARE(type) type
|
||||
#define SWITCH_DECLARE_NONSTD(type) type
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
%newobject Stream;
|
||||
%newobject API::execute;
|
||||
%newobject API::executeString;
|
||||
%newobject CoreSession::playAndDetectSpeech;
|
||||
|
||||
/** insert the following includes into generated code so it compiles */
|
||||
%{
|
||||
|
||||
@@ -14,6 +14,9 @@
|
||||
%newobject CoreSession;
|
||||
%newobject Event;
|
||||
%newobject Stream;
|
||||
%newobject API::execute;
|
||||
%newobject API::executeString;
|
||||
%newobject CoreSession::playAndDetectSpeech;
|
||||
|
||||
/** insert the following includes into generated code so it compiles */
|
||||
%{
|
||||
|
||||
Reference in new issue
Block a user