public class AudioResource
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static interface |
AudioResource.Status
The status of the audio resource: * `ok`: The service successfully analyzed the audio data.
|
Modifier and Type | Field and Description |
---|---|
protected AudioDetails |
details |
protected java.lang.Long |
duration |
protected java.lang.String |
name |
protected java.lang.String |
status |
Constructor and Description |
---|
AudioResource() |
Modifier and Type | Method and Description |
---|---|
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
public java.lang.Long getDuration()
The total seconds of audio in the audio resource.
public java.lang.String getName()
**For an archive-type resource,** the user-specified name of the resource.
**For an audio-type resource,** the user-specified name of the resource or the name of the audio file that the user added for the resource. The value depends on the method that is called.
public AudioDetails getDetails()
An `AudioDetails` object that provides detailed information about the audio resource. The object is empty until the service finishes processing the audio.
public java.lang.String getStatus()
The status of the audio 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). For an archive file, the entire archive is invalid if any of its audio files are invalid.