-
I've been trying to figure out whether I can do things like get metadata for and convert audio files between different formats in my C# project and frankly I've found it difficult to find any recent information - most Q&A is from years ago and things have moved on. CSCore wants to use .NET Frameworks and NAudio seems very Windows-specific. Is there any kind of audio library built into .NET itself yet, say in .NET 9? Like, can I somehow open an MP3, get its metadata, and save it out as a WAV without using NAudio? And is it possible to do it in a cross-platform way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
No. Audio is relatively a high-level and mixture of area. The built-in libraries doesn't have any functionality or media processing. System.Drawing is a wrapper of OS functionality and outdated. |
Beta Was this translation helpful? Give feedback.
Why isn't library X part of .NET is a really long generic answer that involves how .NET came to be, what it's primary purpose was, how it evolved, and where it's most used. That combination of history, customer base and usage hasn't led to a path where audio processing was deemed to be an important first-class citizen. If there aren't many audio libraries in the ecosystem (like NAudio) then it might mean the ecosystem hasn't deemed it important enough to be a first-class feature.
We don't build libraries just because there's a gap. There needs to be evidence and demand that it makes sense to do so at the cost of not doing other features.
PS: I don't know of any other language ecosystem th…