Class WindowsAudioUtils
Inherited Members
Namespace: SipLib.Audio.Windows
Assembly: SipLib.Audio.Windows.dll
Syntax
public class WindowsAudioUtils
Methods
ReadWaveFile(string)
Reads the audio samples from a WAV file. The file format must be mono, 16 bits/sample linear (PCM) and the sample rate must be 8000 or 16000 samples per second.
Declaration
public static AudioSampleData ReadWaveFile(string FilePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | FilePath | Location of the file |
Returns
| Type | Description |
|---|---|
| AudioSampleData |
Exceptions
| Type | Condition |
|---|---|
| FileNotFoundException | Thrown if the file does not exist. |
| ArgumentException | Thrown if unable to read the file or if the file format is incorrect. |