Closing a Speech Port

When the speech port is no longer needed it should be closed.  Closing every unnecessary speech port frees up licensed ports, and releases all of the speech port's resources.

C:    int LV_SRE_ClosePort(HPORT hport);

C++:  int LVSpeechPort::ClosePort();

 

Code Example:  Closing the Speech Port

#include <LVSpeechPort.h>

 

#ifdef _C_

 

//the C way

int CloseTheSpeechPort(HPORT hPort)

{

return LV_SRE_ClosePort(hPort);

}

 

#else ifdef _CPLUSPLUS_

 

//the C++ way

int CloseTheSpeechPort(LVSpeechPort& myPort)

{

return myPort.ClosePort();

}

 

#endif


Complete Help Topic List | Speech Engine Product Information