com.techventus.server.voice.datatypes.records
Class TranscriptElement

java.lang.Object
  extended by com.techventus.server.voice.datatypes.records.TranscriptElement

public class TranscriptElement
extends java.lang.Object

One Element in a Transcript - normally a word. Each Element has a ReccognitionLevel indicating how sure google is that the word is recognised correctly.


Nested Class Summary
static class TranscriptElement.RecognitionLevel
           
 
Constructor Summary
TranscriptElement(java.lang.String text, java.lang.String id, TranscriptElement.RecognitionLevel level)
          Standard constructor
 
Method Summary
static TranscriptElement extractTransscriptElement(java.lang.String html)
          Creates a TranscriptElement based on the html, for example: Hello World!
 java.lang.String getId()
           
 TranscriptElement.RecognitionLevel getLevel()
           
 java.lang.String getText()
           
 void setId(java.lang.String id)
           
 void setLevel(TranscriptElement.RecognitionLevel level)
           
 void setText(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TranscriptElement

public TranscriptElement(java.lang.String text,
                         java.lang.String id,
                         TranscriptElement.RecognitionLevel level)
Standard constructor

Parameters:
text -
id -
level -
Method Detail

extractTransscriptElement

public static TranscriptElement extractTransscriptElement(java.lang.String html)
Creates a TranscriptElement based on the html, for example: Hello World!

Parameters:
html -

getText

public java.lang.String getText()
Returns:
the text

setText

public void setText(java.lang.String text)
Parameters:
text - the text to set

getId

public java.lang.String getId()
Returns:
the id

setId

public void setId(java.lang.String id)
Parameters:
id - the id to set

getLevel

public TranscriptElement.RecognitionLevel getLevel()
Returns:
the level of recognition - How sure is it that the word is recognized correctly

setLevel

public void setLevel(TranscriptElement.RecognitionLevel level)
Parameters:
level - of recognition - How sure is it that the word is recognized correctly - usage: RecognitionLevel.MED1