読み上げ完了通知メッセージ受信時に発生する。
Event information
- C#: delegate void delegateNotifyCompleteSpeech(int result, string time_stamp);
event delegateNotifyCompleteSpeech evNotifyCompeteSpeech;
- Ruby: EvNotifyCompleteSpeech(result, time_stamp)
- Python: evNotifyCompleteSpeech(result, time_stamp)
Arguments
- result: 読み上げ完了結果コード(0: OK, 0以外:失敗)
- time_stamp: 読み上げデータ送信時に生成されたタイムスタンプ
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 |