com.techventus.server.voice.datatypes.records
Class TranscriptElement
java.lang.Object
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.
- Author:
- Tobias Eisentraeger
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TranscriptElement
public TranscriptElement(java.lang.String text,
java.lang.String id,
TranscriptElement.RecognitionLevel level)
- Standard constructor
- Parameters:
text
- id
- level
-
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