Skip to main content

com.amivoice.wrp.WrpListener Class

void utteranceStarted(int startTime)

Called when speech start is detected.

startTime: Speech start time (milliseconds)

void utteranceEnded(int endTime)

Called when speech end is detected.

endTime: Speech end time (milliseconds)

void resultCreated()

Called at the start of recognition.

void resultUpdated(String result)

Called when a recognition in-progress event is received.

result: Intermediate recognition result (JSON) for the speech segment being processed. For details, please see "WebSocket Interface" > Event Packets > U Event Packet.

void resultFinalized(String result)

Called when recognition is successful.

result: Final recognition result (JSON) for the speech segment. For details, please see "WebSocket Interface" > Event Packets > A Event Packet.

void TRACE(String message)

Called when a log message is received.

message: Message