Table of Contents

Class AudioHelper<T>.AudioLoadResult

Namespace
AiDotNet.Helpers
Assembly
AiDotNet.dll

Result of loading an audio file, including metadata.

public class AudioHelper<T>.AudioLoadResult
Inheritance
AudioHelper<T>.AudioLoadResult
Inherited Members

Properties

Audio

Audio samples as tensor [1, channels, samples].

public Tensor<T> Audio { get; init; }

Property Value

Tensor<T>

BitsPerSample

Bits per sample (8, 16, 24, or 32).

public int BitsPerSample { get; init; }

Property Value

int

Channels

Number of channels (1 = mono, 2 = stereo).

public int Channels { get; init; }

Property Value

int

DurationSeconds

Duration in seconds.

public double DurationSeconds { get; }

Property Value

double

SampleRate

Sample rate in Hz.

public int SampleRate { get; init; }

Property Value

int