Class Element


  • public class Element
    extends Object
    An Element object presents all the information the models inferred from a single interval of audio.
    • Constructor Detail

      • Element

        public Element()
    • Method Detail

      • getStartTimestamp

        public Double getStartTimestamp()
        Returns the starting timestamp of this audio interval.
        Returns:
        The starting timestamp of this audio interval.
      • setStartTimestamp

        public void setStartTimestamp​(Double startTimestamp)
        Sets the starting timestamp for this audio interval.
        Parameters:
        startTimestamp - The timestamp to set as the starting timestamp.
      • getEndTimestamp

        public Double getEndTimestamp()
        Returns the end timestamp for this audio interval.
        Returns:
        The end timestamp for this audio interval.
      • setEndTimestamp

        public void setEndTimestamp​(Double endTimestamp)
        Sets the end timestamp for this audio interval.
        Parameters:
        endTimestamp - The timestamp to set as the end timestamp.
      • getType

        public String getType()
        Returns the type of transcript element contained within this audio interval.
        Returns:
        The type of transcript element contained within this audio interval.
      • setType

        public void setType​(String type)
        Sets the type to the String provided
        Parameters:
        type - the String value to set as the type.
      • getValue

        public String getValue()
        Returns the value of the transcript element.
        Returns:
        The value of the transcript element.
      • setValue

        public void setValue​(String value)
        Sets the value of the transcript element to the String provided.
        Parameters:
        value - The String to set as the value.
      • getConfidence

        public Double getConfidence()
        Returns the confidence score of the value provided in this transcript element.
        Returns:
        The confidence score of the value provided in this transcript element.
      • setConfidence

        public void setConfidence​(Double confidence)
        Sets the confidence score to the Double provided.
        Parameters:
        confidence - The Double to set the confidence score to.