AudioListing
public struct AudioListing : Codable, Equatable
Information about an audio resource from a custom acoustic model.
-
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.
Declaration
Swift
public enum Status : String -
For an audio-type resource, the total seconds of audio in the resource. Omitted for an archive-type resource.
Declaration
Swift
public var duration: Int? -
For an audio-type resource, the user-specified name of the resource. Omitted for an archive-type resource.
Declaration
Swift
public var name: String? -
For an audio-type resource, an
AudioDetailsobject that provides detailed information about the resource. The object is empty until the service finishes processing the audio. Omitted for an archive-type resource.Declaration
Swift
public var details: AudioDetails? -
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.
Declaration
Swift
public var status: String? -
For an archive-type resource, an object of type
AudioResourcethat provides information about the resource. Omitted for an audio-type resource.Declaration
Swift
public var container: AudioResource? -
For an archive-type resource, an array of
AudioResourceobjects that provides information about the audio-type resources that are contained in the resource. Omitted for an audio-type resource.Declaration
Swift
public var audio: [AudioResource]?
View on GitHub
AudioListing Structure Reference