mirror of
https://github.com/jambonz/freeswitch-modules.git
synced 2026-01-25 02:08:27 +00:00
35 lines
574 B
C
35 lines
574 B
C
#ifndef __MOD_GOOGLE_TTS_H__
|
|
#define __MOD_GOOGLE_TTS_H__
|
|
|
|
#include <switch.h>
|
|
#include <speex/speex_resampler.h>
|
|
|
|
typedef struct google_data {
|
|
char *voice_name;
|
|
char *model;
|
|
char *reported_usage;
|
|
char *language;
|
|
char *gender;
|
|
char *credential;
|
|
|
|
/* result data */
|
|
long response_code;
|
|
char *session_id;
|
|
char *cache_filename;
|
|
char *err_msg;
|
|
|
|
int rate;
|
|
int draining;
|
|
int reads;
|
|
int cache_audio;
|
|
int flushed;
|
|
|
|
void *startTime;
|
|
|
|
FILE *file;
|
|
SpeexResamplerState *resampler;
|
|
void *circularBuffer;
|
|
switch_mutex_t *mutex;
|
|
} google_t;
|
|
|
|
#endif |