SOUND4 BIGVOICE.CL Library [1.1.6]
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions
sound4.bigvoice.cl.h File Reference

C interface for library. More...

#include <stdint.h>

Go to the source code of this file.

Classes

struct  SOUND4_ProcessInfo
 

Macros

#define BIGVOICE_DECL   __declspec(dllimport)
 
#define BIGVOICE_HAS_WEBSERVER   1
 
#define BIGVOICE_HAS_CLOUDBUS   1
 
#define BIGVOICE_AUDIOFRAME_COUNT   12
 
#define BIGVOICE_CHANNEL_COUNT   1
 
#define BIGVOICE_AUDIO_INPUT_COUNT   1
 
#define BIGVOICE_AUDIO_OUTPUT_COUNT   1
 
#define BIGVOICE_SAMPLE_RATE   48000
 
#define SOUND4_INVALID_WEBSERVER_ID   ((uint64_t)-1)
 
#define SOUND4_WEBSERVER_HTTP_OK   (1<<0)
 
#define SOUND4_WEBSERVER_HTTPS_OK   (1<<1)
 

Typedefs

typedef void(* bigvoice_loggerfn) (enum bigvoice_LogSeverity, const char *)
 
typedef wchar_t fs_char
 
typedef char *(* bigvoice_storage_reader) (const fs_char *filename, void *userdata)
 
typedef void(* bigvoice_storage_reader_free) (char *content, void *userdata)
 
typedef int(* bigvoice_storage_writer) (const fs_char *filename, const char *content, void *userdata)
 
typedef int(* bigvoice_storage_exists) (const fs_char *filename, void *userdata)
 
typedef fs_char **(* bigvoice_storage_getall) (void *userdata)
 
typedef void(* bigvoice_storage_getall_free) (fs_char **all, void *userdata)
 
typedef int(* bigvoice_storage_remove) (const fs_char *filename, void *userdata)
 
typedef int(* bigvoice_storage_rename) (const fs_char *from, const fs_char *to, void *userdata)
 

Enumerations

enum  bigvoice_LogSeverity {
  none = 0 , fatal = 1 , error = 2 , warning = 3 ,
  info = 4 , verbose = 5 , verbose2 = 6 , verbose3 = 7 ,
  verbose4 = 8 , verbose5 = 9
}
 
enum  bigvoice_PresetChange_Kind { change_kind_created = 1 , change_kind_modified , change_kind_deleted }
 
enum  bigvoice_SampleFormat {
  INVALID_FORMAT =0 , S16_LE , S16_BE , S24_LE ,
  S24_BE , S32_LE , S32_BE , F32_LE ,
  F32_BE , S16_NATIVE =S16_LE , S24_NATIVE =S24_LE , S32_NATIVE =S32_LE ,
  F32_NATIVE =F32_LE
}
 

Functions

const struct SOUND4_ProcessInfoSOUND4_GetProcessInfo ()
 
const char * bigvoice_GetVersion ()
 
unsigned int bigvoice_GetChunkSizeInFrames ()
 
unsigned int * bigvoice_GetPossibleChunkSizeInFrames ()
 
unsigned int bigvoice_GetChannelCount ()
 
unsigned int bigvoice_GetAudioInputCount ()
 
unsigned int bigvoice_GetAudioOutputCount ()
 
unsigned int bigvoice_GetSampleRate ()
 
void bigvoice_SetLoggerCallback (bigvoice_loggerfn logger)
 
void bigvoice_SetLogSeverity (enum bigvoice_LogSeverity severity)
 
struct bigvoice_CParametersbigvoice_NewParameters ()
 
void bigvoice_FreeParameters (struct bigvoice_CParameters *params)
 
void bigvoice_SetParameter (struct bigvoice_CParameters *params, const char *name, const char *value)
 
const char * bigvoice_GetParameter (struct bigvoice_CParameters *params, const char *name)
 
void bigvoice_FreeParameterValue (const char *value)
 
struct bigvoice_CInstancebigvoice_InitProcess (const char *LoginKey, const char *RadioName, const char *Access_Key_ID, const char *Access_Key_Secret, const char *save_path)
 
struct bigvoice_CInstancebigvoice_InitProcess2 (const char *LoginKey, const char *RadioName, const char *Access_Key_ID, const char *Access_Key_Secret, const char *save_path, const struct bigvoice_CParameters *parameters)
 
struct bigvoice_CInstancebigvoice_InitProcess3 (const char *LoginKey, const char *RadioName, const char *Access_Key_ID, const char *Access_Key_Secret, const char *save_path, const struct bigvoice_CParameters *parameters, unsigned int frames_per_chunk)
 
unsigned int bigvoice_GetProcessChunkFrames (struct bigvoice_CInstance *instance)
 
int bigvoice_TerminateProcess (struct bigvoice_CInstance *instance)
 
void bigvoice_ExitProcess (struct bigvoice_CInstance *instance)
 
struct bigvoice_CBusbigvoice_NewBus ()
 
void bigvoice_FreeBus (struct bigvoice_CBus *bus)
 
void bigvoice_SetInstanceBus (struct bigvoice_CParameters *params, struct bigvoice_CBus *bus)
 
void bigvoice_SetPresetManager (struct bigvoice_CParameters *params, bigvoice_storage_reader reader, bigvoice_storage_reader_free, bigvoice_storage_writer writer, bigvoice_storage_exists exists, bigvoice_storage_getall getall, bigvoice_storage_getall_free getall_free, bigvoice_storage_remove remove, bigvoice_storage_rename rename, int IsReadOnly, void *userdata)
 
void bigvoice_PresetManager_InformChange (struct bigvoice_CInstance *instance, const fs_char *relative_path, enum bigvoice_PresetChange_Kind change_kind)
 
void bigvoice_SetMetadata (struct bigvoice_CInstance *instance, const char *key, const char *value)
 
void bigvoice_SetMetadataMulti (struct bigvoice_CInstance *instance, const char **keyvalue)
 
const char ** bigvoice_GetMetadataInfos (struct bigvoice_CInstance *instance)
 
void bigvoice_FreeMetadataInfos (struct bigvoice_CInstance *instance, const char **infos)
 
void bigvoice_StartUpdateThread (struct bigvoice_CInstance *instance, unsigned int port)
 
void bigvoice_StopUpdateThread (struct bigvoice_CInstance *instance)
 
int bigvoice_WaitUpdateThreadReady (struct bigvoice_CInstance *instance, int milliseconds)
 
void bigvoice_ProcessAudio (struct bigvoice_CInstance *instance, const float *input, float *output)
 
void bigvoice_ProcessAudio_Planar (struct bigvoice_CInstance *instance, float const *const *input, float *const *output)
 
float * bigvoice_GetBufferIn (struct bigvoice_CInstance *instance)
 
float * bigvoice_GetBufferOut (struct bigvoice_CInstance *instance)
 
unsigned int bigvoice_GetEstimatedDelay (struct bigvoice_CInstance *instance)
 
const char * bigvoice_GetFormatName (const enum bigvoice_SampleFormat fmt)
 
enum bigvoice_SampleFormat bigvoice_GetFormatFromName (const char *name)
 
unsigned int bigvoice_GetBytesFromFormat (const enum bigvoice_SampleFormat fmt)
 
unsigned int bigvoice_GetMaxPacketFrame (struct bigvoice_CInstance *instance)
 
unsigned int bigvoice_AddAudio (struct bigvoice_CInstance *instance, const uint8_t *payload, unsigned int nFrame, enum bigvoice_SampleFormat fmt)
 
unsigned int bigvoice_AddPadAudio (struct bigvoice_CInstance *instance)
 
unsigned int bigvoice_GetOutputCount (struct bigvoice_CInstance *instance)
 
unsigned int bigvoice_GetAudio (struct bigvoice_CInstance *instance, uint8_t *payload, unsigned int max_nFrame, enum bigvoice_SampleFormat fmt)
 
void bigvoice_AudioConvertFrom (const uint8_t *payload, float *output, size_t nSpl, enum bigvoice_SampleFormat fmt)
 
void bigvoice_AudioConvertTo (const float *input, uint8_t *payload, size_t nSpl, enum bigvoice_SampleFormat fmt)
 
void bigvoice_StereoToMono (const float *input, float *output, size_t nFrame)
 
void bigvoice_MonoToStereo (const float *input, float *output, size_t nFrame)
 
void bigvoice_StereoToMono_Planar (const float *inputL, const float *inputR, float *output, size_t nFrame)
 
void bigvoice_MonoToStereo_Planar (const float *input, float *outputL, float *outputR, size_t nFrame)
 
void bigvoice_AudioMonoFromLiveStereo (const uint8_t *payload, float *output)
 
void bigvoice_AudioMonoToLiveStereo (const float *input, uint8_t *payload)
 
struct bigvoice_CClientInstancebigvoice_NewClient (struct bigvoice_CInstance *instance)
 
void bigvoice_DeleteClient (struct bigvoice_CClientInstance *client)
 
const char * bigvoice_ProcessJson (struct bigvoice_CClientInstance *client, const char *json_str, int *need_save)
 
void bigvoice_FreeJsonAnswer (const char *json_str)
 
int bigvoice_SaveState (struct bigvoice_CInstance *instance)
 
uint64_t bigvoice_Webserver_tcp (unsigned int listenport, unsigned int listenport_secure, const char *socket_ip, unsigned int socket_port)
 
uint64_t bigvoice_Webserver_tcp2 (unsigned int listenport, unsigned int listenport_secure, const char *socket_ip, unsigned int socket_port, const struct bigvoice_CParameters *parameters)
 
uint64_t bigvoice_Webserver (unsigned int listenport, unsigned int listenport_secure, struct bigvoice_CInstance *instance)
 
int bigvoice_Webserver_Stop (uint64_t id, int timeout_ms)
 
int bigvoice_Webserver_Status (uint64_t id)
 
void bigvoice_Webserver_SetAppHealth (struct bigvoice_CInstance *instance, int httpcode, const char *contenttype, const char *content)
 
void bigvoice_Webserver_GetAppHealth (struct bigvoice_CInstance *instance, int *httpcode, char **contenttype, char **content)
 
void bigvoice_Webserver_FreeString (char *str)
 

Macro Definition Documentation

◆ BIGVOICE_DECL

#define BIGVOICE_DECL   __declspec(dllimport)

Definition at line 14 of file sound4.bigvoice.cl.h.

◆ BIGVOICE_HAS_CLOUDBUS

#define BIGVOICE_HAS_CLOUDBUS   1

Definition at line 22 of file sound4.bigvoice.cl.h.

◆ BIGVOICE_HAS_WEBSERVER

#define BIGVOICE_HAS_WEBSERVER   1

Definition at line 21 of file sound4.bigvoice.cl.h.