Starts sending the data to the access point.
If the Haruzira is in reproducing, accumulated in the data buffer of the access point. If the buffer is in full, is discarded transmission data, and an error is returned to the sender. (The buffer size can be set by using Haruzira.)
Syntax
- C#: public async Task<string> sendSpeechDataEx()
- Ruby: sendSpeechDataEx()
- Python: sendSpeechDataEx()
Parameters
None
Return
Timestamp. (Is generated when make a speech data transmission, it gives the uniqueness of the transmitted data.)
If sending is succeed, “hh: mm: ss” string of 8 byte is returned in the notation. (example: “21:08:30”)
If sending is failed, is returned a null value.
- C#: null
- Ruby: nil
- Python: None
Examples
C#
1 2 3 4 5 6 7 8 9 10 11 |
ClientTcpCommunication cltComm = new ClientTcpCommunication(); string timeStamp = await cltComm.sendSpeechDataEx(); if (timeStamp == null) { throw new Exception(string.Format("Error Code:[0x{0:x2}]", cltComm .ReceiveStatus)); } Debug.WriteLine("Timestamp[{0}]", (object)timeStamp); //out put: "Timestamp[10:14:07]" |
Ruby
1 2 3 4 5 6 7 8 9 10 |
cltComm = ClientTcpCommunication.new timeStamp = cltComm .sendSpeechDataEx() if (timeStamp == nil) puts("error code:[0x%02x]" % [cltComm .ReceiveStatus]) end puts("Timestamp[%s]" % [timeStamp]) #out put: "Timestamp[10:14:07]" |
Python
1 2 3 4 5 6 7 8 9 |
clt_comm = hz_client_tcp_communication.ClientTcpCommunication() timestamp = clt_comm.sendSpeechDataEx() if (timestamp is None) print("error code:[0x{02x}]".format(clt_comm.ReceiveStatus)) print("Timestamp[{}]".format(timestamp)) #out put: "Timestamp[10:14:07]" |