Loads audio data into a specified voice channel. Used prior to LVSpeechPort::Decode (which decodes the audio data).
int LoadVoiceChannel(int VoiceChannel, void* M, int Length, SOUND_FORMAT Format = ULAW_8KHZ);
LV_SUCCESS
No errors; the voice channel audio successfully loaded.
LV_BAD_HPORT
The engine is no longer running. This is the result of an LV_SRE_ClosePort call or an unrecoverable Engine error.
LV_SOUND_CHANNEL_OUT_OF_RANGE
The specified voice channel is out of range (0-63).
LV_INVALID_SOUND_FORMAT
The specified sound format is invalid.
LV_FAILURE
The sound format was incorrectly specified.
Accepted values 0 through 63.
M
Pointer to audio data.
Length
Memory size in bytes of the audio data.
Format
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
SPX_8KHZ = 5
SPX_16KHZ = 6
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.
Complete Help Topic List | Speech Engine Product Information