switch_status (*speech_open)(switch_speech_handle *sh,
unsigned int flags);
/*! function to close the speech interface */
- switch_status (*speech_close)(switch_speech_handle *);
+ switch_status (*speech_close)(switch_speech_handle *, unsigned int *flags);
/*! function to feed audio to the ASR*/
switch_status (*speech_feed_asr)(switch_speech_handle *sh, void *data, unsigned int *len, int rate, unsigned int *flags);
/*! function to read text from the ASR*/
SWITCH_DECLARE(switch_status) switch_core_speech_close(switch_speech_handle *sh, unsigned int *flags)
{
- return sh->speech_interface->speech_close(sh);
+ return sh->speech_interface->speech_close(sh, flags);
}
SWITCH_DECLARE(switch_status) switch_core_timer_init(switch_timer *timer, char *timer_name, int interval, int samples,
channel = switch_core_session_get_channel(session);
assert(channel != NULL);
-#ifdef WTF
- data->running = 0;
- return NULL;
-#endif
-
while (data->running > 0) {
switch (switch_core_session_read_frame(session, &read_frame, -1, stream_id)) {
case SWITCH_STATUS_SUCCESS: