mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-08 20:43:51 +00:00
inital checkin of unimrcp svn revision 985 from http://unimrcp.googlecode.com/svn/trunk/
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13790 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
ec90221783
commit
da925bddf8
349 files changed
+47866
No files matched your search
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Copyright 2008 Arsen Chaloyan
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __DEMO_APPLICATION_H__
|
||||
#define __DEMO_APPLICATION_H__
|
||||
|
||||
/**
|
||||
* @file demo_application.h
|
||||
* @brief Demo MRCP Application
|
||||
*/
|
||||
|
||||
#include "mrcp_application.h"
|
||||
|
||||
APT_BEGIN_EXTERN_C
|
||||
|
||||
/** Demo application declaration */
|
||||
typedef struct demo_application_t demo_application_t;
|
||||
|
||||
/** Demo application */
|
||||
struct demo_application_t {
|
||||
/** MRCP application */
|
||||
mrcp_application_t *application;
|
||||
/** Demo framework */
|
||||
void *framework;
|
||||
|
||||
/** Virtual run method */
|
||||
apt_bool_t (*run)(demo_application_t *application, const char *profile);
|
||||
/** Virtual app_message handler */
|
||||
apt_bool_t (*handler)(demo_application_t *application, const mrcp_app_message_t *app_message);
|
||||
};
|
||||
|
||||
|
||||
/** Create demo synthesizer application */
|
||||
demo_application_t* demo_synth_application_create(apr_pool_t *pool);
|
||||
|
||||
/** Create demo recognizer application */
|
||||
demo_application_t* demo_recog_application_create(apr_pool_t *pool);
|
||||
|
||||
/** Create demo bypass media application */
|
||||
demo_application_t* demo_bypass_application_create(apr_pool_t *pool);
|
||||
|
||||
/** Create demo resource discover application */
|
||||
demo_application_t* demo_discover_application_create(apr_pool_t *pool);
|
||||
|
||||
|
||||
APT_END_EXTERN_C
|
||||
|
||||
#endif /*__DEMO_APPLICATION_H__*/
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2008 Arsen Chaloyan
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __DEMO_FRAMEWORK_H__
|
||||
#define __DEMO_FRAMEWORK_H__
|
||||
|
||||
/**
|
||||
* @file demo_framework.h
|
||||
* @brief Demo MRCP Application Framework
|
||||
*/
|
||||
|
||||
#include "mrcp_types.h"
|
||||
|
||||
APT_BEGIN_EXTERN_C
|
||||
|
||||
/** Opaque demo framework declaration */
|
||||
typedef struct demo_framework_t demo_framework_t;
|
||||
|
||||
/**
|
||||
* Create demo framework.
|
||||
*/
|
||||
demo_framework_t* demo_framework_create(apt_dir_layout_t *dir_layout);
|
||||
|
||||
/**
|
||||
* Run demo application.
|
||||
* @param framework the framework to run application for
|
||||
* @param app_name the name of the application to run
|
||||
* @param profile_name the name of the profile to use
|
||||
*/
|
||||
apt_bool_t demo_framework_app_run(demo_framework_t *framework, const char *app_name, const char *profile_name);
|
||||
|
||||
/**
|
||||
* Destroy demo framework.
|
||||
* @param framework the framework to destroy
|
||||
*/
|
||||
apt_bool_t demo_framework_destroy(demo_framework_t *framework);
|
||||
|
||||
APT_END_EXTERN_C
|
||||
|
||||
#endif /*__DEMO_FRAMEWORK_H__*/
|
||||
@@ -0,0 +1,43 @@
|
||||
/*
|
||||
* Copyright 2008 Arsen Chaloyan
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __DEMO_UTIL_H__
|
||||
#define __DEMO_UTIL_H__
|
||||
|
||||
/**
|
||||
* @file demo_util.h
|
||||
* @brief Demo MRCP Utilities
|
||||
*/
|
||||
|
||||
#include "mrcp_application.h"
|
||||
|
||||
APT_BEGIN_EXTERN_C
|
||||
|
||||
/** Create demo MRCP message (SPEAK request) */
|
||||
mrcp_message_t* demo_speak_message_create(mrcp_session_t *session, mrcp_channel_t *channel, const apt_dir_layout_t *dir_layout);
|
||||
|
||||
/** Create demo MRCP message (DEFINE-GRAMMAR request) */
|
||||
mrcp_message_t* demo_define_grammar_message_create(mrcp_session_t *session, mrcp_channel_t *channel, const apt_dir_layout_t *dir_layout);
|
||||
/** Create demo MRCP message (RECOGNIZE request) */
|
||||
mrcp_message_t* demo_recognize_message_create(mrcp_session_t *session, mrcp_channel_t *channel, const apt_dir_layout_t *dir_layout);
|
||||
|
||||
|
||||
/** Create demo RTP termination descriptor */
|
||||
mpf_rtp_termination_descriptor_t* demo_rtp_descriptor_create(apr_pool_t *pool);
|
||||
|
||||
APT_END_EXTERN_C
|
||||
|
||||
#endif /*__DEMO_UTIL_H__*/
|
||||
Reference in new issue
Block a user