AAXClean.Codecs 1.1.3

dotnet add package AAXClean.Codecs --version 1.1.3
NuGet\Install-Package AAXClean.Codecs -Version 1.1.3
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.
<PackageReference Include="AAXClean.Codecs" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AAXClean.Codecs --version 1.1.3
#r "nuget: AAXClean.Codecs, 1.1.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AAXClean.Codecs as a Cake Addin
#addin nuget:?package=AAXClean.Codecs&version=1.1.3

// Install AAXClean.Codecs as a Cake Tool
#tool nuget:?package=AAXClean.Codecs&version=1.1.3

AAXClean.Codecs

Converts and filters aac audio from AAXClean.

Now Cross-Platform!

Nuget

Include the AAXClean.Codecs NuGet package to your project.

Usage:

using AAXClean.Codecs

var audible_key = "aa0b0c0d0e0f1a1b1c1d1e1f2a2b2c2d";
var audible_iv = "ce2f3a3b3c3d3e3f4a4b4c4d4e4f5a5b";
aaxcFile.SetDecryptionKey(audible_key, audible_iv);

Convert to Mp3:

await aaxcFile.ConvertToMp3Async(File.Open(@"C:\Decrypted book.mp3", FileMode.OpenOrCreate, FileAccess.ReadWrite));

Note that the output stream must be Readable, Writable and Seekable for the mp3 Xing header to be written. See NAudio.Lame #24

Detect Silence

await aaxcFile.DetectSilenceAsync(-30, TimeSpan.FromSeconds(0.25));

Conversion Usage:

var mp4File = new Mp4File(File.OpenRead(@"C:\Decrypted book.m4b"));
await mp4File.ConvertToMp3Async(File.OpenWrite(@"C:\Decrypted book.mp3"));

Multipart Conversion Example:

Note that the input stream needs to be seekable to call GetChapterInfo()

var chapters = aaxcFile.GetChaptersFromMetadata();
await aaxcFile.ConvertToMultiMp4aAsync(chapters, NewSplit);
            
private static void NewSplit(NewSplitCallback newSplitCallback)
{
	string dir = @"C:\book split\";

	string fileName = newSplitCallback.Chapter.Title.Replace(":", "") + ".m4b";

	newSplitCallback.OutputFile = File.OpenWrite(Path.Combine(dir, fileName));
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on AAXClean.Codecs:

Repository Stars
rmcrackan/Libation
Libation: Liberate your Library
Version Downloads Last updated
1.1.3 846 1/3/2024
1.1.1 1,705 8/27/2023
1.1.0 2,379 7/3/2023
1.0.4 1,367 6/12/2023
1.0.3 954 4/9/2023
1.0.2 1,700 3/31/2023
1.0.1 749 3/21/2023
1.0.0 1,809 2/24/2023
0.5.16 688 2/18/2023
0.5.15.1 344 2/17/2023
0.5.14 452 2/16/2023
0.5.12 1,324 1/24/2023
0.5.11 312 1/24/2023
0.3.1 409 1/12/2023
0.3.0 396 1/11/2023
0.2.15 672 1/1/2023
0.2.14 1,656 9/28/2022
0.2.12 506 7/23/2022
0.2.11 446 7/21/2022
0.2.10 508 6/21/2022