mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
add mod_spidermonkey to msvc build, tweak mod_spidermonkey warnings, fix tts interface.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@686 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -801,7 +801,7 @@ SWITCH_DECLARE(switch_status) switch_core_speech_interpret_asr(switch_speech_han
|
||||
\param flags flags in/out for fine tuning
|
||||
\return SWITCH_STATUS_SUCCESS with len adjusted to the bytes written if successful
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_core_speech_feed_tts(switch_speech_handle *sh, char *text, unsigned int *flags);
|
||||
SWITCH_DECLARE(switch_status) switch_core_speech_feed_tts(switch_speech_handle *sh, char *text, switch_speech_flag *flags);
|
||||
|
||||
/*!
|
||||
\brief Read rendered audio from the TTS module
|
||||
@@ -816,14 +816,14 @@ SWITCH_DECLARE(switch_status) switch_core_speech_feed_tts(switch_speech_handle *
|
||||
void *data,
|
||||
unsigned int *datalen,
|
||||
unsigned int *rate,
|
||||
unsigned int *flags);
|
||||
switch_speech_flag *flags);
|
||||
/*!
|
||||
\brief Close an open speech handle
|
||||
\param sh the speech handle to close
|
||||
\param flags flags in/out for fine tuning
|
||||
\return SWITCH_STATUS_SUCCESS if the file handle was closed
|
||||
*/
|
||||
SWITCH_DECLARE(switch_status) switch_core_speech_close(switch_speech_handle *sh, unsigned int *flags);
|
||||
SWITCH_DECLARE(switch_status) switch_core_speech_close(switch_speech_handle *sh, switch_speech_flag *flags);
|
||||
///\}
|
||||
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ struct switch_frame {
|
||||
/*! the entire size of the buffer */
|
||||
size_t buflen;
|
||||
/*! the number of audio samples present (audio only) */
|
||||
int samples;
|
||||
size_t samples;
|
||||
/*! the rate of the frame */
|
||||
int rate;
|
||||
};
|
||||
|
||||
@@ -290,19 +290,19 @@ struct switch_speech_interface {
|
||||
int rate,
|
||||
unsigned int flags);
|
||||
/*! function to close the speech interface */
|
||||
switch_status (*speech_close)(switch_speech_handle *, unsigned int *flags);
|
||||
switch_status (*speech_close)(switch_speech_handle *, switch_speech_flag *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_status (*speech_interpret_asr)(switch_speech_handle *sh, char *buf, unsigned int buflen, unsigned int *flags);
|
||||
/*! function to feed text to the TTS*/
|
||||
switch_status (*speech_feed_tts)(switch_speech_handle *sh, char *text, unsigned int *flags);
|
||||
switch_status (*speech_feed_tts)(switch_speech_handle *sh, char *text, switch_speech_flag *flags);
|
||||
/*! function to read audio from the TTS*/
|
||||
switch_status (*speech_read_tts)(switch_speech_handle *sh,
|
||||
void *data,
|
||||
unsigned int *datalen,
|
||||
unsigned int *rate,
|
||||
unsigned int *flags);
|
||||
switch_speech_flag *flags);
|
||||
|
||||
const struct switch_speech_interface *next;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user