Class AudioDetails

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.speech_to_text.v1.model.AudioDetails
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class AudioDetails
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Information about an audio resource from a custom acoustic model.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static interface  AudioDetails.Compression
    **For an archive-type resource,** the format of the compressed archive: * `zip` for a **.zip** file * `gzip` for a **.tar.gz** file
    static interface  AudioDetails.Type
    The type of the audio resource: * `audio` for an individual audio file * `archive` for an archive (**.zip** or **.tar.gz**) file that contains audio files * `undetermined` for a resource that the service cannot validate (for example, if the user mistakenly passes a file that does not contain audio, such as a JPEG file).
  • Constructor Summary

    Constructors
    Constructor Description
    AudioDetails()  
  • Method Summary

    Modifier and Type Method Description
    String getCodec()
    Gets the codec.
    String getCompression()
    Gets the compression.
    Long getFrequency()
    Gets the frequency.
    String getType()
    Gets the type.

    Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel

    equals, hashCode, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AudioDetails

      public AudioDetails()
  • Method Details

    • getType

      public String getType()
      Gets the type.

      The type of the audio resource: * `audio` for an individual audio file * `archive` for an archive (**.zip** or **.tar.gz**) file that contains audio files * `undetermined` for a resource that the service cannot validate (for example, if the user mistakenly passes a file that does not contain audio, such as a JPEG file).

      Returns:
      the type
    • getCodec

      public String getCodec()
      Gets the codec.

      **For an audio-type resource,** the codec in which the audio is encoded. Omitted for an archive-type resource.

      Returns:
      the codec
    • getFrequency

      public Long getFrequency()
      Gets the frequency.

      **For an audio-type resource,** the sampling rate of the audio in Hertz (samples per second). Omitted for an archive-type resource.

      Returns:
      the frequency
    • getCompression

      public String getCompression()
      Gets the compression.

      **For an archive-type resource,** the format of the compressed archive: * `zip` for a **.zip** file * `gzip` for a **.tar.gz** file

      Omitted for an audio-type resource.

      Returns:
      the compression