Class AudioRecording
Inheritance
AudioRecording
Assembly: AudioAnalysisTools.dll
public class AudioRecording : IDisposable
Constructors
|
Improve this Doc
View Source
Initializes a new instance of the AudioRecording class.
Wrapper for the wav reader.
Audio must be in wav format.
Use MasterAudioUtility to convert or segment the audio first.
Declaration
public AudioRecording(WavReader wavReader)
Parameters
|
Improve this Doc
View Source
Initializes a new instance of the AudioRecording class.
Wrapper for the wav reader.
Audio must be in wav format.
Use MasterAudioUtility to convert or segment the audio first.
Declaration
public AudioRecording(byte[] bytes)
Parameters
Type |
Name |
Description |
Byte[] |
bytes |
|
|
Improve this Doc
View Source
Initializes a new instance of the AudioRecording class.
Wrapper for the wav reader.
Audio must be in wav format.
Use MasterAudioUtility to convert or segment the audio first.
Declaration
public AudioRecording(byte[] bytes, string name)
Parameters
|
Improve this Doc
View Source
Declaration
public AudioRecording(FileInfo audioFile)
Parameters
Type |
Name |
Description |
FileInfo |
audioFile |
|
|
Improve this Doc
View Source
Initializes a new instance of the AudioRecording class.
Wrapper for the wav reader.
Audio must be in wav format.
Use MasterAudioUtility to convert or segment the audio first.
Declaration
public AudioRecording(string path)
Parameters
Type |
Name |
Description |
String |
path |
|
Properties
|
Improve this Doc
View Source
Gets the file name without the extension.
Declaration
public string BaseName { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public int BitsPerSample { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public byte[] Bytes { get; set; }
Property Value
|
Improve this Doc
View Source
Gets returns Time Span of the recording.
Declaration
public TimeSpan Duration { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public double Epsilon { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public string FilePath { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public int Nyquist { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public int SampleRate { get; }
Property Value
|
Improve this Doc
View Source
Gets a wrapper for the wav reader.
Audio must be in wav format.
Use MasterAudioUtility to convert or segment the audio first.
Declaration
public WavReader WavReader { get; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
public static FileInfo CreateTemporaryAudioFile(FileInfo sourceRecording, DirectoryInfo outDir, int resampleRate)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
|
Improve this Doc
View Source
This method extracts a recording segment and saves it to disk at the location fiOutputSegment.
Declaration
public static void ExtractSegment(FileInfo fiSource, TimeSpan start, TimeSpan end, TimeSpan buffer, int sampleRate, FileInfo fiOutputSegment)
Parameters
|
Improve this Doc
View Source
Declaration
public static AudioRecording Filter_IIR(AudioRecording audio, string filterName)
Parameters
Returns
|
Improve this Doc
View Source
TODO - this is long winded way to get file. Need to talk to Mark.
Declaration
public static AudioRecording GetAudioRecording(FileInfo sourceFile, int resampleRate, string opDir, string opFileName)
Parameters
Returns
|
Improve this Doc
View Source
returns a subsample of a recording with a buffer on either side.
Main complication is dealing with edge effects.
Declaration
public static AudioRecording GetRecordingSubsegment(AudioRecording recording, int sampleStart, int sampleEnd, int sampleBuffer)
Parameters
Returns
|
Improve this Doc
View Source
returns the wave form representation of the signal.
Declaration
public double[, ] GetWaveForm(int length)
Parameters
Type |
Name |
Description |
Int32 |
length |
|
Returns
|
Improve this Doc
View Source
Declaration
public Image<Rgb24> GetWaveForm(int imageWidth, int imageHeight)
Parameters
Type |
Name |
Description |
Int32 |
imageWidth |
|
Int32 |
imageHeight |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public double[, ] GetWaveFormDecibels(int length, double dBMin)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public Image<Rgb24> GetWaveFormInDecibels(int imageWidth, int imageHeight, double dBMin)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
Implements
Extension Methods