Files
freeswitch-modules/mod_playht_tts/mod_playht_tts.h
Hoan Luu Huu 30f2189986 support playht3.0 (#119)
* support playht3.0

* update language

* wip

* update top_p and repetition_penalty

---------

Co-authored-by: root <root@af6633a5cfe8>
2024-10-09 12:12:59 -04:00

45 lines
829 B
C

#ifndef __MOD_PLAYHT_TTS_H__
#define __MOD_PLAYHT_TTS_H__
#include <switch.h>
typedef struct playht_data {
char *voice_name;
char *api_key;
char *user_id;
char *quality;
char *speed;
char *seed;
char *temperature;
char *voice_engine;
char *synthesize_url;
char *language;
char *emotion;
char *voice_guidance;
char *style_guidance;
char *text_guidance;
char *top_p;
char *repetition_penalty;
/* result data */
long response_code;
char *ct;
char *request_id;
char *name_lookup_time_ms;
char *connect_time_ms;
char *final_response_time_ms;
char *err_msg;
char *cache_filename;
char *session_id;
int rate;
int draining;
int reads;
int cache_audio;
int playback_start_sent;
void *conn;
void *circularBuffer;
switch_mutex_t *mutex;
FILE *file;
} playht_t;
#endif