Browse
 
Tools
Rss Categories

LVInterpretation_CreateFromCopy

Reference Number: AA-00889 Views: 7199 0 Rating/ Voters

Used to copy an Interpretation object.

Functions

  • H_SI LVInterpretation_CreateFromCopy(H_SI hsi)

Parameters

hsi

The interpretation handle being copied.

Return Value

NULL

There was a problem copying the interpretation.

Not NULL

The copied interpretation object.

Remarks

Any new handle given to you via LVInterpretation_CreateFromCopy must be released with LVInterpretation_Release.  Also, any handle given to you by the speech port through LV_SRE_CreateInterpretation  must be released with LVInterpretation_Release.

Example


// Open the port and do a decode
// ...
// When the decode is finished, grab an interpretation object

H_SI SemanticInterpretation = LVInterpretation_Create(); 
SemanticInterpretation = LV_SRE_CreateInterpretation(hport, voicechannel, index);

H_SI CopyInterpretation = LVInterpretation_CreateFromCopy(SemanticInterpretation);

// Start using the interpretation data.
// ...
// Remember to release every element that has been created


LVInterpretation_Release(SemanticInterpretation);
LVInterpretation_Release(CopyInterpretation);

See Also