AudioDetails

public struct AudioDetails : Codable, Equatable

Information about an audio resource from a custom acoustic model.

  • 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).
    See more

    Declaration

    Swift

    public enum TypeEnum : String
  • 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.
    See more

    Declaration

    Swift

    public enum Compression : String
  • 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).

    Declaration

    Swift

    public var type: String?
  • For an audio-type resource, the codec in which the audio is encoded. Omitted for an archive-type resource.

    Declaration

    Swift

    public var codec: String?
  • For an audio-type resource, the sampling rate of the audio in Hertz (samples per second). Omitted for an archive-type resource.

    Declaration

    Swift

    public var frequency: Int?
  • 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.

    Declaration

    Swift

    public var compression: String?