mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
ivr stuff (part 1)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1573 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -917,6 +917,14 @@ SWITCH_DECLARE(void) switch_core_speech_text_param_tts(switch_speech_handle_t *s
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_core_speech_numeric_param_tts(switch_speech_handle_t *sh, char *param, int val);
|
||||
|
||||
/*!
|
||||
\brief Set a float parameter on a TTS handle
|
||||
\param sh the speech handle
|
||||
\param param the parameter
|
||||
\param val the value
|
||||
*/
|
||||
SWITCH_DECLARE(void) switch_core_speech_float_param_tts(switch_speech_handle_t *sh, char *param, double val);
|
||||
|
||||
/*!
|
||||
\brief Read rendered audio from the TTS module
|
||||
\param sh the speech handle to read
|
||||
|
||||
@@ -330,6 +330,7 @@ struct switch_speech_interface {
|
||||
void (*speech_flush_tts)(switch_speech_handle_t *sh);
|
||||
void (*speech_text_param_tts)(switch_speech_handle_t *sh, char *param, char *val);
|
||||
void (*speech_numeric_param_tts)(switch_speech_handle_t *sh, char *param, int val);
|
||||
void (*speech_float_param_tts)(switch_speech_handle_t *sh, char *param, double val);
|
||||
|
||||
const struct switch_speech_interface *next;
|
||||
};
|
||||
@@ -345,6 +346,9 @@ struct switch_speech_handle {
|
||||
char *name;
|
||||
/*! The Rate*/
|
||||
uint32_t rate;
|
||||
uint32_t speed;
|
||||
char voice[80];
|
||||
char engine[80];
|
||||
/*! the handle's memory pool */
|
||||
switch_memory_pool_t *memory_pool;
|
||||
/*! private data for the format module to store handle specific info */
|
||||
|
||||
@@ -424,6 +424,7 @@ SWITCH_SPEECH_FLAG_HASTEXT = (1 << 2) - Interface is has text to read.
|
||||
SWITCH_SPEECH_FLAG_PEEK = (1 << 3) - Read data but do not erase it.
|
||||
SWITCH_SPEECH_FLAG_FREE_POOL = (1 << 4) - Free interface's pool on destruction.
|
||||
SWITCH_SPEECH_FLAG_BLOCKING = (1 << 5) - Indicate that a blocking call is desired
|
||||
SWITCH_SPEECH_FLAG_PAUSE = (1 << 6) - Pause toggle for playback
|
||||
</pre>
|
||||
*/
|
||||
typedef enum {
|
||||
@@ -433,6 +434,7 @@ typedef enum {
|
||||
SWITCH_SPEECH_FLAG_PEEK = (1 << 3),
|
||||
SWITCH_SPEECH_FLAG_FREE_POOL = (1 << 4),
|
||||
SWITCH_SPEECH_FLAG_BLOCKING = (1 << 5),
|
||||
SWITCH_SPEECH_FLAG_PAUSE = (1 << 6)
|
||||
|
||||
} switch_speech_flag_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user