-
Notifications
You must be signed in to change notification settings - Fork 4
Audio Sample Rate
Hossein HassanNejad edited this page Sep 10, 2026
·
1 revision
The sample rate defines how many audio samples are recorded or processed per second.
It is measured in Hertz (Hz).
For example:
44,100 Hz = 44,100 samples per second
48,000 Hz = 48,000 samples per second
Nyx Converter allows you to select a sample rate during conversion.
await NyxConverter.convertTo(
inputPath,
outputDirectory,
sampleRate: NyxSampleRate.hz48000,
);| Sample Rate | Common Use |
|---|---|
| 48,000 Hz | Video, film, television, and professional audio |
| 44,100 Hz | Music and CD-quality audio |
| 22,050 Hz | Speech, voice, and smaller audio files |
sampleRate: NyxSampleRate.hz48000,48 kHz is commonly used for video and professional media workflows.
Recommended for:
- Video
- Film
- Television
- Professional audio
sampleRate: NyxSampleRate.hz44100,44.1 kHz is commonly associated with music and CD-quality audio.
Recommended for:
- Music
- General audio
- Music libraries
sampleRate: NyxSampleRate.hz22050,22.05 kHz uses fewer samples per second and can reduce audio data requirements.
Recommended for:
- Speech
- Voice recordings
- Low-bandwidth applications
- Smaller files
| Use Case | Recommended Sample Rate |
|---|---|
| Video | 48,000 Hz |
| Music | 44,100 Hz |
| General audio | 44,100 Hz |
| Voice | 22,050 Hz |
| Low-bandwidth audio | 22,050 Hz |
These are general recommendations. The best sample rate depends on the source media and the intended output.