I’m trying to write software to edit audio files. One aspect of this software is a normalization function.
Until now, I have been normalizing audio with Audacity. Now, I want to normalize them using FFmpeg from a C# application. I looked into the documentation of FFmpeg and saw that there are different types of normalization. Additionally, FFmpeg has a lot of settings, which I find overwhelming.
For Python, I found a nice library that makes it easy to normalize audio:
from pydub import AudioSegment
from pydub.effects import normalize
def normalizeMP3(path):
# Load an audio file
audio = AudioSegment.from_file(path)
# Normalize the audio file
normalized_audio = normalize(audio)
# Save the normalized file as MP3
normalized_audio.export(path, format="mp3")
However, I haven’t found anything similar for C#.
Maybe somebody can help me!
Thanks!!!