Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,50 +4,87 @@ emoji: π΅
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version: 6.
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
-
#
|
|
|
|
|
|
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
|
| 19 |
-
- Time-domain statistics (peak, RMS, crest factor, SNR)
|
| 20 |
-
- Spectral analysis (centroid, bandwidth, rolloff)
|
| 21 |
-
- Energy distribution across frequency bands
|
| 22 |
-
- Integrated loudness (LUFS) measurement
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
-
|
| 27 |
-
-
|
| 28 |
-
-
|
| 29 |
-
- Spectral
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
-
|
| 35 |
-
- Saved as `{filename}_report.png` in `reports/` folder
|
| 36 |
|
| 37 |
-
##
|
| 38 |
|
| 39 |
-
1. Upload
|
| 40 |
-
2. Click
|
| 41 |
-
3. View the
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
-
##
|
| 44 |
|
| 45 |
-
|
| 46 |
-
- **File Info:** Sample rate, channels, duration
|
| 47 |
-
- **Time-Domain:** Peak/RMS levels, crest factor, SNR
|
| 48 |
-
- **Spectral Stats:** Frequency distribution and rolloffs
|
| 49 |
-
- **Energy Chart:** Bar chart of frequency bands
|
| 50 |
-
- **Issues:** Automatic problem detection with severity levels
|
| 51 |
-
- **Quality Score:** Overall grade (A-F) and score (0-100)
|
| 52 |
|
| 53 |
-
Reports are automatically saved in the `reports/` folder with your original filename + `_report.png` suffix.
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 6.1.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# π§ Audio Forensic Analyzer
|
| 13 |
+
A complete forensic-grade audio analysis tool running entirely in HuggingFace Spaces.
|
| 14 |
+
Uploads any audio file and generates a **detailed PNG report + Markdown summary**.
|
| 15 |
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
## π Features
|
| 19 |
+
|
| 20 |
+
### π Forensic Analysis
|
| 21 |
+
- Full spectrogram visualization
|
| 22 |
+
- Peak, RMS, Crest Factor
|
| 23 |
+
- Noise floor & SNR
|
| 24 |
+
- Zero-Crossing Rate
|
| 25 |
+
- Loudness (LUFS, ITU BS.1770)
|
| 26 |
+
|
| 27 |
+
### π Spectral Analysis
|
| 28 |
+
- 4096-point STFT
|
| 29 |
+
- Energy distribution across speech bands
|
| 30 |
+
- 85% and 95% rolloff
|
| 31 |
+
- Highest usable frequency (β60 dB)
|
| 32 |
+
- Spectral centroid, bandwidth, flatness
|
| 33 |
+
|
| 34 |
+
### π§ͺ Artifact Detection
|
| 35 |
+
Detects:
|
| 36 |
+
- Low-pass filters (LPF)
|
| 37 |
+
- High-pass filters (HPF)
|
| 38 |
+
- Brick-wall filtering
|
| 39 |
+
- Compression / Over-compression
|
| 40 |
+
- Noise reduction artifacts
|
| 41 |
+
- Spectral notches
|
| 42 |
+
- Clipping
|
| 43 |
+
- De-esser behavior
|
| 44 |
+
- Multiband compression
|
| 45 |
+
|
| 46 |
+
### π€ Synthetic Voice Probability (Informational Only)
|
| 47 |
+
A lightweight heuristic AI-vs-Human estimator using:
|
| 48 |
+
- MFCC stability
|
| 49 |
+
- Pitch jitter
|
| 50 |
+
- HF spectral smoothness
|
| 51 |
+
|
| 52 |
+
Does **NOT** affect scoring.
|
| 53 |
+
Displayed in the PNG report as a separate block.
|
| 54 |
|
| 55 |
+
---
|
| 56 |
+
|
| 57 |
+
## π Output
|
| 58 |
|
| 59 |
+
The tool generates:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
+
### 1. **PNG Forensic Report**
|
| 62 |
+
Includes:
|
| 63 |
+
- Spectrogram
|
| 64 |
+
- File metadata
|
| 65 |
+
- Time-domain metrics
|
| 66 |
+
- Spectral details
|
| 67 |
+
- Energy distribution chart
|
| 68 |
+
- Issue list
|
| 69 |
+
- Quality score, grade, and recommendation
|
| 70 |
+
- Synthetic voice probability block
|
| 71 |
|
| 72 |
+
### 2. **Markdown Summary**
|
| 73 |
+
Clean, readable, fully formatted analysis results.
|
| 74 |
+
|
| 75 |
+
---
|
|
|
|
| 76 |
|
| 77 |
+
## π Usage
|
| 78 |
|
| 79 |
+
1. Upload any audio file (WAV, MP3, FLAC, AAC, OGG, M4A).
|
| 80 |
+
2. Click **Analyze Audio**.
|
| 81 |
+
3. View the PNG report and the summary.
|
| 82 |
+
|
| 83 |
+
Works fully offline inside the Space β no external API calls.
|
| 84 |
+
|
| 85 |
+
---
|
| 86 |
|
| 87 |
+
## π Project Structure
|
| 88 |
|
| 89 |
+
All files live in the root directory (HF Spaces-friendly):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
|
|
|