Data Structures | |
struct | SR_AcousticModels |
Models operations | |
SREC_ACOUSTICMODELS_API ESR_ReturnCode | SR_AcousticModelsDestroy (SR_AcousticModels *self) |
SREC_ACOUSTICMODELS_API ESR_ReturnCode | SR_AcousticModelsLoad (const LCHAR *filename, SR_AcousticModels **self) |
SREC_ACOUSTICMODELS_API ESR_ReturnCode | SR_AcousticModelsSave (SR_AcousticModels *self, const LCHAR *filename) |
SREC_ACOUSTICMODELS_API ESR_ReturnCode | SR_AcousticModelsSetParameter (SR_AcousticModels *self, const LCHAR *key, LCHAR *value) |
SREC_ACOUSTICMODELS_API ESR_ReturnCode | SR_AcousticModelsGetParameter (SR_AcousticModels *self, const LCHAR *key, LCHAR *value, size_t *len) |
SREC_ACOUSTICMODELS_API ESR_ReturnCode | SR_AcousticModelsGetCount (SR_AcousticModels *self, size_t *size) |
SREC_ACOUSTICMODELS_API ESR_ReturnCode | SR_AcousticModelsGetID (SR_AcousticModels *self, size_t index, SR_AcousticModelID *id, size_t *idLen) |
SREC_ACOUSTICMODELS_API ESR_ReturnCode | SR_AcousticModelsSetID (SR_AcousticModels *self, size_t index, SR_AcousticModelID *id) |
SREC_ACOUSTICMODELS_API ESR_ReturnCode SR_AcousticModelsDestroy | ( | SR_AcousticModels * | self | ) |
SREC_ACOUSTICMODELS_API ESR_ReturnCode SR_AcousticModelsGetCount | ( | SR_AcousticModels * | self, | |
size_t * | size | |||
) |
Returns the number of AcousticModels in the collection.
self | SR_AcousticModels handle | |
size | The result |
SREC_ACOUSTICMODELS_API ESR_ReturnCode SR_AcousticModelsGetID | ( | SR_AcousticModels * | self, | |
size_t | index, | |||
SR_AcousticModelID * | id, | |||
size_t * | idLen | |||
) |
Returns modelID of a component.
self | SR_AcousticModels handle | |
index | Index of model within collection (0-based) | |
id | [out] Resulting model ID | |
idLen | [in/out] Length of id argument. If the return code is ESR_BUFFER_OVERFLOW, the required length is returned in this variable. |
SREC_ACOUSTICMODELS_API ESR_ReturnCode SR_AcousticModelsGetParameter | ( | SR_AcousticModels * | self, | |
const LCHAR * | key, | |||
LCHAR * | value, | |||
size_t * | len | |||
) |
Returns AcousticModel parameter value.
self | SR_AcousticModels handle | |
key | Parameter name | |
value | [out] Parameter value | |
len | [in/out] Length of value argument. If the return code is ESR_BUFFER_OVERFLOW, the required length is returned in this variable. |
SREC_ACOUSTICMODELS_API ESR_ReturnCode SR_AcousticModelsLoad | ( | const LCHAR * | filename, | |
SR_AcousticModels ** | self | |||
) |
Loads an AcousticModel collection from file.
filename | File to read from | |
self | SR_AcousticModels handle |
SREC_ACOUSTICMODELS_API ESR_ReturnCode SR_AcousticModelsSave | ( | SR_AcousticModels * | self, | |
const LCHAR * | filename | |||
) |
Saves an AcousticModel collection to file.
self | SR_AcousticModels handle | |
filename | File to write to |
SREC_ACOUSTICMODELS_API ESR_ReturnCode SR_AcousticModelsSetID | ( | SR_AcousticModels * | self, | |
size_t | index, | |||
SR_AcousticModelID * | id | |||
) |
Sets the modelID of a component.
self | SR_AcousticModels handle | |
index | Index of model within collection (0-based) | |
id | New model ID |
SREC_ACOUSTICMODELS_API ESR_ReturnCode SR_AcousticModelsSetParameter | ( | SR_AcousticModels * | self, | |
const LCHAR * | key, | |||
LCHAR * | value | |||
) |
Sets AcousticModel parameter, overriding session defaults.
self | SR_AcousticModels handle | |
key | Parameter name | |
value | Parameter value |