Files
freeswitch-modules/mod_elevenlabs_tts/elevenlabs_glue.h
Hoan Luu Huu 3edb4a47f2 Support elevenlabs TTS streaming api (#7)
* added module for using eleven labs tts

* wip

Signed-off-by: Dave Horton <daveh@beachdognet.com>

* fixes for caching streaming file

* elevenlabs: fix issue that caused issue after mod_reload

* return final response code in playback stopped event

* send error if tts fails

---------

Signed-off-by: Dave Horton <daveh@beachdognet.com>
Co-authored-by: Dave Horton <daveh@beachdognet.com>
2024-01-31 07:35:20 -08:00

12 lines
597 B
C

#ifndef __ELEVENLABS_GLUE_H__
#define __ELEVENLABS_GLUE_H__
switch_status_t elevenlabs_speech_load();
switch_status_t elevenlabs_speech_open(elevenlabs_t* elevenlabs);
switch_status_t elevenlabs_speech_feed_tts(elevenlabs_t* elevenlabs, char* text, switch_speech_flag_t *flags);
switch_status_t elevenlabs_speech_read_tts(elevenlabs_t* elevenlabs, void *data, size_t *datalen, switch_speech_flag_t *flags);
switch_status_t elevenlabs_speech_flush_tts(elevenlabs_t* elevenlabs);
switch_status_t elevenlabs_speech_close(elevenlabs_t* elevenlabs);
switch_status_t elevenlabs_speech_unload();
#endif