Slashdot Mirror


Sampling Short Sequences From Long MP3 Recordings?

mehl writes "I am a professor for social psychology at the University of Arizona and I am looking for help with finding / developing a special program. In my research, I ask participants to carry around a digital voice recorder while they go about their normal lives. The voice recorder then tracks the ambient sounds in their environments and produces an 'acoustic log' of a person's day. We then use these ambient sound recordings as source data for various person perception studies. For privacy reasons, we are required to sample brief snippets of ambient sounds instead of recording an entire day continuously ('Big Brother is listening to you...'). So far, we have achieved this by modifying the hardware of a digital voice recorder (triggering it with an external microchip). With the high turn-over in player models, however, this strategy has turned out to be short-sighted (every half a year we have to build a new chip). I am thinking about switching strategy, recording continuously in the first place (no problem with the current generation of flash memory) and then sampling (random) snippets after the fact from the continous recordings. Does anybody know of an existing program that can randomly (or pseudo-randomly; e.g., 30 sec every 10 min) and automatically sample short sequences from a day-long (18 hours) mp3 recording? What would it entail to develop such a program (for Windows)?."

24 of 278 comments (clear)

  1. Simple... by Anonymous Coward · · Score: 5, Funny


    Pick up Microsoft Visual C++ then look at their time and sound librar.. uh.. oh.. IT colour scheme hurt brain... cannot continue.. blarerhfdsl jjjjjjjjjjjjjj fjwkef

  2. Easy... by xsupergr0verx · · Score: 5, Funny

    Ask P-Diddy.

    He frequently samples other artists' work and then makes millions. Reminds me of an archived Onion article, which you now must pay for

    --

    Click here for a free picture of an iPod!
    1. Re:Easy... by Nick+of+NSTime · · Score: 4, Funny

      P. Diddy's testimony at his trial was a sample of OJ Simpson's testimony with Puffy's "Unh, yeah" recorded on top.

    2. Re:Easy... by Valiss · · Score: 4, Funny

      "No, see, OUR recording goes ding ding ding dada ding ding, ad ding ding ding dading ding. It's different."

      --

      -Valiss
  3. he had me right up to the end by Anonymous Coward · · Score: 1, Funny

    "(for windows)"

    wrong answer, try again.

  4. really random by Doc+Ruby · · Score: 4, Funny

    If they're desperate enough to use your program, they don't have to "40 save a and b to a table". The odds that they'll get the same random number again are lower than the probability that they'll use the program ;).

    --

    --
    make install -not war

  5. While it may be simple to you... by exp(pi*sqrt(163)) · · Score: 3, Funny

    Then why did they reject my story on how to pop up a dialog box in Windows?

    --
    Doesn't it make you feel good to know that our freedoms are protected by politicans, lawyers and journalists.
  6. Sounds very important by Hao+Wu · · Score: 2, Funny

    This is an excellent research field. I may convert section of my recombinant lab to this study. I will urge the head of Oncoproteomics department to do the same thing and cut budget to other projects for this.

    --
    I suggest you read Slashdot
  7. Re:Audacity? by krog · · Score: 5, Funny

    I think what this guy is looking for is a CS student who will write it for him. This is how academia works.

  8. Just ask the RIAA by TrevorB · · Score: 4, Funny

    Just ask the RIAA. They've got some great software for taking an MP3, extracting bits of the file, and replacing the rest with (loud) white noise. Should be perfect for your needs.

    1. Re:Just ask the RIAA by ConceptJunkie · · Score: 3, Funny

      So that's how they make pop music. Figures!

      --
      You are in a maze of twisty little passages, all alike.
  9. Re:Privacy concerns... by Tackhead · · Score: 3, Funny
    > That was one of my issues. First for privacy reasons, they decided to only sample randomly by turning the device off and on for short periods. Then, because it's easier for them, privacy gets tossed and they record the entire day, and sample randomly from that.

    What's the difference? Either way, all you'll end up with is a bunch of MP3s of people saying "Fuck!" and "Goddamnit!" and "Aaw, shit!"...

  10. easier in C++ by Anonymous Coward · · Score: 1, Funny

    sound a;
    b=a.CutRandomThirtySecondSnippetsFromSoundSamp le;
    writefile(b); ... it's so nice when you don't have to worry about the details and just use the library functions!

  11. Re:Privacy concerns... by Anonymous Coward · · Score: 5, Funny
    It would be pretty embarrasing to have to explain this:
    Voice1: Yeah, I'm the director. I can get you a part.
    Voice2: Really?! This is so exciting!
    Voice1: Of course, you'll need to auditi--
    [snip]
    Voice1: eah baby, suck it. Oh yeah!
    Voice2: Mmmmmffff!
    Voice1: Oh yeah! Oh yes! God yess!!!
    Voice2: Mmmmfff! Mmmf mm!
    Voice1: Yes! Yes! I'm cu--
    [snip]
    Voice1: --s the best ever. Now it's your turn.
    Voice2: Oh, I like a man who returns the favor..
    Voice1: Hey, what's this.. WHAT THE FUCK!?! HOLY SHIT! YOU'RE A GU--
    [snip]
    Voice3: I can't believe you fell for that!
    Voice4: We all knew. Are you fucking blind?
    Voice3: Hahh! hah! ha!
    Voice1: SHUT UP!!
    Voice2: I thought you knew.
    Voice1: Fuck you, dude!!
    Voice3: Did he tell you he's a director?
    Voice2: Yeah, does this mean I'm not getting the part?
    Voice3: HA!! ha ha ha!!
    Voice2: What's so funny?
    Voice4: Dude, he works in a seven ele--
    [snip]
    Voice1: --unches like a guy.
    Voice3: HA!! HA HA!!
  12. Re:Java? Python? PERL? by revscat · · Score: 5, Funny

    Me: In any case I couldn't imagine that it'd take more than half a day or so to do this in Java or Python.

    You: perl -MMP3::Splitter -e 'mp3_split($_,{},[ rand(64800), 30 ], ...) for @ARGV' filename.mp3

    I would like to take this opportunity to say that Perl guys are smartasses.

  13. I refuse to help this dude by phearlez · · Score: 4, Funny
    simply based on the pretention overload in the first paragraph of the article:

    James Pennebaker and I developed the method at the University of Texas at Austin at the end of the last century.

    Oh you mean FOUR YEARS AGO? Bunghole.

    --
    Bad management trumps ideology - Show the world you want better leadership. http://www.timefornewmanagement.com
  14. Re:Java? Python? PERL? by jez9999 · · Score: 2, Funny

    The reason there are so many Ask Slashdots like this is because simoniker's code for deciding which submission to publish was based on the response to a previous Ask Slashdot, and is as follows.

    10 a = number of submissions
    20 b = INT rand number from 0->1 * a
    30 publish submission number b

  15. Re:Java? Python? PERL? by Hillman · · Score: 3, Funny

    Yeah, but they are less likely to get laid than other geeks.... ;)

  16. Here's a nice elegant hack. by MadFarmAnimalz · · Score: 5, Funny

    Use small Windows-based devices and don't give it any further thought. The OS will crash at random (you don't have to pay extra for this, it does it out of the box), thereby giving you the fragmented recordings you seek.

    On the other hand, you could do it with an embedded linux device too; the frequent battery changes will have the desirable effect.

    Okay I confess I wrote this post to confuse the moderators into inaction; he's bashing windows -- no, he's bashing linux -- oh FUCK what to do...

    The correct moderation, gentle mod point merchant, is `funny'.

    --
    Blearf. Blearf, I say.
  17. Re:Java? Python? PERL? by juan2074 · · Score: 4, Funny

    Alright, everybody. Stop posting. It looks like we're done here.

  18. Re:Don't be so hard on this guy... by Anonymous Coward · · Score: 1, Funny

    I conclude that microcontroller programming is simpler than basic stream parsing.

  19. Re:flame bait by DennisInDallas · · Score: 5, Funny

    You can't run Open Source code on Windoze without destroying the American way of life!, pinko

  20. how about a conciseness algorithm? by SethJohnson · · Score: 3, Funny


    It sure as hell took that professor a lot of words to state his problem. How about a piece of software that edits out all the unecessary typing and just presents the few snippets needed for this guy to make his point?
  21. I'm so glad I'm not American by pandrijeczko · · Score: 3, Funny

    ...because I'd be really annoyed that my taxes were being spent keeping this "professor" in his work-avoidance program.

    --
    Gentoo Linux - another day, another USE flag.