LVSpeechPort::LoadVoiceChannel

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);

Return Values

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.

Parameters

VoiceChannel

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:

Remarks

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.

See Also


Complete Help Topic List | Speech Engine Product Information