Occurs when the client has received the message of “Speech Completion Notice”.
Event information
- C#: delegate void delegateNotifyCompleteSpeech(int result, string time_stamp);
event delegateNotifyCompleteSpeech evNotifyCompeteSpeech;
- Ruby: EvNotifyCompeteSpeech(result, time_stamp)
- Python: evNotifyCompeteSpeech(result, time_stamp)
Arguments
- result: A speech completion result value. (0: OK, other than 0: failed for some reason.)
- time_stamp: The generated timestamp at the time of the speech data transmission.
Examples
C#
1 2 3 4 5 6 7 8 9 10 11 12 13 |
ClientTcpCommunication cltComm = new ClientTcpCommunication(); cltComm .evNotifyCompeteSpeech += new delegateNotifyCompleteSpeech(rcvNotifyCompleteSpeech); //callback function private void rcvNotifyCompleteSpeech(int result, string time_stamp) { Dispatcher.BeginInvoke(new Action(() => { //txtNotify is a TextBox control. txtNotify.Text += string.Format("Received Complete Speech Notice", result, time_stamp) + "\r\n"; }), DispatcherPriority.Send); } |
Ruby
1 2 3 4 5 6 7 |
//callback function rcvNotifyCompleteSpeech = lambda{|result, time_stamp| puts("%s:result[0x%02x], time stamp[%s]" % ["Received Complete Speech Notice", result, time_stamp]) } cltComm = ClientTcpCommunication.new cltComm .EvNotifyCompeteSpeech = rcvNotifyCompleteSpeech |
Python
1 2 3 4 5 6 |
//callback function def rcv_notify_complete_speech(result, time_stamp) print("{0:s}:result[0x{1:02x}], time stamp[{2:s}]".format("Received Complete Speech Notice", result, time_stamp)) clt_comm = hz_client_tcp_communication.ClientTcpCommunication() clt_comm.evNotifyCompeteSpeech = rcv_notify_complete_speech |