mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
add param setting function to asr
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16600 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -2582,6 +2582,15 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_detect_speech_load_grammar(switch_cor
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(void) switch_ivr_set_param_detect_speech(switch_core_session_t *session, const char *name, const char *val)
|
||||
{
|
||||
struct speech_thread_handle *sth = switch_channel_get_private(switch_core_session_get_channel(session), SWITCH_SPEECH_KEY);
|
||||
|
||||
if (sth->ah && name && val) {
|
||||
switch_core_asr_text_param(sth->ah, (char *) name, val);
|
||||
}
|
||||
}
|
||||
|
||||
SWITCH_DECLARE(switch_status_t) switch_ivr_detect_speech_unload_grammar(switch_core_session_t *session, const char *name)
|
||||
{
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
|
Reference in New Issue
Block a user