Class AudioResource
- All Implemented Interfaces:
- com.ibm.cloud.sdk.core.service.model.ObjectModel
public class AudioResource
extends com.ibm.cloud.sdk.core.service.model.GenericModel
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceAudioResource.StatusThe status of the audio resource: * `ok`: The service successfully analyzed the audio data.
- 
Constructor SummaryConstructors Constructor Description AudioResource()
- 
Method SummaryModifier and Type Method Description AudioDetailsgetDetails()Gets the details.LonggetDuration()Gets the duration.StringgetName()Gets the name.StringgetStatus()Gets the status.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModelequals, hashCode, toString
- 
Constructor Details- 
AudioResourcepublic AudioResource()
 
- 
- 
Method Details- 
getDurationGets the duration.The total seconds of audio in the audio resource. - Returns:
- the duration
 
- 
getNameGets the name._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. - Returns:
- the name
 
- 
getDetailsGets the details.An `AudioDetails` object that provides detailed information about the audio resource. The object is empty until the service finishes processing the audio. - Returns:
- the details
 
- 
getStatusGets the status.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. - Returns:
- the status
 
 
-