Package ai.picovoice.leopard
Class LeopardTranscript
- java.lang.Object
-
- ai.picovoice.leopard.LeopardTranscript
-
public class LeopardTranscript extends java.lang.ObjectClass that contains transcription results returned from Leopard.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLeopardTranscript.WordClass for storing word metadata.
-
Constructor Summary
Constructors Constructor Description LeopardTranscript(java.lang.String transcriptString, LeopardTranscript.Word[] wordArray)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetTranscriptString()Getter for the inferred transcription.LeopardTranscript.Word[]getWordArray()Getter for transcribed words and their associated metadata.
-
-
-
Constructor Detail
-
LeopardTranscript
public LeopardTranscript(java.lang.String transcriptString, LeopardTranscript.Word[] wordArray)Constructor.- Parameters:
transcriptString- Inferred transcription.wordArray- Transcribed words and their associated metadata.
-
-
Method Detail
-
getTranscriptString
public java.lang.String getTranscriptString()
Getter for the inferred transcription.- Returns:
- Inferred transcription.
-
getWordArray
public LeopardTranscript.Word[] getWordArray()
Getter for transcribed words and their associated metadata.- Returns:
- Transcribed words and their associated metadata.
-
-