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 interfaceAudioDetails.Compression_For an archive-type resource_, the format of the compressed archive: * `zip` for a **.zip** file * `gzip` for a **.tar.gz** filestatic interfaceAudioDetails.TypeThe 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 StringgetCodec()Gets the codec.StringgetCompression()Gets the compression.LonggetFrequency()Gets the frequency.StringgetType()Gets the type.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
AudioDetails
public AudioDetails()
-
-
Method Details
-
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
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
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
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
-