Files
freeswitch-modules/mod_whisper_tts/mod_whisper_tts.h
Hoan Luu Huu b4f3a41913 whisper tts stream module (#8)
* whisper tts stream module

* add convert mp3 to linear

* add lmpg123 link

* wip

* whisper cache

* wip

* wip

* clean up

* add free mem and openai metric

* whisper: cache files as mp3 for simplicity

---------

Co-authored-by: Dave Horton <daveh@beachdognet.com>
2024-02-22 14:17:13 -05:00

33 lines
586 B
C

#ifndef __MOD_WHISPER_TTS_H__
#define __MOD_WHISPER_TTS_H__
#include <switch.h>
typedef struct whisper_data {
char *voice_name;
char *api_key;
char *model_id;
char *speed;
/* result data */
long response_code;
char *ct;
char *reported_latency;
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;
void *conn;
void *circularBuffer;
switch_mutex_t *mutex;
FILE *file;
} whisper_t;
#endif