Package ai.picovoice.leopard
Class LeopardTranscript.Word
- java.lang.Object
-
- ai.picovoice.leopard.LeopardTranscript.Word
-
- Enclosing class:
- LeopardTranscript
public static class LeopardTranscript.Word extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Word(java.lang.String word, float confidence, float startSec, float endSec)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetConfidence()Getter for the transcription confidence.floatgetEndSec()Getter for the end of word in seconds.floatgetStartSec()Getter for the start of word in seconds.java.lang.StringgetWord()Getter for the transcribed word.
-
-
-
Method Detail
-
getWord
public java.lang.String getWord()
Getter for the transcribed word.- Returns:
- Transcribed word.
-
getConfidence
public float getConfidence()
Getter for the transcription confidence.- Returns:
- Transcription confidence. It is a number within [0, 1].
-
getStartSec
public float getStartSec()
Getter for the start of word in seconds.- Returns:
- Start of word in seconds.
-
getEndSec
public float getEndSec()
Getter for the end of word in seconds.- Returns:
- End of word in seconds.
-
-