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)?."
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
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!
"(for windows)"
wrong answer, try again.
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
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.
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
I think what this guy is looking for is a CS student who will write it for him. This is how academia works.
Cretin - a powerful and flexible CD reencoder
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.
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!"...
sound a;p le; ... it's so nice when you don't have to worry about the details and just use the library functions!
b=a.CutRandomThirtySecondSnippetsFromSoundSam
writefile(b);
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.
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
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
== Jez ==
Do you miss Firefox? Try Pale Moon.
Yeah, but they are less likely to get laid than other geeks.... ;)
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.
Alright, everybody. Stop posting. It looks like we're done here.
I conclude that microcontroller programming is simpler than basic stream parsing.
You can't run Open Source code on Windoze without destroying the American way of life!, pinko
$5 / month hosted VPS on linux = awesome!
...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.