mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 01:02:12 +00:00
clean up
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9010 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
995f477475
commit
5a154e0acd
@ -25,10 +25,8 @@
|
|||||||
*
|
*
|
||||||
* Brian West <brian@freeswitch.org>
|
* Brian West <brian@freeswitch.org>
|
||||||
*
|
*
|
||||||
*
|
|
||||||
* mod_flite.c -- Flite Interface
|
* mod_flite.c -- Flite Interface
|
||||||
*
|
*
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <switch.h>
|
#include <switch.h>
|
||||||
@ -49,7 +47,6 @@ static struct {
|
|||||||
cst_voice *v16;
|
cst_voice *v16;
|
||||||
} globals;
|
} globals;
|
||||||
|
|
||||||
|
|
||||||
struct flite_data {
|
struct flite_data {
|
||||||
cst_voice *v;
|
cst_voice *v;
|
||||||
cst_wave *w;
|
cst_wave *w;
|
||||||
@ -62,7 +59,6 @@ typedef struct flite_data flite_t;
|
|||||||
|
|
||||||
static switch_status_t flite_speech_open(switch_speech_handle_t *sh, const char *voice_name, int rate, switch_speech_flag_t *flags)
|
static switch_status_t flite_speech_open(switch_speech_handle_t *sh, const char *voice_name, int rate, switch_speech_flag_t *flags)
|
||||||
{
|
{
|
||||||
|
|
||||||
flite_t *flite = switch_core_alloc(sh->memory_pool, sizeof(*flite));
|
flite_t *flite = switch_core_alloc(sh->memory_pool, sizeof(*flite));
|
||||||
|
|
||||||
if (rate == 8000) {
|
if (rate == 8000) {
|
||||||
@ -96,7 +92,6 @@ static switch_status_t flite_speech_close(switch_speech_handle_t *sh, switch_spe
|
|||||||
|
|
||||||
static switch_status_t flite_speech_feed_tts(switch_speech_handle_t *sh, char *text, switch_speech_flag_t *flags)
|
static switch_status_t flite_speech_feed_tts(switch_speech_handle_t *sh, char *text, switch_speech_flag_t *flags)
|
||||||
{
|
{
|
||||||
|
|
||||||
flite_t *flite = (flite_t *) sh->private_info;
|
flite_t *flite = (flite_t *) sh->private_info;
|
||||||
|
|
||||||
flite->w = flite_text_to_wave(text, flite->v);
|
flite->w = flite_text_to_wave(text, flite->v);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user