CodeSAAT commited on
Commit
a3cc8dc
·
verified ·
1 Parent(s): 0ad5ac6

Update detector.py

Browse files
Files changed (1) hide show
  1. detector.py +9 -3
detector.py CHANGED
@@ -55,10 +55,16 @@ except ImportError:
55
  TORCH_OK = False
56
 
57
 
58
- # Ensemble members. Order doesn't matter — both are always run and fused.
 
 
 
 
 
 
 
59
  MODEL_IDS = [
60
  "garystafford/wav2vec2-deepfake-voice-detector", # modern commercial TTS
61
- "MelodyMachine/Deepfake-audio-detection-V2", # broader/legacy coverage, fast
62
  ]
63
 
64
 
@@ -291,4 +297,4 @@ class VocalGuardDetector:
291
  out.append("✅ Strong natural human-speech markers")
292
  else:
293
  out.append("✅ Natural human-speech markers present")
294
- return out
 
55
  TORCH_OK = False
56
 
57
 
58
+ # Ensemble members. MelodyMachine/Deepfake-audio-detection-V2 was tried here
59
+ # and removed: real deploy logs showed it outputting near-binary values
60
+ # (~0.9999 or ~0.000017, nothing in between) that stayed IDENTICAL across
61
+ # different windows of the same clip regardless of content — a sign it's
62
+ # reacting to format/encoding rather than speech content. Combined with
63
+ # max-fusion, one bad spike from it was enough to flip a correct "Human"
64
+ # verdict to a false "AI Generated". Back to a single model until there's
65
+ # real evidence a second one helps rather than hurts.
66
  MODEL_IDS = [
67
  "garystafford/wav2vec2-deepfake-voice-detector", # modern commercial TTS
 
68
  ]
69
 
70
 
 
297
  out.append("✅ Strong natural human-speech markers")
298
  else:
299
  out.append("✅ Natural human-speech markers present")
300
+ return out