Files
freeswitch-modules/mod_azure_tts/mod_azure_tts.h
Hoan Luu Huu 45ecf151c3 Delete tts tmp file if playback_start event has not been sent (#68)
* Delete tts tmp file if playback_start event has not been sent

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

* Delete tts tmp file if playback_start event has not been sent

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

* wip

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

---------

Signed-off-by: Hoan HL <quan.luuhoang8@gmail.com>
2024-05-26 09:29:05 -04:00

41 lines
684 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;
int playback_start_sent;
void *startTime;
FILE *file;
SpeexResamplerState *resampler;
void *circularBuffer;
switch_mutex_t *mutex;
int has_last_byte;
uint8_t last_byte;
} azure_t;
#endif