3Scribe.Utilities.AudioID 0.1.0

.NET Core 2.1
There is a newer version of this package available.
See the version list below for details.
NuGet\Install-Package 3Scribe.Utilities.AudioID -Version 0.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package 3Scribe.Utilities.AudioID --version 0.1.0
<PackageReference Include="3Scribe.Utilities.AudioID" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add 3Scribe.Utilities.AudioID --version 0.1.0
#r "nuget: 3Scribe.Utilities.AudioID, 0.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install 3Scribe.Utilities.AudioID as a Cake Addin
#addin nuget:?package=3Scribe.Utilities.AudioID&version=0.1.0

// Install 3Scribe.Utilities.AudioID as a Cake Tool
#tool nuget:?package=3Scribe.Utilities.AudioID&version=0.1.0

AudioID

Adds a class that analyses a byte stream of an audio file to determine the type of encoding used in the file and to extract details about the file.
Library is still under development and is currently only extracting some data from a few formats.

0.1.0 Initial Release

Currently only validates WAV, MP3 and Flac files and will return Bitrate, Sampling rate and Channels. Duration is also extracted but is currently only accurate for the Flac files.

Usage

using AudioInformation;

AudioID _AudioExample = new AudioID();

var loBytes = File.ReadAllBytes( Your Test file );

_AudioExample.Analyse(loBytes);

Properties

bool IsValid

True if the byte stream passed to the Analyse method is a valid MP3, WAV or Flac file

AudioFormat Format

Encapsulating class for information about the file. Contains Bitrate, SamplingRate, Channels and Duration (Duration only accurate for Flac). Also contains two enums detailling the audio format of the stream:

Encoding - Unknown MP3 Wav Flac

DetailedEncoding - Unknown MP3_Version1_Layer1 MP3_Version1_Layer2 MP3_Version1_Layer3 MP3_Version2_Layer1 MP3_Version2_Layer2 MP3_Version2_Layer3 MP3_Version25_Layer1 MP3_Version25_Layer2 MP3_Version25_Layer3 Wav_PCM Wav_IEEEFloat Wav_ALaw Wav_MuLaw Flac

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.2 721 2/3/2019
0.1.1 745 1/24/2019
0.1.0 796 1/11/2019

0.1.0 Initial Release.  Currently only validates WAV, MP3 and Flac files and will return Bitrate, Sampling rate and Channels.  Duration is also extracted but is currently only accurate for the Flac files.