The ClientTcpCommunication class provides functions of network communication to the access point(“haruzira”).
The ClientTcpCommunication class has these type of members.
- Constructors
- Events
- Methods
- Properties
Constructors
The ClientTcpCommunication class has these constructors.
Constructor | SDK | Description |
ClientTcpCommunication | All | Initializes a new instance of the ClientTcpCommunication object. |
Events
The ClientTcpCommunication class has these events.
Event | SDK | Description |
evNotifyMessageEvent | .NET/Python | Occurs when in sending has had a error other than disconnecting. |
EvNotifyMessageEvent | Ruby | |
evNotifyReceivedDisConnectEvent | .NET/Python | Occurs when the communication has disconnected for some reason or received the message of “Communication Stop Notice”. |
EvNotifyReceivedDisConnectEvent | Ruby | |
evNotifyCompeteSpeech | .NET/Python | Occurs when the client has received the message of “Speech Completion Notice”. |
EvNotifyCompeteSpeech | Ruby | |
evNotifySendSpeechRecognitionCommand | .NET/Python | Occurs when the client has received the message of “Send Speech Recognition Command”. |
EvNotifySendSpeechRecognitionCommand | Ruby |
Methods
The ClientTcpCommunication class has these methods.
Method | SDK | Description |
sendSpeechDataEx | All | Starts sending the data to the access point. |
startAsynchronousListener | All | Start a work thread for receiving asynchronous messages and receiving that a message of the “Send Speech Recognition Command”. |
cancelAsynchronousListener | All | Stops the working thread for receiving asynchronous messages. |
stopSendSpeechData | All | Cancels send processing. |
setTraceOutPut | Ruby/Python | Sets trace’s switch. It is output on the console. |
Properties
The ClientTcpCommunication class has these properties.
Property | SDK | Access type | Description |
ServerIP | All | R/W | Gets or sets the IP Address of the access point. |
ServerPortNo | All | R/W | Gets or sets the port number of the access point. |
ReceivePort | All | R/W | Gets or sets the port number for receiving asynchronous messages. |
ReqSendDataAccountName | All | R/W | Gets or sets the account name for connecting. |
ReqSendDataPasswd | All | R/W | Gets or sets the password for connecting. |
ReqSendDataEncryptKey | All | R/W | Gets or sets the encryption key for encrypting. |
ReqSendDataSpeechLocaleId | All | R/W | Gets or sets the locale id of the speech data. |
ReqSendDataSpeechMode | All | R/W | Gets or sets the text mode of the speech data. |
ReqSendDataSpeechLevel | All | R/W | Gets or sets the priority of the speech data. |
ReqSendDataSpeechGender | All | R/W | Gets or sets a gender value of the speech data. |
ReqSendDataSpeechRepeat | All | R/W | Gets or sets a repeat value of the speech data. |
ReqSendDataText | All | R/W | Gets or sets the text data for make a speech. |
ReqSendDataCompletionNoticeNecessity | All | R/W | Gets or sets the necessity to send for ‘Speech Completion Notice’ message. |
ReceivedDataDecryptionKey | All | R/W | Gets or sets the decryption key for decrypting. |
ReceiveAckTimeOut | All | R/W | Gets or sets a timeout value for waiting response messasges. |
ReceiveStatus | All | R | Gets a status value when occurred during communication. |
SendDataLength | All | R | Gets the length of text data. The value is size of the post-conversion to send data. |
Version | All | R | Gets a SDK version information. |