Class CustomVocabularySubmission


  • public class CustomVocabularySubmission
    extends Object
    • Constructor Detail

      • CustomVocabularySubmission

        public CustomVocabularySubmission()
    • 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.
      • 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