public class AudioListing
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static interface |
AudioListing.Status
**For an audio-type resource,** the status of the resource: * `ok`: The service successfully
analyzed the audio data.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AudioResource> |
audio |
protected AudioResource |
container |
protected AudioDetails |
details |
protected java.lang.Long |
duration |
protected java.lang.String |
name |
protected java.lang.String |
status |
Constructor and Description |
---|
AudioListing() |
Modifier and Type | Method and Description |
---|---|
java.util.List<AudioResource> |
getAudio()
Gets the audio.
|
AudioResource |
getContainer()
Gets the container.
|
AudioDetails |
getDetails()
Gets the details.
|
java.lang.Long |
getDuration()
Gets the duration.
|
java.lang.String |
getName()
Gets the name.
|
java.lang.String |
getStatus()
Gets the status.
|
protected java.lang.Long duration
protected java.lang.String name
protected AudioDetails details
protected java.lang.String status
protected AudioResource container
protected java.util.List<AudioResource> audio
public java.lang.Long getDuration()
**For an audio-type resource,** the total seconds of audio in the resource. Omitted for an archive-type resource.
public java.lang.String getName()
**For an audio-type resource,** the user-specified name of the resource. Omitted for an archive-type resource.
public AudioDetails getDetails()
**For an audio-type resource,** an `AudioDetails` object that provides detailed information about the resource. The object is empty until the service finishes processing the audio. Omitted for an archive-type resource.
public java.lang.String getStatus()
**For an audio-type resource,** the status of the resource: * `ok`: The service successfully analyzed the audio data. The data can be used to train the custom model. * `being_processed`: The service is still analyzing the audio data. The service cannot accept requests to add new audio resources or to train the custom model until its analysis is complete. * `invalid`: The audio data is not valid for training the custom model (possibly because it has the wrong format or sampling rate, or because it is corrupted).
Omitted for an archive-type resource.
public AudioResource getContainer()
**For an archive-type resource,** an object of type `AudioResource` that provides information about the resource. Omitted for an audio-type resource.
public java.util.List<AudioResource> getAudio()
**For an archive-type resource,** an array of `AudioResource` objects that provides information about the audio-type resources that are contained in the resource. Omitted for an audio-type resource.