2

What i want to do is capture audio coming from some.exe all the time, check if the program outputs sound that i have already stored, say 5 second audio.

For example I capture some.exe saying "You win" , save it in .wav or whatever. then start monitoring some.exe and if it says "You win" again, do something.

DD3R
  • 115
  • 1
  • 8
  • 3
    The input will never be the same twice. It will differ in amplitude, frequency components and length. You would need to come up with some time warping similarity metric. – David Elliman Aug 18 '13 at 09:33
  • It takes the massively parallel computing hardware you have between your ears a good three years to learn this trick. You can get a possible shortcut by using the System.Speech.Recognition namespace. – Hans Passant Aug 18 '13 at 14:57

1 Answers1

2

There is no API to intercept audio output of a specific process. You can either capture back a mix of audio generated by ALL applications on specific endpoint, or you have to get your hands dirty with complicated API hooking.

See also:

Community
  • 1
  • 1
Roman R.
  • 68,205
  • 6
  • 94
  • 158