Files
freeswitch-modules/mod_azure_tts/mod_azure_tts.h
T
Hoan Luu Huu 41aebafd1c fix eleevnlabs callsession stuck (#55)
* fix eleevnlabs callsession stuck

Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com>

* fix read sample rate from session is not needed

Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com>

---------

Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com>
2024-04-23 09:14:43 -04:00

37 lines
614 B
C

#ifndef __MOD_AZURE_TTS_H__
#define __MOD_AZURE_TTS_H__
#include <switch.h>
#include <speex/speex_resampler.h>
typedef struct azure_data {
char *voice_name;
char *api_key;
char *region;
char *language;
char *endpoint;
char *endpointId;
char *http_proxy_ip;
char *http_proxy_port;
/* 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;
} azure_t;
#endif