diff --git a/src/include/switch_core.h b/src/include/switch_core.h index 6c220e469b..fe54a0c527 100644 --- a/src/include/switch_core.h +++ b/src/include/switch_core.h @@ -814,8 +814,8 @@ SWITCH_DECLARE(switch_status) switch_core_speech_feed_tts(switch_speech_handle * */ SWITCH_DECLARE(switch_status) switch_core_speech_read_tts(switch_speech_handle *sh, void *data, - unsigned int *datalen, - unsigned int *rate, + size_t *datalen, + size_t *rate, switch_speech_flag *flags); /*! \brief Close an open speech handle diff --git a/src/include/switch_module_interfaces.h b/src/include/switch_module_interfaces.h index d7277873ed..3f42b4d3eb 100644 --- a/src/include/switch_module_interfaces.h +++ b/src/include/switch_module_interfaces.h @@ -300,8 +300,8 @@ struct switch_speech_interface { /*! function to read audio from the TTS*/ switch_status (*speech_read_tts)(switch_speech_handle *sh, void *data, - unsigned int *datalen, - unsigned int *rate, + size_t *datalen, + size_t *rate, switch_speech_flag *flags); const struct switch_speech_interface *next; diff --git a/src/switch_core.c b/src/switch_core.c index fcb6b6001b..c049509772 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -523,8 +523,8 @@ SWITCH_DECLARE(switch_status) switch_core_speech_feed_tts(switch_speech_handle * SWITCH_DECLARE(switch_status) switch_core_speech_read_tts(switch_speech_handle *sh, void *data, - unsigned int *datalen, - unsigned int *rate, + size_t *datalen, + size_t *rate, switch_speech_flag *flags) { assert(sh != NULL);