File size: 1,857 Bytes
7c191eb
8632159
 
 
 
7c191eb
00c374f
7c191eb
 
 
 
00c374f
 
 
8632159
00c374f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8632159
00c374f
 
 
8632159
00c374f
8632159
00c374f
 
 
 
 
 
 
 
 
 
8632159
00c374f
 
 
 
8632159
00c374f
8632159
00c374f
 
 
 
 
 
 
8632159
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
title: Audio Forensic Analyzer
emoji: 🎡
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 6.1.0
app_file: app.py
pinned: false
---

# 🎧 Audio Forensic Analyzer  
A complete forensic-grade audio analysis tool running entirely in HuggingFace Spaces.  
Uploads any audio file and generates a **detailed PNG report + Markdown summary**.

---

## πŸš€ Features

### πŸ” Forensic Analysis
- Full spectrogram visualization  
- Peak, RMS, Crest Factor  
- Noise floor & SNR  
- Zero-Crossing Rate  
- Loudness (LUFS, ITU BS.1770)  

### 🎚 Spectral Analysis
- 4096-point STFT  
- Energy distribution across speech bands  
- 85% and 95% rolloff  
- Highest usable frequency (–60 dB)  
- Spectral centroid, bandwidth, flatness  

### πŸ§ͺ Artifact Detection
Detects:
- Low-pass filters (LPF)  
- High-pass filters (HPF)  
- Brick-wall filtering  
- Compression / Over-compression  
- Noise reduction artifacts  
- Spectral notches  
- Clipping  
- De-esser behavior  
- Multiband compression  

### πŸ€– Synthetic Voice Probability (Informational Only)
A lightweight heuristic AI-vs-Human estimator using:
- MFCC stability  
- Pitch jitter  
- HF spectral smoothness  

Does **NOT** affect scoring.  
Displayed in the PNG report as a separate block.

---

## πŸ“Š Output

The tool generates:

### 1. **PNG Forensic Report**
Includes:
- Spectrogram  
- File metadata  
- Time-domain metrics  
- Spectral details  
- Energy distribution chart  
- Issue list  
- Quality score, grade, and recommendation  
- Synthetic voice probability block  

### 2. **Markdown Summary**
Clean, readable, fully formatted analysis results.

---

## πŸ“ Usage

1. Upload any audio file (WAV, MP3, FLAC, AAC, OGG, M4A).  
2. Click **Analyze Audio**.  
3. View the PNG report and the summary.  

Works fully offline inside the Space β€” no external API calls.

---