org.robokind.impl.speechrec
Class PortableSpeechRecEvent

java.lang.Object
  extended by org.robokind.impl.speechrec.PortableSpeechRecEvent
All Implemented Interfaces:
SpeechRecEvent

public class PortableSpeechRecEvent
extends Object
implements SpeechRecEvent

Author:
Matthew Stevenson

Nested Class Summary
static class PortableSpeechRecEvent.MessageRecordAdapter
           
static class PortableSpeechRecEvent.RecordMessageAdapter
           
 
Constructor Summary
PortableSpeechRecEvent(SpeechRecEvent event)
           
PortableSpeechRecEvent(SpeechRecEventRecord record)
           
PortableSpeechRecEvent(String recognizerId, String phrase, double conf, long timestamp)
           
 
Method Summary
 double getConfidence()
           
 String getRecognizedText()
           
 String getRecognizerId()
           
 SpeechRecEventRecord getRecord()
           
 long getTimestampMillisecUTC()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortableSpeechRecEvent

public PortableSpeechRecEvent(SpeechRecEventRecord record)

PortableSpeechRecEvent

public PortableSpeechRecEvent(SpeechRecEvent event)

PortableSpeechRecEvent

public PortableSpeechRecEvent(String recognizerId,
                              String phrase,
                              double conf,
                              long timestamp)
Method Detail

getRecognizerId

public String getRecognizerId()
Specified by:
getRecognizerId in interface SpeechRecEvent

getTimestampMillisecUTC

public long getTimestampMillisecUTC()
Specified by:
getTimestampMillisecUTC in interface SpeechRecEvent

getRecognizedText

public String getRecognizedText()
Specified by:
getRecognizedText in interface SpeechRecEvent

getConfidence

public double getConfidence()
Specified by:
getConfidence in interface SpeechRecEvent

getRecord

public SpeechRecEventRecord getRecord()


Copyright © 2011-2012. All Rights Reserved.