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** filestatic 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
-
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
-