Skip to content

ivcylc/Audio-Fake-Sampling-Rate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Audio-Real-Sampling-Rate-Detection

A Python script to estimate the real sampling rate of an audio file based on the Roll-off frequency and visualize its frequency spectrum. This tool is particularly useful for detecting fake or upsampled audio files.

Features

  • Estimates the real sampling rate of audio files using the Roll-off frequency.
  • Visualizes the audio's frequency spectrum and highlights the roll-off frequency.

Empirically, we found that roll-off freq works best when set to 0.998

Usage

Prerequisites

Ensure you have Python 3.7 or above installed and the following dependencies:

pip install librosa numpy matplotlib

Usage:

python tmp.py

Input the waveform path

Visualization:

image

About

Find the real sampling-rate of an audio.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages