Loads audio data into a specified voice channel. Used prior to LV_SRE_Decode (which decodes the audio data).
- int LV_SRE_LoadVoiceChannel(HPORT hport, int VoiceChannel, void* M, int Length, SOUND_FORMAT Format)
The port's handle.
Accepted values 0 through 63.
Pointer to audio data.
Memory size in bytes of the audio data.
The audio data sound format. SOUND_FORMAT is an enumerated type that has the following values:
UNK_FORMAT = 0
ULAW_8KHZ = 1
PCM_8KHZ = 2
PCM_16KHZ = 3
ALAW_8KHZ = 4
No errors; the voice channel audio successfully loaded.
The input hport is not a valid one.
The specified voice channel is out of range (0-63).
The specified sound format is invalid.
This voice channel could not be loaded since the port was shutting down.
Indicates that the load voice channel operation timed out.
An exception occurred while processing the request.
Each LV_SpeechPort supports 64 separate voice channels. Each channel has its own separate storage for decode data, so once the call is made, the client application can release its own copy. LoadVoiceChannel will accept the audio data and prepare it for decoding.