MLAudioType
class NatML.Types.MLAudioType : MLArrayType
Creating the Type
From Audio Info
/// <summary>
/// Create an audio feature type.
/// <summary>
/// <param name="sampleRate">Sample rate</param>
/// <param name="channelCount">Channel count</param>
/// <param name="sampleCount">Total sample count.</param>
/// <param name="name">Feature name.</param>
MLAudioType (int sampleRate, int channelCount, int sampleCount, string name = default);From an Audio File
/// <summary>
/// Get the audio type for an audio file at a given path.
/// </summary>
/// <param name="path">Audio path.</param>
/// <returns>Corresponding audio type or `null` if the file is not a valid audio file.</returns>
static MLAudioType FromFile (string path);From an AudioClip
AudioClipFrom a VideoClip
VideoClipFrom Streaming Assets
Inspecting the Type
Inspecting the Format
Sample Rate
Channel Count
Last updated