Thread: Need help with audio capture

  1. #1
    Old Took
    Join Date
    Nov 2016

    Need help with audio capture

    I have a problem with neighbours from hell living above me, this is not homework. I am proficient in C++, but I haven't written much of anything at all for windows and I need an app created, or help for me to create, or be pointed to freeware that does what I am looking for.

    I want a service running in the background that captures audio constantly from the mic port on my windows 10 pc, checks decibel limit, discards any sounds below 50 Db, and records any above that, and keeps a log file of time of sound, duration sound exceeded 50db.

    Basically the people upstairs are driving us crazy. They are young twenties, unemployed, party day and night, are aggressive when asked to quieten down. We own our flat, so can't move away easily, whilst the neighbours from hell are tenants of a landlord that can't be traced as the only address anywhere for him is the flat upstairs. The noise is excessive and without proof nothing can be done, and the onus of proof is on us. A joke i know, but that's the way it is in these times of austerity politics

    Would anyone experienced with windows build this for me, or help me build it please.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Perhaps this
    Creating a Sound Recorder in C and C# - CodeProject
    Rather than recording the whole audio stream, you would just print log messages based on the data analysis.

    This article mentions a couple of apps, but doesn't say anything about logging capabilities.
    3 Ways to Measure Decibels - wikiHow

    See also Mini Digital Sound Level Meter: Home Improvement

    Some professional meters will have logging features, but will be expensive to buy. There will be specialist hire firms around for this kind of stuff, depending on your location.
    Sound Level Meters

    Video evidence of their behaviour when asked to turn the noise down will no doubt be useful as well.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Old Took
    Join Date
    Nov 2016
    I've thought about this some more. It doesn't need to be a service, just an app that minimises to the notification tray. I want to record a near quiet baseline when neighbours are out, a normal noise baseline when neighbours are out and we carry out normal activities then i fancy a producer consumer queue with the producer putting 30 sec chunks of WAV in the queue and the consumer(s) analysing the fragment for excessive volume spikes, saving spiky fragments and writing to the log. That should give me the actual sound and a record of the noise spikes. I'm a little lost where to start on Windows but I'll check out your links, and think some more over the problem and see what I can come up with.
    Open to different design suggestions.

  4. #4
    Registered User
    Join Date
    Jun 2011
    Have you looked into "sleep talk" software? It is designed to record you talking during sleep, but I believe only records when sound exceeds a certain threshold. I'm not sure if the sound trigger level is adjustable, but maybe this would be easier than a custom solution.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. can't capture the input
    By loongkee in forum C Programming
    Replies: 2
    Last Post: 12-30-2012, 01:37 AM
  2. Window capture
    By tallubko in forum Windows Programming
    Replies: 12
    Last Post: 12-04-2007, 11:44 AM
  3. audio capture
    By DavidP in forum A Brief History of
    Replies: 5
    Last Post: 02-21-2004, 02:48 PM
  4. Is this possible?? Can I capture a mac address?
    By kmineau in forum C++ Programming
    Replies: 0
    Last Post: 11-14-2002, 10:43 AM
  5. Screen Capture
    By Traveller in forum Windows Programming
    Replies: 2
    Last Post: 07-21-2002, 07:16 PM

Tags for this Thread