Package ai.rev.speechtotext
Class SessionConfig
- java.lang.Object
-
- ai.rev.speechtotext.SessionConfig
-
public class SessionConfig extends Object
The SessionConfig represents additional streaming options that can be provided.
-
-
Constructor Summary
Constructors Constructor Description SessionConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCustomVocabularyId()Returns the custom vocabulary ID.BooleangetFilterProfanity()Returns the value of the filter profanity option.StringgetMetaData()Returns the metadata.voidsetCustomVocabularyId(String customVocabularyId)Specifies the ID of the custom vocabulary the speech engine should use while processing audio samples.voidsetFilterProfanity(Boolean filterProfanity)Specifies whether or not the speech engine should filter profanity in the output.voidsetMetaData(String metaData)Specifies the metadata to be used in the submission request to /jobs.
-
-
-
Method Detail
-
getMetaData
public String getMetaData()
Returns the metadata.- Returns:
- The metadata.
-
setMetaData
public void setMetaData(String metaData)
Specifies the metadata to be used in the submission request to /jobs.- Parameters:
metaData- The metadata to send with the request.
-
getFilterProfanity
public Boolean getFilterProfanity()
Returns the value of the filter profanity option.- Returns:
- The value of the filter profanity option.
-
setFilterProfanity
public void setFilterProfanity(Boolean filterProfanity)
Specifies whether or not the speech engine should filter profanity in the output. Setting the profanity filter is optional.- Parameters:
filterProfanity- The option to filter profanity.- See Also:
- https://www.rev.ai/docs/streaming#section/WebSocket-Endpoint/Filter-Profanity
-
getCustomVocabularyId
public String getCustomVocabularyId()
Returns the custom vocabulary ID.- Returns:
- The custom vocabulary ID.
-
setCustomVocabularyId
public void setCustomVocabularyId(String customVocabularyId)
Specifies the ID of the custom vocabulary the speech engine should use while processing audio samples. Custom vocabularies are submitted prior to usage in the stream and assigned an Id.- Parameters:
customVocabularyId- The ID of the custom vocabulary.
-
-