Class CustomVocabularySubmission
- java.lang.Object
-
- ai.rev.speechtotext.models.vocabulary.CustomVocabularySubmission
-
public class CustomVocabularySubmission extends Object
-
-
Constructor Summary
Constructors Constructor Description CustomVocabularySubmission()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCallbackUrl()Returns the callback url.List<CustomVocabulary>getCustomVocabularies()Returns a list ofCustomVocabularyobjects.StringgetMetadata()Returns the metadata.voidsetCallbackUrl(String callbackUrl)Specifies the callback url that Rev.ai will POST to when custom vocabulary processing is complete.voidsetCustomVocabularies(List<CustomVocabulary> customVocabularies)Provides the custom vocabularies to be used by the speech engine when processing the stream.voidsetMetadata(String metadata)Optional metadata that is provided during custom vocabulary submission limited to 512 characters.StringtoString()
-
-
-
Method Detail
-
getMetadata
public String getMetadata()
Returns the metadata.- Returns:
- A String that contains the metadata.
-
setMetadata
public void setMetadata(String metadata)
Optional metadata that is provided during custom vocabulary submission limited to 512 characters.- Parameters:
metadata- A String to set as the metadata.
-
getCallbackUrl
public String getCallbackUrl()
Returns the callback url.- Returns:
- the callback url.
-
setCallbackUrl
public void setCallbackUrl(String callbackUrl)
Specifies the callback url that Rev.ai will POST to when custom vocabulary processing is complete. This property is optional.- Parameters:
callbackUrl- The url to POST to when custom vocabulary processing is complete.
-
getCustomVocabularies
public List<CustomVocabulary> getCustomVocabularies()
Returns a list ofCustomVocabularyobjects.- Returns:
- A list of
CustomVocabularyobjects. - See Also:
CustomVocabulary
-
setCustomVocabularies
public void setCustomVocabularies(List<CustomVocabulary> customVocabularies)
Provides the custom vocabularies to be used by the speech engine when processing the stream. List size is limited to 50 items.- Parameters:
customVocabularies- A list of custom vocabularies.- See Also:
CustomVocabulary
-
-