Browse
 
Tools
Rss Categories

LVSpeechPort::GetOpenPortStatus

Reference Number: AA-00785 Views: 7588 0 Rating/ Voters

Returns an integer indicating the result of calling CreateClient on the speech port. If a CreateClient call fails, this method gives further detail about the cause for the failure.

Function

  • int GetOpenPortStatus(void)

Return Values

LV_SUCCESS

The port opened successfully.

LV_LANG_UNDEFINED

There was an environment/config setting issue. See log for more details.

LV_OPEN_PORT_FAILED__LICENSES_EXCEEDED

Failed to acquire the required license - either no licenses are available or all available licenses are already in use.

LV_OPEN_PORT_FAILED__OPEN_PORT_NOT_CALLED_YET

CreateClient has not been called on the object yet.

LV_EXCEPTION

An exception occurred when the port initialization was attempted.

Remarks

This method does not have an equivalent function in the C API since the reason for the failure in the creation of a port is made available via one of the parameters to LV_SRE_CreateClient itself.

See Also