SR_AcousticModels API functions


Detailed Description

Acoustic model collection.


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)


Function Documentation

SREC_ACOUSTICMODELS_API ESR_ReturnCode SR_AcousticModelsDestroy ( SR_AcousticModels self  ) 

Destroys an AcousticModel collection.

Parameters:
self SR_AcousticModels handle

SREC_ACOUSTICMODELS_API ESR_ReturnCode SR_AcousticModelsGetCount ( SR_AcousticModels self,
size_t *  size 
)

Returns the number of AcousticModels in the collection.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
self SR_AcousticModels handle
key Parameter name
value Parameter value


Generated on Thu May 1 15:37:26 2008 for SREC by  doxygen 1.5.3