mirror of
https://github.com/jambonz/freeswitch-modules.git
synced 2025-12-19 09:07:44 +00:00
* support tts elevenlabs to mod_dub Signed-off-by: Quan HL <quan.luuhoang8@gmail.com> * wip Signed-off-by: Quan HL <quan.luuhoang8@gmail.com> * wip * wip * fix aws race condition when 2 start transcribes are sent at the same instant * wip * wip * wip * allow queue play on track * wip Signed-off-by: Quan HL <quan.luuhoang8@gmail.com> * revert change for aws transcribe Signed-off-by: Quan HL <quan.luuhoang8@gmail.com> * fix type * wip * wip * rename parameters * rename paramters * wip * wip * wip * wip * wip * bug: there exists scenarios where callback is not defined * wip * wip * revert unintended changes to mod_google_transcribe * fix bugs w/ streaming tts simplified arg parsing to use freeswitch conventions --------- Signed-off-by: Quan HL <quan.luuhoang8@gmail.com> Co-authored-by: Quan HL <quan.luuhoang8@gmail.com>
28 lines
527 B
C
28 lines
527 B
C
#ifndef __MOD_DUB_H__
|
|
#define __MOD_DUB_H__
|
|
|
|
#include <switch.h>
|
|
#include <speex/speex_resampler.h>
|
|
|
|
#include <mpg123.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#define MY_BUG_NAME "_dub_"
|
|
#define MAX_SESSION_ID (256)
|
|
#define MAX_BUG_LEN (64)
|
|
#define MAX_URL_LEN (1024)
|
|
#define MAX_DUB_TRACKS (2)
|
|
|
|
/* per-channel data */
|
|
typedef void (*responseHandler_t)(switch_core_session_t* session, const char* json, const char* bugname, const char* details);
|
|
|
|
|
|
struct cap_cb {
|
|
switch_mutex_t *mutex;
|
|
int gain;
|
|
void *tracks[MAX_DUB_TRACKS];
|
|
};
|
|
|
|
|
|
#endif |