Files
freeswitch-modules/mod_whisper_tts/whisper_glue.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

12 lines
540 B
C

#ifndef __WHISPER_GLUE_H__
#define __WHISPER_GLUE_H__
switch_status_t whisper_speech_load();
switch_status_t whisper_speech_open(whisper_t* whisper);
switch_status_t whisper_speech_feed_tts(whisper_t* whisper, char* text, switch_speech_flag_t *flags);
switch_status_t whisper_speech_read_tts(whisper_t* whisper, void *data, size_t *datalen, switch_speech_flag_t *flags);
switch_status_t whisper_speech_flush_tts(whisper_t* whisper);
switch_status_t whisper_speech_close(whisper_t* whisper);
switch_status_t whisper_speech_unload();
#endif