0
$\begingroup$

Is it possible to detect if a sample of human voice by smartphone/computer(44Khz) is sourced from another electrical device or originated from a human being

I want to build a model in matlab such that, samples a vocal signal and decides whether it is a real human being talks a live or recorded, is it even possible?

$\endgroup$
3
  • $\begingroup$ What are you trying to do? Voice-activated door lock or something? If a person is talking "live" through Skype, should that be disqualified? What you're really testing is whether a person is actually talking in front of the mic or if their voice is being played through a speaker? $\endgroup$
    – endolith
    Oct 17, 2013 at 19:29
  • 1
    $\begingroup$ @endolith Yes I try to test whether a person is actually talking in front of the mic or if their voice is being played through a speaker. $\endgroup$
    – 0x90
    Oct 17, 2013 at 20:10
  • $\begingroup$ I would focus on the properties of the speaker, then, not the microphone. Portable/phone speakers are generally limited in bandwidth and all speakers have at least a little distortion. Maybe you could detect intermodulation distortion of the voice or something? $\endgroup$
    – endolith
    Oct 17, 2013 at 21:44

1 Answer 1

1
$\begingroup$

On a smartphone, flat out no. The microphones are so poor that you're lucky to get any approximation of the actual audio.

On high-quality hardware, perhaps. Barely. If you're lucky. Check for MP3 compression artifacts. If the source is not compressed with a lossy codec, you're out of luck.

$\endgroup$
8
  • $\begingroup$ I can assume the recorded is compressed, you suggest trying to detect some artifacts? $\endgroup$
    – 0x90
    Oct 14, 2013 at 3:54
  • 1
    $\begingroup$ Stationary background noises will continue to be present, by definition, but speech will mask them. Perceptual compression algorithms like MP3 will discard those frequency components. So if you suddenly see the background noise disappear, you can suspect compression and thus a recording. $\endgroup$
    – MSalters
    Oct 14, 2013 at 8:52
  • 2
    $\begingroup$ I disagree with the statement about smart phone microphone quality. These days most better phones use PCB mounted MEMS microphones from companies like Knowles, ST, Analog Devices, etc. which are really quite good if properly mounted. It perfectly is possible to do decent recordings with these mics, if proper software is used. $\endgroup$
    – Hilmar
    Oct 14, 2013 at 17:03
  • 1
    $\begingroup$ @Hilmar: What do you think their frequency response is above 5 kHz, for instance? $\endgroup$
    – MSalters
    Oct 14, 2013 at 17:10
  • 1
    $\begingroup$ A good MEMS is flat to about 10kHz (within one dB or so) and then rises because of the mechanical resonance. The rise is very consistent so it can easily be EQ'd out, if that's a problem. $\endgroup$
    – Hilmar
    Oct 15, 2013 at 1:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.