Skip to main content

com.amivoice.hrp.HrpListener Class

void resultUpdated(String result)

Called when a recognition-in-progress event is received.

note

This event does not occur with the HTTP interface.

result: Interim recognition result (JSON) for the speech segment currently being processed.

void resultFinalized(String result)

Called when a recognition finalized event is received.

result: Finalized recognition result (JSON) for the entire audio data sent in one session. If the entire audio data contains multiple speech segments, the finalized recognition results for all speech segments are included as an array. For the JSON format, please see Speech Recognition Results in the usage guide.

void resultCreated(String sessionId)

Called at the start of recognition.

sessionId: Session ID passed from the server.

void TRACE(String message)

Called when a log message is received.