The audio type can be created with a sampleRate, channelCount, total sampleCount, and optional name.
From an Audio File
/// <summary>/// Get the audio type for an audio file at a given path./// </summary>/// <paramname="path">Audio path.</param>/// <returns>Corresponding audio type or `null` if the file is not a valid audio file.</returns>staticMLAudioTypeFromFile (string path);
/// <summary>/// Get the audio type for an audio clip./// </summary>/// <param name-"clip">Audio clip.</param>/// <returns>Corresponding audio type.</returns>staticMLAudioTypeFromAudioClip (AudioClip clip);
/// <summary>/// Get the audio type for a video clip./// Note that the sample count is merely an estimate based on the duration of the video./// </summary>/// <param name-"clip">Video clip.</param>/// <param name-"track">Audio track index.</param>/// <returns>Corresponding audio type or `null` if the video does not have an audio track.</returns>staticMLAudioTypeFromVideoClip (VideoClip clip,int track =0);
INCOMPLETE.
From Streaming Assets
/// <summary>/// Get the audio type for an audio file in the `StreamingAssets` folder./// </summary>/// <paramname="relativePath">Relative path to audio file in `StreamingAssets` folder.</param>/// <returns>Corresponding audio type or `null` if the file is not a valid audio file.</returns>staticTask<MLAudioType> FromStreamingAssets (string relativePath);
INCOMPLETE.
Inspecting the Type
/// <summary>/// Feature name./// </summary>string name { get; }/// <summary>/// Feature data type./// This will typically be a numeric type./// </summary>Type dataType { get; }
Refer to the MLFeatureType class for more information.