![]() |
SOUND4 BIGVOICE.CL Library [1.1.11]
|
Create and destroy a process instance. More...
Classes | |
| struct | bigvoice_CInstance |
| struct | bigvoice_CParameters |
Functions | |
| struct bigvoice_CParameters * | bigvoice_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_CInstance * | bigvoice_InitProcess (const char *LoginKey, const char *RadioName, const char *Access_Key_ID, const char *Access_Key_Secret, const char *save_path) |
| struct bigvoice_CInstance * | bigvoice_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_CInstance * | bigvoice_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) |
Create and destroy a process instance, and retrieve some general information about the process.
| void bigvoice_ExitProcess | ( | struct bigvoice_CInstance * | instance | ) |
Quit and destroy the instance
| instance | the instance to destroy |
| void bigvoice_FreeParameters | ( | struct bigvoice_CParameters * | params | ) |
Free the parameters created with bigvoice_NewParameters.
| void bigvoice_FreeParameterValue | ( | const char * | value | ) |
Free a parameter value returned by bigvoice_GetParameter
| value | the returned value |
| const char * bigvoice_GetParameter | ( | struct bigvoice_CParameters * | params, |
| const char * | name | ||
| ) |
Get current parameter value.
Returned value must be freed with bigvoice_FreeParameterValue
| unsigned int bigvoice_GetProcessChunkFrames | ( | struct bigvoice_CInstance * | instance | ) |
Get the number of audio frames in each chunk of processing.
The value reflects the frames_per_chunk parameter passed to bigvoice_InitProcess3
| instance | the instance to destroy |
| struct bigvoice_CInstance * bigvoice_InitProcess | ( | const char * | LoginKey, |
| const char * | RadioName, | ||
| const char * | Access_Key_ID, | ||
| const char * | Access_Key_Secret, | ||
| const char * | save_path | ||
| ) |
Create a process instance with default parameters (from env)
Same as bigvoice_InitProcess2, but with default parameters (from env)
| struct bigvoice_CInstance * bigvoice_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 | ||
| ) |
Create a process instance with default frames_per_chunk (12)
Same as bigvoice_InitProcess3, but with default frames_per_chunk
| struct bigvoice_CInstance * bigvoice_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 | ||
| ) |
Create a process instance
The output will have to be freed with bigvoice_ExitProcess
If the save_path is NULL or the folder is empty, a default configuration with a default preset will be loaded, unless using Custom preset managagement.
If used in a container, we recommend to put a volume for this path, so it will survive updates.
LICENSE_SERVER in the parameters.See also Environment variables and parameters
| LoginKey | SOUND4 Login key (was User ID) |
| RadioName | SOUND4 RadioName |
| Access_Key_ID | SOUND4 AWS access ID |
| Access_Key_Secret | SOUND4 AWS access Secret |
| save_path | Path where we can load/save the configuration. If NULL, memory storage will be used. |
| parameters | Parameters |
| frames_per_chunk | The number of audio frames in each chunk of processing. Must be in the list returned by bigvoice_GetPossibleChunkSizeInFrames |
| struct bigvoice_CParameters * bigvoice_NewParameters | ( | ) |
Create parameters to use with bigvoice_InitProcess2.
The output will have to be freed with bigvoice_FreeParameters
The default values are taken from environment (for compatibility).
| void bigvoice_SetParameter | ( | struct bigvoice_CParameters * | params, |
| const char * | name, | ||
| const char * | value | ||
| ) |
Set a new parameter.
Some values are in taken from env, so see Environment variables and parameters for usable variables
See also Custom preset managagement
See also Instance's bus
| int bigvoice_TerminateProcess | ( | struct bigvoice_CInstance * | instance | ) |
Terminate the processing
This is useful only with file processing, to get the final status. For some plugins, this is mandatory
| instance | the instance to terminate |