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)?."

278 comments

  1. Still big brother by Anonymous Coward · · Score: 1, Insightful

    You'd be making a full recording though... wouldn't that still qualify as personal invasion.

    1. Re:Still big brother by schodackwm · · Score: 4, Interesting
      Amen....

      the OP said as much

      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...').

      compare, for example, to the latest (federal) medical privacy rules, www.hhs.gov/ocr/hipaa/

      --
      [this sig has been trunca
    2. Re:Still big brother by Lord+Kano · · Score: 2, Insightful

      To be honest, if I were involved in something unsavory that day, I wouldn't return their recording device.

      LK

      --
      "Hi. This is my friend, Jack Shit, and you don't know him." - Lord Kano
    3. Re:Still big brother by Stephen+Samuel · · Score: 2, Interesting
      I think that what is 'considered harmful' is using the full recordings. I think that the purpose of the program is that a participant would plug in their recorder, and the program would snip out (and only store) random snippits from the 18 hour download.

      It's a sort of 'if there's nobody in the forest, the sound was never heard' type of solution.

      --
      Free Software: Like love, it grows best when given away.
    4. Re:Still big brother by caseydk · · Score: 2, Interesting


      I've built a simple Java app that parses through an mp3 file and can do exactly this. You feed it three parameters... the begin time, the duration, and a filename and it outputs the request.

      I originally did this for a *large* organization which had a huge number of sound recordings and they wanted specific cuts and already had the offsets and durations.

      Drop me an email for details.

    5. Re:Still big brother by I(rispee_I(reme · · Score: 1

      You go ahead and go under 24 hour surveillance then. I have a problem with being recorded around the clock. Regardless of whether anyone ever peruses the logs, their very existence makes it more likely that they will be be seen than if they were never made at all.

    6. Re:Still big brother by Stephen+Samuel · · Score: 1

      I agree that you'd have to trust whomever you hand the recording device to. I also recognize that, if you're crazy enough to be planning a firebombing campaign (or something equally nasty) that you'd have to be even crazier to wear one of these devices.

      --
      Free Software: Like love, it grows best when given away.
    7. Re:Still big brother by Anonymous Coward · · Score: 0

      You can use max/msp or pd for windows to program it yourself. It's really simple

  2. Mp3 splitter by Anonymous Coward · · Score: 3, Informative

    Just get something like mp3 splitter, cut it into appropriate size chunks, shuffle them and merge them back together. Then cut them to your ideal length.

    1. Re:Mp3 splitter by Anonymous Coward · · Score: 0

      Holy crap, I just trolled myself...

    2. Re:Mp3 splitter by Nkwe · · Score: 2, Informative

      There is also a tool and sdk called mpgedit that may get you close to where you want to be. http://www.mpgedit.org/mpgedit/

    3. Re:Mp3 splitter by Anonymous Coward · · Score: 0

      I don't know who was the moron who modded you informative, but you've got it wrong, and YOU didn't read the post!

      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.

      The submitter *IS* thinking about recording the entire day, and the grandparent gave a perfectly valid response.

    4. Re:Mp3 splitter by Anonymous Coward · · Score: 0

      How about just using the chip to turn the microphone on and off. this way the thingy will keep recording and will just get the parts where the microphone is turned on.

      Since no data will be recorded when the microphone is off. it'll be pretty easy to make a script to cut out the soundy parts of the file :)

  3. Audacity? by techsoldaten · · Score: 4, Informative

    I don't know if this is really what you are looking for, but Audacity is what I would look at. Perhaps a custom module could be written to handle random samples.

    M

    1. 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.

    2. Re:Audacity? by Anonymous Coward · · Score: 3, Insightful

      while true do
      dd if=/dev/sound bs=[size of 10 second sample] count=1 | gzip -c >> output.raw
      sleep [time between samples]
      done

      Whaddya mean, you must use windows at any cost?

    3. Re:Audacity? by sp0rk173 · · Score: 4, Insightful

      Which gives the CS student experience to put on his/her resume, and helps forward the research of the non-coder academic.

    4. Re:Audacity? by orthogonal · · Score: 4, Insightful

      snip four line shell script that pretty much (except converting to mp3 format) accomplishes what is desired by submitter

      What amazes me is that this precisely the sort of thing to do in software, yet the submitter contends that up until now they've done it with a custom designed and custom built chip.

      I mean, the guys at http://rockbox.haxx.se could do it in about 15 minutes, and provide a GUI on the MP3 recorder.

      Naturally, this is easier to do when MP3 recorders are running open source software, so to an extent this is a rant at all the manufacturers of computing appliances who see a competive advantage in closed source: you lost my purchase, and who knows how many purchases from this professor and while requiring him to shell out even more for a custom chip to do in hardware what is ridiculously easy to do in software (as the parent poster shows by using that complex and little-known software technique, calling sleep()).

      I'm not criticizing the parent: his code does the right and the simplest thing; the problem is with manufacturers whose use of closed source precludes such elegantly simple solutions.

      A big part of the reason that the IBM PC took off in such a big way in the early 1980s was becuase it was open source: not the code to MS-DOS, but the architechtural specification of the hardware itself. This cost IBM money when "clone"-makers were able to produce "monkey copies" of the PC, but that very competetion made PCs much more popular, and soon dominant over other (possivly techically superior) brands like Ape or Amiga. The open specs also allowed a myriad of other companies to offer add-on hardware from co-processors to graphics cards, and even allowed software authors to optimize for the IBM-PC (who here is old enough to remember what peripheral's memory was mapped to address B800, and the advantages to manipulating the data there directly?)

      Did opening the IBM-PCs architecture finally cost or benefit IBM. We'll never know. But it is likely that the PC market, and thus the market for home PCs and peripherals, and software for home PCs and the World Wide Web, would never have been near as big without IBM's decision to open the PC even to competitors.

      Manufacturers of closed-source appliances would do well to consider what they gain, and what they lose by preventing customers from fully using their products. (The careful reader will see that the antecedent of "their" in the previous sentence is ambiguous; the astute reader will understand why: just whose product is it, the company that makes it or the customer who buys it?)

    5. Re:Audacity? by born_to_live_forever · · Score: 1

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

      sp0rk173 replied:
      Which gives the CS student experience to put on his/her resume, and helps forward the research of the non-coder academic

      ...which is how academia works.

      --

      - Peter Ravn Rasmussen

  4. Re:develop... by Anonymous Coward · · Score: 0

    Could someone please provide the 1 line perl script or 3 line python script or 5 line /bin/sh script that will do this on Linux?

  5. Yeah I know a program by BillsPetMonkey · · Score: 4, Informative

    Audacity and a relatively simple plugin. Open source software is good like that.

    --
    "It's not your information. It's information about you" - John Ford, Vice President, Equifax
    1. Re:Yeah I know a program by pod · · Score: 1

      The guy's not interested in the actual contents of the samples (at time of selection/extraction), and the format of mp3 streams and frames is very well documented. In a few hours I wrote a fairly neat little command line utility to go through an mp3 file, and only keep valid audio frames, stripping off ID3 tags, and various funky frames that shouldn't be there, like frames with invalid layer or frequency values, etc. Just post a help wanted notice at the local CS department hangout/lounge, it's not a big job. There may even already be suitable filters for Audacity (though something programmatic would work better, depending on volume of the recordings), or command-line tools that could accept a simple front-end to accomplish something similar.

      --
      "Hot lesbian witches! It's fucking genius!"
  6. Maybe...... by Meostro · · Score: 0, Troll

    ...Google for it?

    1. Re:Maybe...... by Mateito · · Score: 1

      More productive, but by no means as fun. :)

    2. Re:Maybe...... by Meostro · · Score: 1

      Aww, come on... do you really have to Ask Slashdot where to find audio editing tools that can be scripted?

  7. Some tools by Shant3030 · · Score: 2, Interesting

    I work for an acoustics company and we use either matlab or CoolEdit pro to analyze waveforms. Given the size of your data, it could be difficult though. Probably would want to break down the input into hour segments.

    Might want to check with an acoustics lab.
    Try http://www.ee.sunysb.edu/~cspv/CSPV.html or something similar.

    --
    100% Insightful
  8. 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

    1. Re:Simple... by Ruie · · Score: 1

      Just install Cygwin - about as close as you can get to Linux development environment while still producing Win32 binaries.

  9. Re:iPod? by garcia · · Score: 0, Offtopic

    Apple's iTIMS plays small samples from longer audio streams. I really wish they would pick better sections of the original stream though... I don't ever get a good idea of what the song is because it never has time to really get going.

    Modest Mouse has a song Float On that really doesn't get cooking until the middle. I would never have purchased it if I had only the iTMS sample to try.

  10. 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 DarkHelmet · · Score: 1

      I'll give you a link to the article, but first you're gonna have to run down to Queens and get me a sugar cookie.

      --
      /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i
    3. 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
    4. Re:Easy... by Anonymous Coward · · Score: 0

      For those that missed the joke, he's making fun of Vanilla Ice.

    5. Re:Easy... by limited · · Score: 1

      The scary thing is that I recognize this as the Vanilla Ice quote comparing Ice Ice Baby to Queen's Under Pressure. I think it was a VH1 interview...

  11. Use mp3split by mrAgreeable · · Score: 5, Informative

    Sounds like a job for a really simple shell script driving mp3split. Sounds a lot easier than a custom chip!

    1. Re:Use mp3split by Stone316 · · Score: 2, Interesting
      If your smart enough to make your own custom chip I would think you could figure out how to do this without asking /.

      --
      "Thanks to the remote control I have the attention span of a gerbil."
    2. Re:Use mp3split by Anonymous Coward · · Score: 1, Insightful

      If you'd actually read the article, the issue was that they wanted a solution that didn't require a custom chip because they needed an updated chip every 1/2 year or some junk due to player/recorder model changes.

    3. Re:Use mp3split by Anonymous Coward · · Score: 0

      use mp3split to cut the mp3 into the size of the autoclip you want

      then a win2k batch file to playback the sound clips at random.

      place mp3's in the same folder as this batchfile
      with #.mp3 as the name of the file.
      example:
      1.mp3
      5.mp3
      15.mp3
      100.mp3
      23 4.mp3

      REM start of program :start
      rand0 = %random% %%

      %rand0%.mp3 :eof

    4. Re:Use mp3split by Anonymous Coward · · Score: 0

      He's been in Aridzona too long, the heat has gotten to his brain. Besides who would want to listen to recordings of rattle snakes all day?

    5. Re:Use mp3split by itwerx · · Score: 0, Troll

      I actually did RTFA. I'm just blind today. Sorry! :( Mod my original post down!!
      (Ever wish you could edit/delete a post...? Yeah, me too. :)

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

    "(for windows)"

    wrong answer, try again.

    1. Re:he had me right up to the end by Anonymous Coward · · Score: 1, Informative

      wouldn't that be wrong questiom

  13. Privacy concerns... by Drewskee · · Score: 4, Insightful

    If I was a participant in this research I think I would be more concerned with my privacy if they were physically recording everything and then just 'randomly sampling' what they needed later. Having the trigger physically on the player seems much more reassurring. But hey, maybe I'm just paranoid.

    1. Re:Privacy concerns... by Tsiangkun · · Score: 2, Interesting

      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.

    2. Re:Privacy concerns... by Anonymous Coward · · Score: 0

      You're not that paranoid, at least no worse than I am. I had pretty much the same thoughts as you.

      Perhaps if the subject ran the random sample postprocessing and erased the whole day file themselves, you might achieve a similar level of trust.

    3. Re:Privacy concerns... by Mysticalfruit · · Score: 2, Informative

      The problem with that is that it wouldn't be a really good social experiment because the person would either forget to press the button or only press the button when there was something that they wanted to record. Maybe what you could do is install a special "privacy button" where if they were on the phone and telling the person something personal (like there SSN) they could hit the button and it would mute the mike. However, I'd still be nervous to include such a thing because I think it would still skew the output.

      Personally how I'd tackle the problem is with something like mp3split and some scripting.

      You'd drop a "whole" mp3 into a directory and have a job that would take the file and chunk out 10 minute segements and then glue them into one 240 minute mp3.

      Though I'm not sure what's less elegant, recording tons of data just to throw 5/6th of it away or going to Rat shack and buying a 555, a couple of resisters, a switch and a battery harness and modifying the player.

      --
      Yes Francis, the world has gone crazy.
    4. 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!"...

    5. 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!!
    6. Re:Privacy concerns... by Quo_R · · Score: 1

      too bad you mixed up Voice1 and Voice2 halfway through

    7. Re:Privacy concerns... by Chop · · Score: 1

      Why oh why did my mod points expire this morning?

      Chop

    8. Re:Privacy concerns... by wfberg · · Score: 1

      Sound like bash.org needs an mp3 section. :-)

      --
      SCO employee? Check out the bounty
    9. Re:Privacy concerns... by Daetrin · · Score: 1

      Either you're making a joke that's too subtle for me to get, or you just weren't paying enough attention, because he clearly didn't mix up the voices.

      --
      This Space Intentionally Left Blank
    10. Re:Privacy concerns... by Peter+Cooper · · Score: 1

      Oh my god, I nearly crapped myself. Kudos, one of the funniest posts on Slashdot in some time.

  14. Perl can by Anonymous Coward · · Score: 2, Insightful

    Download the MP3 Module, RTFM and do it!

  15. Perl for windows? by Anonymous Coward · · Score: 0

    I'd think it would be relatively easy to set up a Perl script within windows to randomly pull bits of data out of the file and assemble them into a new file suitable for playback.

    Good thing they make perl for windows.

  16. This is really simple by Anonymous Coward · · Score: 5, Informative

    Jump to a a random offset, look for the sync-word, copy a number of frames, repeat. The MP3 format is made of frames, there is no per-file header and since the format is designed to be used in streaming applications and to be robust against errors, you can jump right to the middle and grab a couple of frames without worrying about the rest. Many webpages have the frame spec. Here is one.

    1. Re:This is really simple by pjrc · · Score: 1
      Jump to a a random offset, look for the sync-word, copy a number of frames, repeat ... you can jump right to the middle and grab a couple of frames without worrying about the rest.

      Expect that mpeg layer 3 audio uses a bit reservoir, even in constant bitrate encoding (the bits allocated to any one frame of 1152 samples changes).

      The IMDCT used by layer 3 also means that the samples out depend on each frame and the previous frame, even if the bit reservoir feature is not in use.

    2. Re:This is really simple by Anonymous Coward · · Score: 0

      So? You find the sync-word and then you're either sloppy and just read until you have gathered as many sync words as the number of frames you want to read or you're doing it the proper way and look at a few bytes in the header and calculate the frame size, including padding (It's really just a table look-up). You can do all sorts of fancy error checking, but if you're dealing with a proper MP3, you can get away with looking at a few header fields and blindly copying everything up to the next frame.

    3. Re:This is really simple by Frogbert · · Score: 1

      Orrrrr attach a mercury switch to the record function and leave it in your pocket.

    4. Re:This is really simple by dave420 · · Score: 1

      There's a thing called a "bit reservoir" which makes that slightly difficult. True, it is made of seperate frames, but they're not as seperate as you'd think.

    5. Re:This is really simple by Anonymous Coward · · Score: 0

      Replying to myself: I looked it up and now understand what you mean. Anyway, since it's designed for streaming, you can simply copy the frames regardless of the bit reservoir. The worst you can get is one or two undecodable frames at the beginning, which the decoder should simply skip.

  17. Java? Python? PERL? by revscat · · Score: 3, Insightful
    This made it on the front page? Lame.

    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)

    10 a = rand number
    20 b = a + 30 seconds
    30 open MP3 with appropriate sound API, get sound between a and b
    40 save a and b to a table so you don't use those values again
    50 goto 10

    Why does this seem absurdly simple to me? I think just about any modern language with a decent set of libraries will be able to handle this, if there isn't a shareware app out there already. 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.

    1. Re:Java? Python? PERL? by Anonymous Coward · · Score: 0
      Does this work?
      #!/bin/env perl
      while (1) {
      sleep rand(3000);
      system("timeout 30 cat /dev/audio > file".`date`);
      }
      No microphone, so I don't know what /dev/ I shouldd cat.
    2. Re:Java? Python? PERL? by iphayd · · Score: 1

      While it may be simple to you, it may not be to others. Not every slashdot reader is a programmer. This particular article, while being more of an "ask slashdot" article, was interesting in the short explanation of what they are doing, and how they are doing it.

      I would personally be interested in hearing about the results of these studies, and am glad that it was on the front page.

    3. Re:Java? Python? PERL? by tachijuan · · Score: 1
      So a little easier and smaller memory:
      10 a=rand number
      20 b=a+30
      30 open MP3 with API and suck from a to b
      40 a=b + new rand number
      50 goto 20
      why bother with the table? as a friend says: come-on gussy.
      --
      -- thoughts on one of those things: http://amuyu.com/
    4. Re:Java? Python? PERL? by revscat · · Score: 1

      Because with your method you could miss everything at the beginning. If your initial random value is high, and you only increment it from there, you will miss a lot of data. And making the random value potentially negative for your example won't work either, because then you run the risk of overlapping clips.

    5. Re:Java? Python? PERL? by mandos · · Score: 5, Insightful

      Why does this seem absurdly simple to me?

      It probably probably sounds simple to you because it is. However, this professor said that pyschology was his field, not computer science or programming. I personally think it's great that someone that far out of a tech field has found an useful application for modern technology AND that he decided to check with those most likely to understand the finer details of the techonology. Maybe /. isn't the best place, but I think it's great that he's trying to combine a couple of fields of study to develop something new.

      --
      Mike Scanlon
    6. Re:Java? Python? PERL? by gl4ss · · Score: 1

      ***
      10 a = rand number
      20 b = a + 30 seconds
      30 open MP3 with appropriate sound API, get sound between a and b
      40 save a and b to a table so you don't use those values again
      50 goto 10
      **

      eh? he goes back to the '10' where he makes a totally new random number(not increment the old). the pseudo-program choosing random points and recording 30 seconds from them, in random order.

      besides, the whole point was to show that doing a script for doing this is a LOT simpler than hacking some microprocessor to make the mp3 recorder record every now and then.

      --
      world was created 5 seconds before this post as it is.
    7. Re:Java? Python? PERL? by C60 · · Score: 2, Informative

      Why does this seem absurdly simple? Because it is. A proof of concept for this idea could be developed by even a moderately "okay" programmer in just about any language.

      Oddly enough, I speak from experience, being both an okay programmer, and having done almost exactly this in the past using perl. We were gathering 30 to 60 second samples of tracks off of audio CDs at different offsets (dependant upon the type of music) for online streaming. CDs came in one side of the process, were ripped, sampled, and converted to various formats.

      One word of advice, deal with raw audio for the sampling process, I've always found it much easier to deal with, and it gives you a lot of options on the output side for reencoding.

      Come to think of it, just grabbing 10 minute samples every hour on the purely electronics side wouldn't be difficult either, but you're more likely to be able to find someone who can write code rather than someone who can modify your recorders :)

      --
      Karma: 0 (But I wield a mean +10 Vorpal Apathy)
    8. Re:Java? Python? PERL? by SoSueMe · · Score: 0, Offtopic
      10 a=rand number
      20 b=a+30
      30 open MP3 with API and suck from a to b
      40 a=b + new rand number
      50 goto 20


      60 ????
      70 Profit!

      --
      excusez-moi
    9. Re:Java? Python? PERL? by Fastolfe · · Score: 5, Informative
      This made it on the front page? Lame.

      Agreed..

      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.

      Or five minutes in Perl with MP3::Splitter:
      perl -MMP3::Splitter -e 'mp3_split($_,{},[ rand(64800), 30 ], ...) for @ARGV' filename.mp3
    10. 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.

    11. 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

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

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

    13. Re:Java? Python? PERL? by juan2074 · · Score: 4, Funny

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

    14. Re:Java? Python? PERL? by Anonymous Coward · · Score: 0

      I think 'assholes' would be more appropriate.

    15. Re:Java? Python? PERL? by gumbi+west · · Score: 1

      You know, this isn't all that easy. He wants to get this thing running under windows, so he first has to get WINE up and running and then figure out how to get perl installed...

    16. Re:Java? Python? PERL? by Anonymous Coward · · Score: 0

      no, his last statement is 'goto 20'

    17. Re:Java? Python? PERL? by Bairdsy · · Score: 1

      Or just install activePerl (www dot activestate dot com)

      Im pretty sure it works with mp3::splitter

    18. Re:Java? Python? PERL? by Anonymous Coward · · Score: 0

      Thank you.

    19. Re:Java? Python? PERL? by chaoticset · · Score: 1

      That's better than dumbasses, right?

      --

      -----------------------
      You are what you think.
  18. ...recording continuously in the first place... by FerretFrottage · · Score: 2, Insightful

    Doesn't this void your privacy requirements you previously mentioned. I understand you want to grab short samples after the fact, but you'll still have access to all the continous data to begin with.

    --
    "Look Lois, the two symbols of the Republican Party: an elephant, and a fat white guy who is threatened by change."
    1. Re:...recording continuously in the first place... by GreyPoopon · · Score: 2, Insightful
      Doesn't this void your privacy requirements you previously mentioned.

      For those of you with privacy concerns and questioning the use of Windows for the target platform, I'd like to submit that maybe the intent is to let those participating in the study run the program to extract the desired snippets and send them in, which mitigates somewhat the privacy concerns and probably *would* require that the app run on Windows.

      Not trying to point the finger at FerretFrottage...just a convenient reply point...

      --

      GreyPoopon
      --
      Why is it I can write insightful comments but can't come up with a clever signature?

    2. Re:...recording continuously in the first place... by zogger · · Score: 1

      if the samples are not tied to a named human it shouldn't be that much of a problem. And the test subjects could scramble them around amongst themselves before they turn them in.

  19. Why the artificially imposed limit of Windows only by djh101010 · · Score: 2, Insightful

    This is the sort of application that screams for a script, rather than some sort of drag-n-drool GUI windows-ish thing. There are several audio sampling and processing utilities over at sourceforge.net, which would be suitable for this sort of thing.

    Maybe it's because my background is in the *nix world, but it'd be a half-day project to get this up and running done on a *nix box with something free from sourceforge.

    Usually one wants to design the solution to fit the problem, not to introduce more complexity by limiting what the solution can be chosen from. Doesn't seem to be the case in this guy's project. I also can't imagine finding audio sampled snippets of someone's day all that interesting, but I'm sure there are people who enjoy that sort of thing?

  20. Modified PyMP3Cut? by AceMarkE · · Score: 4, Informative

    Perhaps something based off of PyMP3Cut ? I haven't used it, but the description seems pretty relevant ("PyMP3Cut was designed to slice high quality MP3 recordings of day-long congresses into smaller per-speaker MP3 files. It only needs the exact same amount of disk space as the original file to slice, even less if you plan to skip some parts, which PyMP3Cut can do automatically if you use a specially formatted *SKIP* entry in your timeline. It was successfully used many times against several hundredths megabytes MP3 files.").

    1. Re:Modified PyMP3Cut? by Anonymous Coward · · Score: 0

      I used PyMP3Cut to break up Howard Stern recordings into 10-minute bits my car's CD player can handle nicely. It definitely has what you need to script what you want to do.

      Since it's Python, you could grab all kinds of other packages to make your application as complex or simple as you like.

    2. Re:Modified PyMP3Cut? by SoSueMe · · Score: 1
      It was successfully used many times against several hundredths megabytes MP3 files.

      Sorry, but this is a nit begging to be picked.
      1/100 megabyte=1.28 kilobytes.

    3. Re:Modified PyMP3Cut? by SoSueMe · · Score: 1

      That should have been "10.24 kilobytes"

    4. Re:Modified PyMP3Cut? by seanadams.com · · Score: 1

      PyMP3Cut was designed to slice high quality MP3 recordings of day-long congresses into smaller per-speaker MP3 files.

      I just tried this with a recording of some day-long "congress" I had yesterday. very embarrassing to hear yourself on tape like that....

  21. Just cut it by coolsva · · Score: 2

    IIRC, a MP3 file is made up of frames which contain the sound data in its entirity. You should be able to just cut a block anywhere in the middle, say any 20 second piece and expect at elast 18 seconds of continous sound. Too lazy to script it.

  22. Timing is the key by postgrep · · Score: 1

    All you need to do, is develop a program which will time on and off. Just program it so it switches itself on randomly.

  23. MP3 chunks? by The+Bungi · · Score: 1
    I've never done any sound processing but I know that an MP3 will continue to be playable if you cut it in half (eg, bad download) because it's a frame-based format.

    If you know your bitrate, use the file size to rough out the play length and then write a simple script in VB or Python or C# or whatever you want to simply copy out chunks of the file into another one. The only possibly complicated thing would be to insert silences (maybe?) between chunks, but that shouldn't be too much of a chore.

    1. Re:MP3 chunks? by stratjakt · · Score: 2, Insightful

      dd if=(my mp3) of=(sample file) bs=(mp3 frame size, or size of "one second" of audio) skip=(start from) count=(duration)

      There you go. Write some script to make up the values in parentheses.

      On to tackle the next great engineering mystery of computer science. Maybe I'll solve some of those NP-complete problems, or install one of those really sweet case fans that light up when the music plays!

      --
      I don't need no instructions to know how to rock!!!!
    2. Re:MP3 chunks? by The+Bungi · · Score: 2, Insightful
      Yah, and you can get dd (and most all other GNU tools) for Windows from here, or by installing Cygwin.

      Problem solved. Next!

  24. Matlab? by Doomie · · Score: 1, Interesting

    Perhaps I didn't get the question right, but it seems very trivial to me and just about any semi-professional audio editing tool could do it.

    But have you also considered using Matlab? Its DSP Toolbox (and other ones as well) is fantastic and manipulating audio data is almost a trivial thing to do (assuming you've already found a way to have your data recorded into a readable format -- which includes many popular choices). Matlab is also suitable for all kinds of manipulations with vectors and you can do an enormous amount of things (FFT, etc.) with some very simple and intuitive commands. Resampling, random number generation, time commands -- all these are provided.

    So... check out www.mathworks.com -- the drawback is the price (but you can get very good deals for educational purposes).

    PS: Of course, I am not affiliated in any way with Mathworks Inc.

    --
    Doomie
  25. Does it have to be windows? by Gilesx · · Score: 1

    Linux + Mpg123 would do the job nicely

    Just script it to open the file, play back the predetermined segments and capture the audio to sequentially numbered sound files.

    Easy!

    --
    Sunday you're Thinking Different, Monday you're a huge tool, paying too much and waiting to think like everyone else.
  26. DON'T DECODE by interiot · · Score: 4, Insightful
    Whatever solution you choose, just note: YOU CAN DO THIS WITHOUT DECODING AND RE-ENCODING.

    If you set things up properly (namely limiting the use of the interframe bit reservoir), then there are many utilities which will allow you to pull out specific frames from within an MP3 file. This should both be much faster from a processing standpoint, and not incur more data loss from two encodings.

    1. Re:DON'T DECODE by stratjakt · · Score: 2, Interesting

      it's just a stream. You should be able to use dd, like

      dd if=/home/britney/oops.mp3 of=/home/kazaa/sample.mp3 bs=(not sure?) count=(duration)

      Meh, whatever, you get my point. You specify the frame size in the bs= parameter, the id3,etc, offset in the "where to start" parameter, and go from there.

      Or just use one of the metric assload of utilities out there that already do this.

      --
      I don't need no instructions to know how to rock!!!!
    2. Re:DON'T DECODE by LnxAddct · · Score: 4, Informative

      Even with the interframe bit reservoir you only need to pull out a maximum of 9 frames to have playable audio.
      Regards,
      Steve

  27. Re:develop... by Anonymous Coward · · Score: 0

    > you don't want to do that

    Bashing Windows for the sake of bashing Windows, huh?

    (checks URL)

    Yup. I'm on Slashdot alright.

  28. I see now.... by FerretFrottage · · Score: 2, Informative

    finally able to load http://dingo.sbs.arizona.edu/~mehl/EAR.htm and it says "...So far, the EAR has operated on a 30 seconds on -- 12 minutes off cycle (i.e., it comes on every 12 minutes for 30 seconds), yielding on average about 70 samples of a person's acoustic social environment (i.e., 35 minutes of ambient sounds) per person per day...." so it's not full on all the time to begin with.

    --
    "Look Lois, the two symbols of the Republican Party: an elephant, and a fat white guy who is threatened by change."
  29. 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

  30. Re:develop... by Anonymous Coward · · Score: 0

    I thought you'd never ask....

    echo OFF
    REM MAKE SURE MANDRAKE CD'S ARE NEARBY
    cd c:
    deltree -A

  31. Why is this an ask slashdot? by stratjakt · · Score: 1

    Seriously. Ok, you want to trim little samples out of mp3 files. There are only about a jillion and one products that do just that.

    If you want to be the l337 hack0r and write some esoteric script to do it, go ahead. I'm sure you could massage dd and /dev/random to grab little sections of files.

    In short, why don't you roll up your sleeves and do your own friggin job?

    --
    I don't need no instructions to know how to rock!!!!
    1. Re:Why is this an ask slashdot? by Anonymous Coward · · Score: 0

      If you would actually have read the question, he wants to do it randomly. Yes there are a jillion editing programs, but try to find one that actually does what he was.

      Next time you want to throw a tantrum on slashdot, try reading the actual question first.

  32. mp3split with script wrapper by LaceHater · · Score: 1

    I would also go for using mp3split (don't know how it handles very long files - should be okay, because of no re-encoding however).

    Wrap it with a simple perl or python script to introduce the randomness.

    If that is not sufficient, probably audacity with a custom plugin would be usable.

    I would not start with writing a complete new problem, without having evaluated all scriptable options.

  33. Pick a recorder and stick with it by tbase · · Score: 1

    I have to agree with previous posts - if you have a problem with sampling a whole day, I don't see how recording a whole day and then only sampling parts is any different. You've still made the recording. I would suggest settling on a standard for the recorder, and then stick with it so you don't have to make new chips all the time. And if you can't afford to buy a few years' supply of the recorders, just make sure you settle on a wildly popular one and when they stop selling them retail, pick them up on eBay. The Dragon Naturally Speaking mobile edition (comes with a voice recorder) I bought on clearance like 4 years ago is still available on eBay. Cheap, too.

    --

    666-607: 6th floor apartment of the beast
    1. Re:Pick a recorder and stick with it by hurfy · · Score: 1

      Almost word for word what i was gonna reply. Makes sure you dont get some bored assistant doing something they souldn't with em. Better safe than sorry.

  34. Not difficult by Effugas · · Score: 5, Informative

    MP3 is a bitstream, so you can basically use the language of your choice to seek to arbitrary offsets, slice wherever you like for as long as you like, and whatever frames are broken will simply not get decoded. You may of course want to actually have on-frame-boundry edits (they generally sound better and play more reliably, especially on ipod which doesn't have great stream reassembly code). cutmp3 can work:

    http://www.puchalla-online.de/cutmp3.html

    There's lots of pure windows code to do this too:

    http://www.programurl.com/software/cutter.htm

    But if you want to code this yourself, there's some excellent Perl libraries for managing MP3:

    http://search.cpan.org/~nuffin/MPEG-Audio-Frame- 0. 08/Frame.pm

    (and most directly speaking to what you're working on)

    http://search.cpan.org/~ilyaz/MP3-Splitter-0.02/ Sp litter.pm

    It's not too bad to use Perl either, especially with the Perl Packager. Given only one host with the full Cygwin Perl install, you can create compiled executables that encapsulate everything you need down to a single file. It rocks!

    http://search.cpan.org/~autrijus/PAR-0.85/script /p p

    I imagine though that you'd eventually want to only analyze random chunks that contain speech, or at least speech like frequency distributions. This is trickier, and I don't know if there's Perl code to do it. Maybe you could investigate Praat's internal scripting language?

    http://www.fon.hum.uva.nl/praat/

    Praat is pretty mind-bogglingly cool -- it's worth checking out no matter what.

    --Dan

    P.S. Yes, I've been working on some mildly related stuff. How could you tell? :-)

  35. Besides... by hsoft · · Score: 1

    Besides, the comments would be in a cool gray instead of being in a puke yellow.

    --
    perception is reality
    1. Re:Besides... by grub · · Score: 1

      Funniest comment I've read all day! :)

      --
      Trolling is a art,
  36. Um... legal issue??? by Supp0rtLinux · · Score: 1

    I don't have a direct answer to the question posed, so I'll expect the "off-topic" mod'ing, but MP3.com got in trouble for something very similar... they archived *samples* of most of the songs out there. Where they aired was in copying copyrighted materials without permission. Unless the person's carrying the recorders sign an initial waiver, technically, anything they record is their personal property and your *sampling* it is a violation. What happens, for example, when the ambient noise of a guy getting it on with his girlfriend is recorded. If you sample that, the girlfriend can then sue you for invasion of privacy, even if you don't distribute the recordings. Sounds like a potentially sticky legal issue if you ask me.

    For a more on-topic answer, a simply shell script with a sleep command would probably do the trick. I personally do all my CD burning on Linux via the command line and pipes. So a shell script that accepts the recording as standard in with 30 second sleep statements and outputting to a recording device would probably work and not cost much of anything at all.
    Want a Windows version? Use cygwin or take the same shell script and write it as a .bat.

    1. Re:Um... legal issue??? by Anonymous Coward · · Score: 0

      they were not archiving samples, they were archiving the entire song.
      and if you had a checksum that would match the cd. you now had access to the entire mp3 for the entire cd.

    2. Re:Um... legal issue??? by Anonymous Coward · · Score: 0

      Unless the person's carrying the recorders sign an initial waiver...

      Do you actually think this guy would hand over his equipment to random people without having them sign a waiver first? Any researcher with half a brain knows to have participants sign a consent form before having them do anything.

    3. Re:Um... legal issue??? by Supp0rtLinux · · Score: 1

      But note my example... the person carrying the recorder and having signed the waiver isn't the only to fear. As I mentioned of the recording of the person with the recorder with his girl-friend, the girl-friend could sue. Not saying they shouldn't do their research and recordings. More power to them. I'm just thinking that if it were me, I'd be a bit concerned about the legalities.

    4. Re:Um... legal issue??? by alienw · · Score: 1

      There is no law that prohibits "invasion of privacy". There are eavesdropping laws, but if I decide I want to carry around a sound recorder, it's my right to do that (in most states).

    5. Re:Um... legal issue??? by Supp0rtLinux · · Score: 1

      Aw, yes. But if you use the recording device to record things around you *for someone else* and give those recordings to someone else (as in my prior example of recording sounds made between you and your girlfriend), then you run afoul of different laws depending on where you live.

    6. Re:Um... legal issue??? by alienw · · Score: 1

      I am pretty sure it doesn't matter, as long as I am consenting to carrying a recorder on my person. After all, reporters and journalists do it all the time. There are some states that are not "one-party consent", but many are.

      In any case, I am sure the professor in this article cleared it with the university's legal department (as they are generally required to do in such cases), and some random Slashdotter's uninformed legal advice is not likely to be useful.

  37. IT? by jdavidb · · Score: 1

    The IT section has an awful color scheme (actually, has it changed, slightly? it looks a little bit easier to read). And why does this article belong in this section, anyway? I thought IT was like a department in a business. I'd expect to see articles there about hiring practices, outsourcing, office software, Microsoft products and open replacements, and maybe general development issues. Do MP3s really fit into that section?

  38. of course..... by Anonymous Coward · · Score: 0

    > What would it entail to develop such a program (for Windows)?.

    I think it is some intersection of 'immortal' and 'soul'.

  39. Re:Easy. by cphanson · · Score: 1

    Well... you can still use windows, just install Cygwin, and there you go! Perl, sox, shell scripts, whatever. Get 'er done!

  40. Two solutions and a method of avoiding the problem by mrmez · · Score: 1

    To answer the question directly, it should be quite simple to write a script under Linux or Mac OS X, quite likely utilizing mp3splitter, to achieve this task - it should be possible under Windows, too, but probably easier and certainly stabler and more secure under Linux or Mac OS X.

    To answer the question obliquely, I would suggest that you may be able to write a script to run on a portable recording device utilizing an open source system to automate recording in your desired sample format.

    To answer your question with a completely different approach than that requested, I would suggest that you could simply continue using your custom chip solution, since it's developed and functional, with one change - stock up now on a supply of the devices sufficient to last for the life of your project. That would prevent your having to develop any new solutions whatsoever.

  41. what batteries do you use? by mantera · · Score: 4, Interesting

    You ask a person to carry an 18 hour voice recorder... I'm just curious what batteries you use.

    1. Re:what batteries do you use? by Glog · · Score: 1

      Aaaah, finally a good use for those 100-pound fuel cells! Good exercise too!!

    2. Re:what batteries do you use? by Buzz_Litebeer · · Score: 1

      That is what the backpack is for.

      DUH!

      actually, there are mp3 players that boast 14 hours of play, im sure there are a few out there than can do well more than that for recording.

      --
      If you don't vote, you don't matter, so don't waste your time telling me your opinion
    3. Re:what batteries do you use? by radish · · Score: 1

      There are some with much more than that :) For example the Rio Karma gives ~16 hours of mp3 per charge. The new Carbon is over 20 IIRC. I'm sure other manufacturers also make long life players. But you're right about encoding....

      --

      ---- Den ene knappen er powerknapp, den andre er Bender voice knapp "Bite My Shiny Metal Ass"

  42. Ask a student of electronic music by Anonymous Coward · · Score: 0

    Since you're working at a university you should try to find a student at an electronic studio (studies in electronic music) and perhaps take a look at MAX/MSP made by cycling74. That's a graphical programming 'language' for realtime electronic music (and visuals). Ask the student about this program - it is extremely easy and intuitive to do this kind of stuff in this language.

  43. 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.
    1. Re: While it may be simple to you... by jez9999 · · Score: 1

      It was deemed too complex for most Slashdotters to understand.

  44. Exactly... by moxiez · · Score: 1, Insightful

    ... the reason why I couldn't handle college and dropped out. Dumb ass profs like this... Please explain the value of this? What happened to teaching people things they could use? Geez, and I wonder why other countries kick our asses when it comes to education??? /rolls eyes

    1. Re:Exactly... by YouHaveSnail · · Score: 1

      Please explain the value of this?

      Boy, does this take me back. Right back to seventh grade math, when we were learning to do stuff like factor polynomials and kids would ask in their whiniest voices: "But why do we have to learn this? What good is it for? I'm never going to have to do this in real life..."

      Of course, there was never a satisfying answer from the perspective of a seventh-grader. The more perceptive among us knew that this was just stuff you had to learn, sorta like eating your vegetables. It turned out that it was a stepping stone to more advanced math, and that it was a tool that we could use to understand things that would otherwise have been difficult. But it's not like you ever factor a polynomial in the course of balancing your checkbook.

      Well, lucky for you. Professor Mehl has a relatively easy to find and easy to understand web page that talks about his research. (Apologies to the good professor for any minor slashdottings this link may bring.) It turns out that this sampling is a tool that he uses to help answer questions about how people deal with life, and particularly with traumatic events. For example, he did a study where eleven students carried these recorders in the first days after the 9/11 attacks.

      I don't know about you, but it sounds to me like this sort of research has plenty of value.

    2. Re:Exactly... by MattFromOpp · · Score: 1

      Open-minded reason: 1
      Ignorant ranting: 0

  45. Re:develop... by magarity · · Score: 3, Informative

    > (for Windows)?."you don't want to do that

    A flip answer but correct in the sense that this is simply a problem of calculation. You don't need any GUI or any fancy interface. I suggest, since you are at a school anyway, that you swing by the computer science department and get some senior to do this for his independent study project. All it needs to do is take the input sound file and put out the random samples. Requirements: 1. the input file, 2. parameters for how often and for how long to randomly sample (could be in a text file) and 3. the output file. No Windows, (MS, X, or other), required. Heck, it could be a DOS program (depending on the input file sizes).

  46. Re:develop... by jedir0x · · Score: 1

    not 5 lines, and not sure if it even works, and of course you'd have to encode to mp3 (not hard with lame or something).

    #!/bin/sh
    SLEEP_TIME=10
    RECORD_TIME=10
    while $1
    do
    `sleep $RECORD_TIME && killall -9 cat` &
    cat /dev/dsp > /tmp/recording-`date +"%F-%H-%M"`
    sleep $SLEEP_TIME
    done

    --


    I'm not drunk, I'm just in touch with pi.
  47. I don't think this meets your privacy standards... by barfy · · Score: 3, Insightful

    The recordings exist. Just because you will somehow post process them, I don't think you have really met your standard of not recording the whole day.

    Would you submit them under subpeona? Will they be destroyed? When? How?

    I think anybody in the CS dept could write the program you require. But I am pretty sure you are going to have to keep coming up with a way to do this "pre-record". And exactly why is it so hard to just buy *enough* recorders?

  48. Csound is your ticket by idealord · · Score: 1

    It'd be fairly easy to write a Csound script to do it, but you'd have to convert it to WAV or AIFF beforehand (not hard).

    You could post to the Csound list about how to do it. Would be about 10 lines of code or less, I'd bet.

    http://csounds.com/

    --
    idealord music
  49. I don't know about MP3... by Dracolytch · · Score: 1, Informative

    But if you can find an easy way to turn them into .au files (I think there are some programs that will convert multiple files), it's trivial to write a Java program to do it.

    Visit my website to contact me if you need further help/code assistance.

    ~D

    --
    This sig has been enciphered with a one-time pad. It could say almost anything.
  50. 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
    1. Re:Sounds very important by Anonymous Coward · · Score: 0

      Heh, I don't know whether you're trying to be funny, or just being an ass. Congrats on achieving the ideal /. post. ;)

  51. Re:iPod? by Anonymous Coward · · Score: 0

    May be. http://www.yes333.com/?linux

  52. The old fashioned way... by b374 · · Score: 1

    Record it to tape and give that tape and some scissors to your kids...

    1. Re:The old fashioned way... by razmaspaz · · Score: 0, Redundant

      This seems like the best solution of the day!

      --
      I tried for 5 years to come up with a clever sig...only to realize that I am not clever.
  53. 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.
  54. Why change hardware? by laird · · Score: 2, Insightful

    I don't understand why he'd need to change the hardware every six months. Sure, there are new MP3 players, but as long as they've implemented on a model that is sufficient for their work, who cares whether there are newer models out (other than that old models will get cheaper, which is nice).

    And the idea of recording an entire day and sampling seems terrible in terms of both privacy and efficiency. If you can record a day's samples in a $75 MP3 flash-based player plus a tiny circuit that randomly presses the record button twice every so often, why bother using a $400 hard-drive based MP3 player, recording an entire day, then copying that day to a desktop computer, then sampling out random tiny bits of the day.

    1. Re:Why change hardware? by DAldredge · · Score: 1

      Because you can sell the old ones on ebay and keep that money for yourself. They new ones are paid for by grant money.

    2. Re:Why change hardware? by suwain_2 · · Score: 1

      I wish I hadn't just posted something here, so that I could mod this up to a 5. I posted about the privacy concerns; your post points out something equally as important: it just doesn't make sense to do it this way.

      --
      ________________________________________________
      suwain_2 :: quality slashdot p
  55. Re:develop... by jedir0x · · Score: 1

    two words:
    Anonymous Coward

    --


    I'm not drunk, I'm just in touch with pi.
  56. Windows by Anonymous Coward · · Score: 0

    What would it entail to develop such a program (for Windows)?

    I'm sorry, but this is /.org... we hate Windows. Would you care for getting it done on a Linux platform?

  57. Already in use in Switzerland by frozenray · · Score: 1
    Link here.
    "The idea goes back to 1991. Our being exposed to the radio in a wide variety of daily situations - we listen to the radio at our offices, in our cars, at restaurants, via cable, via satellite, etc.- calls for a measuring device that can be carried along as a matter of course and without impairing one's movements. The measuring system must be joined to the person. The solution: a wristwatch! [...]

    The development of this complex radio audience research system has been made possible by the impressive interdisciplinary cooperation of the various partners involved in the project, which was supported by the Swiss Commission for Technology and Innovation (CTI) and the Swiss Broadcasting Corporation."
    --
    "There are already a million monkeys on a million typewriters, and Usenet is NOTHING like Shakespeare." - Blair Houghton
  58. easiest solution by mumblestheclown · · Score: 1
    umm,

    get a microphoned pocketpc with 128mb ram. price = $200 on ebay.

    do a little programming, taking care to make note of the fact that you will most likely need to "wake up" the machine from a sleep state, start recording, and shut down. time to program for an experienced pocket pc programmer: 4 hours.

    done.

  59. A use for undergrads by kegegg · · Score: 2, Insightful

    This sounds like a great opportunity for an undergrad student. Most undergrads CS/EE at top universities, etc. would have been able to write this as a freshman in high school. As an undergrad myself, I've been employed at an acoustics lab writing scripts in matlab, C, PHP, etc. to do this sort of thing. Cheap labor, exellent results. They'd love to work for references and beer money and can develop custom idiot-proof software. Just post a flyer or post to the CS newsgroup.

  60. I would still be wary... by Anonymous Coward · · Score: 0
    I think you've neglected a rather large privacy issue here - with this new solution, you record all day and only "use" snippets. You've still go an entire day's recording that you could use for "evil".

    If you tell your users you'll be recording their entire days sounds, that's fine. But from a privacy standpoint, the old solution is less intrusive.

  61. How about for mac? by mveloso · · Score: 1

    If you're willing to use a mac, this would take maybe 15 minutes or less of applescripting iTunes and quicktime player.

    Import the song into iTunes
    repeat until end-of-song
    select random song chunk
    paste into quicktime player
    end repeat
    save quicktime player document
    import back into iTunes

    From what I understand, you can sort of do the same thing with that iTunes COM library?

  62. 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!

  63. A few things. by g0bshiTe · · Score: 3, Interesting

    To solve your problem(s) here are a few suggestions.
    You are at University.
    Is there a music lab?
    Is there a Computer Science dept?
    Is there an electronics dept?
    If you can answer yes to 3 of these question most of your problems can solve themselves.
    Talk to the Deans of those departments, explain your needs and suggest that the students in these depts may participate in the construction of what you need for their labs or projects.
    I'm sure you would have students banging down the door to work on a project.
    My point is, use what you have available.


    I read a few posts down that someone "couldn't handle, dropped out of college because of professors like this". Well to me this sounds like a lesson with a deeper meaning than just some sort of useless project.
    Perhaps it is an effort to show how even the simplest of experiments present difficult logistical problems.

    --
    I am Bennett Haselton! I am Bennett Haselton!
  64. 18 hour long days?? by cytoman · · Score: 1
    sample short sequences from a day-long (18 hours) mp3 recording?

    Are you sure these are students?? From my experience, students sleep 18 hours... expecting them to be active and awake for 18 hours...

    I'm very suspicious of these "students" now...

    1. Re:18 hour long days?? by gile · · Score: 1

      You forget that we operate on 36-hour days...

  65. What hardware is best for this? by MrNally · · Score: 1

    I would like to create a similar set up for myself.

    I'm particularly interested in recording the conversations around me and possibly creating transcripts from them.

    What's the best hardware for the job?

  66. Re:Why the artificially imposed limit of Windows o by Anonymous Coward · · Score: 0

    This is the sort of application that screams for a script, rather than some sort of drag-n-drool GUI windows-ish thing

    You saying you can't make scripts in "some sort of drag-n-drool GUI windows-ish" environment?

    Maybe it's because my background is in the *nix world, but it'd be a half-day project to get this up and running done on a *nix box with something free from sourceforge.

    And maybe it is a half-day project for him on Windows if he knew how to work with it better than with a *nix box. Why try and slam someone just because they pick something they like to use compared to your likings in a different OS.

    Call it flame bait or not, but this Windows/*nix war is getting pretty tiresom for those who are happy with a working product of their needs. Just like IE vs. Mozilla/Firefox.

  67. Re:Psychologists lie! by riffenator · · Score: 1

    a college student.

  68. What would the RIAA think? by nebaz · · Score: 1

    What if songs on the radio get recorded? Will they want their cut? I know, fair use in all. See you in court.

    --
    Rhymes that keep their secrets will unfold behind the clouds.There upon the rainbow is the answer to a neverending story
  69. outsource by Anonymous Coward · · Score: 0

    Try codeproject.com. You can have thousands of indian programmers bid to write you a custom solution and it's probably only cost you $10 when the bidding is done. Damn indian programmers.

  70. Ambient sounds of ones day eh? by decompyler · · Score: 1
    "The voice recorder then tracks the ambient sounds in their environments and produces an 'acoustic log' of a person's day..."

    sound clip:
    (foot steps)
    (door closing)
    (fan whurring)
    UMMMMMMMMM.....
    UMMMMMMMMMMMM...... (Plop Plop)
    (whoooooshhhhhhhhhhhhhh)


  71. flabbergasted by sacrilicious · · Score: 1

    So this guy developed a freakin' microchip rather than go with a software splitter? I must be mis-understanding something here...

    --
    - First they ignore you, then they laugh at you, then ???, then profit.
    1. Re:flabbergasted by DaCool42 · · Score: 1

      Maybe he designed it on older recorders that couldn't hold all the audio it would take to split after the fact. Besides, programming a microcontroller isn't very hard.

      --

      ----
      All of whose base are belong to the what-now?
  72. Keep the user in control by WhoseHouse · · Score: 1


    If you are saying that privacy is an issue, why not just keep the user/subject be in complete control. I am assuming there is a pause and record button on this device. So with that in mind, let the user hit record when they are comfortable (like on the bus) and pause when they are not (on the phone with their psychic).

    Then when you get back the recordings, run a simple script to slice out small bits of the data and destroy the original copy (either physically or wiping it with a disk wiper a few times).

    This way the user is in control and you don't need to worry about privacy issues since they are consenting to whatever they want to have recorded.

  73. On linux... by Jeremiah+Blatz · · Score: 1

    ...or any other system with GNU head and tail:
    head -c*random byte offset* *file.mp3* | tail -c *small number of bytes*

  74. Scheesh. Way too much redundancy here... by Dejohn · · Score: 1

    Am I the only one who thinks that this whole article thread could be reduced to about 3 postings and not loose any ideas? Come on guys... read the other postings before you post another "eh, I could script it, but I'm too lazy to actually do it for you" messages...

  75. UNIX solution by Jon+Abbott · · Score: 2, Informative
    The following solution requires mpg123, GNU shellutils, and an MP3 file to decode. Why come here for a Windows solution? :^)

    #!/bin/bash
    for i in $(seq n)000
    do
    • mpg123 -w out$i.wav -k $i -n f source_filename.mp3
    done

    Where n is the number of MP3 frames to skip, in thousands, f is the number of frames to extract per iteration, and source_filename.mp3 is your MP3 file. For a 128kbps MP3, if you wish to extract 30s of audio for roughly every 10 minutes, you would use n=22 and f=1100. Output would be in files named out1000.wav, out2000.wav, and so on. Experimentation with the numbers is encouraged when using different bitrates. Please feel free to critique my bash code -- I am a little rusty.
  76. Virtual Dub by Anonymous Coward · · Score: 0

    Writing a script for Virtual Dub would do the trick. Just have it mark 30sec and extract with a numerical filename. Implementing the "randomness" might be a bit of a chore.

    Virtual Dub script

  77. Easy solution.. by Anonymous Coward · · Score: 0

    One easy solution would be to utilze a PDA (either Linux or PocketPC based) that has a built in microphone. Give it plenty of storage via Flash or SD or whatever memory technology it utilizes and have your favorite code-smith write you a snippet of code utilizing the existing MP3/Ogg encoding libraries out there...

  78. Silly question by glorf · · Score: 1

    Why should model turnover matter?

    Do the study participants steal the things? Do they damage them beyond the point of re-use? Is the hardware failing from excess usage? It's not like you need new features every year. Why do you need to keep buying new ones? Does your study not have a plan for exactly how much data you need to collect from how many subjects? If so, buy all the recorders you need at once. You can probably save money with a bulk discount.

    I can't imagine someone would want to steal something that they know may start randomly start recording on its own. As for damage I would choose your participants more wisely. If it is usage, find out what models a few local lawyers use to do all their dictation. They can't afford frequent breakage as it cuts into billable hours :)

    And as others have mentioned, collecting all the extra data is too invasive and can lead to easily to abuse.

  79. privacy? by adamiis111 · · Score: 1

    I'm confused as to what privacy concerns would allow you to post process the sound. The old way, nobody would hear more than a snippet. If this is a medical experiment, I would imagine you are having trouble with identifiable information being accessible - which is exactly what would be the case with the unprocessed sound running on the script on the windows machine. Anyway, software is blindingly easier than modified chips. Good step with this.

  80. Don't be so hard on this guy... by jonasmit · · Score: 4, Insightful

    He is a professor of social psychology not a software developer - give him a break. For an average developer this would be a very simple task - a few days at the most for a simple command line tool or sparse GUI app (Algorithm would be quite simple and all modern languages would support the features you need). You could look for an online forum where developers bid on projects like this for extra money. Usually these sites (Somebody post one I can't remember any of them now but a google search might help you) are very low cost solutions for simple one-off applications like you need. But, since you are part of a University I would contact the CS or IT department and see if there are any Undergrads who would like a small project to make some extra money and/or put on their resume. This would also help solve the problem of setting up your computer to make sure the code works properly (minor configurations would be necessary). Hope all goes well...

    1. 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.

    2. Re:Don't be so hard on this guy... by Mr2cents · · Score: 1

      Maybe he was looking for a way not involving having to ask at that pesky CS department because they keep laughing about his inability to write even a simple program?

      --
      "It's too bad that stupidity isn't painful." - Anton LaVey
  81. cron by Anonymous Coward · · Score: 0

    How about using cron to repeat the tast every x minutes?

    1. record 30 sec wav and save with timestamp as name
    2. turn wav file into MP3 with same timestamp but different extension.
    3. delete wav file
    4. repeat after x seconds
    5. (optional) create new folder every new day

    You'd need a PDA with linux and a mic. The only one that comes to mind is the Saurus.

    DH

  82. if there isn't a simple solution... by Fuzzums · · Score: 1

    ... look here (http://www.wotsit.org/search.asp) and make your own "player".

    --
    Privacy is terrorism.
  83. Re:Why the artificially imposed limit of Windows o by t_pet422 · · Score: 1

    Give him a break. The guy's a psycology prof, not a CS prof. Just let the man get his work done without accosting him for being unwilling to learn a new platform.

  84. AppleScript by Anonymous Coward · · Score: 0

    & Quicktime Pro. Cheap, easy and highly reliable/flexible to allow you the control you need.

  85. Not Windows But by bperkins · · Score: 1

    mpg123 -s foo.mp3 | perl -e ' $seconds = 2;
    $percent_chance = 25
    while (read( STDIN, $_ ,44100*$seconds*2*4)) { if (rand() < ($percent_chance/100)) {
    print $_ ;
    } }' >| /tmp/foo

    Breaks it up into 2 second blocks with a 25 percent chance of choosing each block ( which works better with your average mp3 you might have lying around than 30 seconds blocks and 5%)

    Output is raw 16 bit signed PCM

    sox -s -t raw -c 2 -w -r 44100 /tmp/foo -t ossdsp /dev/dsp

    will play it

    Adding a PCM header, re-mpeging the data and splitting into seprate files is left as a exersice to the reader.

  86. Re:Why the artificially imposed limit of Windows o by Osty · · Score: 1, Flamebait

    This is the sort of application that screams for a script, rather than some sort of drag-n-drool GUI windows-ish thing. There are several audio sampling and processing utilities over at sourceforge.net, which would be suitable for this sort of thing.

    Haha, "drag-n-drool," you are teh funnay, sir!


    Seriously, though, do you not realize that Windows has just as much scriptability as *nix, if not more? For instance, you could write a script in JScript, VBScript, or PerlScript using the Windows Scripting Host, or you could write a batch script using cmd.exe. If you need more power, you could install Python, Perl, Ruby, or any number of other scripting languages and have your way. If you must have that *nix environment, you could install Cygwin and get several shells like bash or zsh. Just because Windows has a GUI doesn't mean it doesn't have scripting (wait a second ... Linux has X and GNOME/KDE/etc, does that mean it's "drag-n-drool" as well? hrm ...)


    Maybe it's because my background is in the *nix world, but it'd be a half-day project to get this up and running done on a *nix box with something free from sourceforge.

    Bingo! It is your background. The same task in Windows would be a half-day project (or less!) for a skilled Windows programmer or admin (don't laugh!). Your skillset obviously doesn't extend to Windows, so it's understandable that you can't see how this could be just as easy, if not easier, in Windows.


    Usually one wants to design the solution to fit the problem, not to introduce more complexity by limiting what the solution can be chosen from. Doesn't seem to be the case in this guy's project.

    See above, where scripting is no more complex in Windows than in *nix. As well, if the guy knows Windows, and works in a Windows environment, using *nix for this one problem is going to add complexity.

  87. You Want Snack by cgreuter · · Score: 1

    The Snack library (homepage here) provides high-level manipulation of a wide variety of audio formats (including MP3) to Python, Tcl and Ruby. It's already been used to write several applications including a sound editor and an MP3 player .

    All of the scripting languages I listed also support the Tk widget set so you can get a GUI up and running quickly. Plus, since it's all cross-platform, you'll easily be able to port your work to *nix or MacOS.

  88. Re:I don't think this meets your privacy standards by casuist99 · · Score: 2, Informative

    Why is it hard to buy enough recorders? Simple. It's because they're using Pocket PCs running their custom software. It seems overly complicated for something that could be accomplished with a hardware recorder and later parsing via software. Why distribute a handful of expensive recorders when you can distribute many cheaper recorders? Academia confuses me sometimes - the objectives seem much less spectacular than the methods proposed to reach such objectives.

    To see what I'm talking about, check out the newest model of their EAR at the bottom of the page.

  89. 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
    1. Re:I refuse to help this dude by Alsee · · Score: 1

      Well, at least he didn't reffer to this as the third millenium.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    2. Re:I refuse to help this dude by Anonymous Coward · · Score: 0

      Mod parent up! That's a cool phrase---straight out of sci-fi. 'We developed this technology at the beginning of the Third Millenium of the Modern Era.'

    3. Re:I refuse to help this dude by tehcyder · · Score: 1
      Bunghole
      I do love the elegant cut and thrust of witty intellectual banter here on slashdot.

      --
      To have a right to do a thing is not at all the same as to be right in doing it
  90. Check-out Rogue Amoeba's software by quiksan · · Score: 1

    They've got some great sound apps. But it's the last 2 words of your post that probably negate these apps - they're for OS X. BUT, if you do check them out, Audio Hijack Pro would probably do what you need. They just released a new version, and it's incredibly feature-rich.

  91. It's Kinda been done. by Binnecard · · Score: 1

    Hello. I work in the radio industry and I'm fairly confident that the program you are talking about has already been done. There are HUGE radio research companies that pay people to have personal audio recorder devices on themselves (web search for "radio research people meter") which identify which radio stations they are talking to based on 'hidden' audio encoded into radio music. This seems to be a very specific type of project along the lines of the one you are embarking on. I also know that radio research companies know the likely hood of when a person is likely to be listening to the radio, so they must have done a fair amount of research into what people do with their days, and what audio they are exposed to. Perhaps (I stress this is very unlikely) if you approach one of these companies they may fund you're project if you can prove you are doing something more valuable than what they've already done?

  92. I participated in this study by espace · · Score: 1

    When Mathius was at UT Austin, I participated in this study. At the time I was living a bit of a wild life... just another dotcom burnout that barely touched a computer for 2 years.

    I retreived my records from this project - one 3 day session, and a week long session. After the first couple days I completely forgot I was wearing it, as did my friends.

    Now I have some excellent memories stored away:
    The first time I hooked up with that alcoholic ex-girlfriend... a friend bitching about coke heads... going out every night when the electronica scene was still strong in Austin... another friend detailing how my roommates and I would all end up with STD's...

    The best part of the whole experiment: My neighbors all became convinced I was a narc. Having a little mic pinned to your collar all the time makes some people intimidated...

    I've already accepted my fate: there is no such thing as privacy. My life is not important enough for anyone to care about the myriad of questionable activities that I was participating in during that period of my life.

    95% of the recordings were background music, heavy breathing while I slept, and other random ambient noise.

    I bet the transcriber had a fun time with my recordings. They put a dab of glue on the end of the mic to try and limit the recording radius... that did not work at all.

  93. 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.
  94. Re:Not difficult - How about dd? by Anonymous Coward · · Score: 0

    Sounds like a little bash shell, some /dev/random input and the use of the vulnerable dd command would do what you want.

    You could probably do it under cygwin under windows....

    Definately a CS Undergrad project.

  95. Re:develop... by Anonymous Coward · · Score: 0

    I suggest, since you are at a school anyway, that you swing by the computer science department and get some senior to do this for his independent study project.

    I don't know what kind of school you went to, but it mustn't have been a very good one. If you're allowed to do something so completely trivial for a senior project, then I'd already have 100 degrees from that place.

  96. use the pipe, luke by aminorex · · Score: 1

    mpg321 {sourcefile} | cut {put some arguments here}

    --
    -I like my women like I like my tea: green-
  97. sox: for all your automated audio-editing needs by chrylis · · Score: 2, Informative

    The SoX utility is quite useful for scripted or automated mangling of audio files. While a dedicated MP3-splitting program would certainly work just fine, SoX has a "trim" command that cuts a certain section out of the file; "sox trim [randomstart] 00:00:30" would grab 30 seconds starting from whenever you want.

  98. Those that can, do; Those who can't, teach by john_smith_45678 · · Score: 1

    Typical Academe. What essential tangible job skills does this exercise teach?

  99. Writing code. by Anonymous Coward · · Score: 0

    I'll do it for $650, with a VB gui.
    Reply to this message with an email addy.

  100. Re:I don't think this meets your privacy standards by kilgortrout · · Score: 2, Insightful

    Not to mention that surrepticious electronic recording is a felony in many states(ask Linda Tripp). You may want to contact your law dept. as well as your CS dept. However, I suspect that what you are really studying is slashdot social behaviour and your post is just a ruse to elicit responses. Forget it, we're on to you.

  101. 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

  102. Re:Not difficult - How about dd? by Anonymous Coward · · Score: 0

    use of the vulnerable dd command

    venerable?

  103. simple solution: lame, shell, dd, and maybe sox by zikzak+muzak · · Score: 1, Insightful

    most people are suggesting something complicated, but this is exactly what the shell and lots of little programs are for.

    1. use lame to decode the mp3 file to raw data

    $ lame --decode -t input.mp3 source.raw

    2. use dd to extract the bytes corresponding to the times you want. assuming you want 1 second clips and the input file is 16 bit 44k stereo, the dd command might look something like this:

    $ dd if=source.raw of=second.raw bs=176400 count=1 skip=30

    the above command will extract the 30th second from your sound and put it in second.raw

    3. if you want to accumulate all the seconds you've extracted, use cat

    $ cat second.raw >>total.raw

    4. writing a nifty little shell script and reencoding back to your desired format is left as an exercize for the reader. (hint: man sox; man lame; info bash)

    You can do all this on windows. just install cygwin. I do a lot of algorithmically generated music and video and i use basically the above approach when all i want to do is make a whole bunch of simple edits of sampled sound. You don't need any sound editing software for what you describe.

  104. rockbox and archos jukebox by bzzt · · Score: 1

    dunno why you have a high turnover on the hardware. sounds like the spec is pretty solid. you should just find somehting that works and stick with it. perhaps figure out where they OEM it from and get quantity straight from the manufacturer.

    you should solve the sampling at the device and not postprocess. there is the privacy issue, and the operating cost of 18 hours of continuous recording.

    ever seen an archos recorder running rockbox? would take little effort to make the code that runs on the archos to do the random sampling. has a built in mic, an mp3 ASIC, an SH1 processor, and a hard drive.

    open source firmware for the archos right --here--> http://rockbox.haxx.se

  105. customize the mic, not the player.. by pocopoco · · Score: 2, Insightful

    >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).

    Almost every recorder has a noise/voice activation mode and most of the ones I've used had a mic or line-in as well. So just have an external mic -> custom chip that cuts it off when needed -> recorder. I suppose you could crack open the player and get between the internal mic if you wanted to as well. Either way the custom bit will never go obsolete. I record lectures I go to and found quality is much better with a good external mic anyway, even if it's a pocket size one like the small Sony conference mics.

  106. Adobe Audition by SkippyTPE · · Score: 1


    Runs in windows natively, highly scriptable, can do eight types of frequency analysis and sample stats as part of the batch (all exportable as clear text)... and you didn't google this first because?

    1. Re:Adobe Audition by jerw134 · · Score: 1

      Audition is the first thing that came to mind for me too. It's the obvious choice.

  107. Comment removed by account_deleted · · Score: 1

    Comment removed based on user account deletion

  108. Turn the Microphone On & Off ... ? by Anonymous Coward · · Score: 0

    Why not put a timer on a switch that sits between the microphone jack and the microphone?

  109. STOP! IT'S A TRAP! by eVillager · · Score: 1

    > I am a professor for social psychology at the University of Arizona

    And I'm doing this research project on insular, mimetically inbred subcultures...

    --
    eVillager
  110. re: Sampling Short Sequences From Long MP3 Recordi by acfou · · Score: 1

    Hi Simoniker Please check out www.medleytuner.com I have developed this application to play RANDOM samples (you can specify min and max duration of sample) from any collection of MP3 tracks in a specified target folder on your webserver. For your large MP3 files, it is suggested you do this on a LAN. :-) Otherwise, medleytuner is already optimized for "streaming" through a web browser. Let me know if this fits your needs. - Augustine

  111. Avisynth... by Anonymous Coward · · Score: 0

    Though it's intended for more for video work... Avisynth (www.avisynth.org) is an extremely powerful scripting language for dealing with rich media assets. You can probably whip something up using Avisynth and a CLI encoder like LAME with minimal effort, using a simple shell script to "glue" everything together.

  112. Blank by desmogod · · Score: 0

    Maybe to get around any privacy issues is to put a "blocker" on the mic. It would work this way.... It would effectively turn off the mic for 50 minutes out of every 60, but still keep recording, then you run it through some software that just deletes the blanks.

  113. 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?
    1. Re:how about a conciseness algorithm? by Anonymous Coward · · Score: 0
      Mac OS X's "Summarize" service gives this three-sentence result:


      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...').... 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?
    2. Re:how about a conciseness algorithm? by SethJohnson · · Score: 1


      Wow! I haven't used that tool. I want to check it out. It did a great job on this guy's wordy essay.

      I've got Panther on my computer here. I'm off to go start fooling with it.
    3. Re:how about a conciseness algorithm? by JoeBuck · · Score: 1

      But then how will he ever get tenure?

  114. Easiest way on Windows.... by antoy · · Score: 1

    Is probably Windows Media Format SDK. If I remember correctly, you should use the DeliverTime function (which takes a timespan as an argument), and this will callback OnTime. Then you can just throw your dice and decide whether you wanna keep the sample batch or not. I've used it along with LAME to mix mp3s, it should work just fine.
    Contact me if you're stuck anywhere, I might be able to help.

  115. Use mpgedit... by mpgedit · · Score: 3, Informative

    mpgedit (http://mpgedit.org/) is an mp3 frame cutter that can easily handle this job. The size of the input mp3 file does not matter, mpgedit can handle anything you throw at it. You want to use the command line interface in conjunction with something like Perl or Python to pick random edit times and lengths. There are also Python bindings you can call directly if you are programming in Python.

    A brief command line example:
    mpgedit -e39-44 -e111-137 -e222-244 huge.mp3

    Will create huge_1.mp3 huge_2.mp3 and huge_3.mp3, 5, 26 and 22 seconds in length respectively.

    The script you need to write will generate a command line similar to this example, generating random time offsets and segment lengths. You can determine the total input file play time by running "mpgedit huge.mp3" and parse the time from the "Track length:" field.

  116. still illegal in many states by Anonymous Coward · · Score: 0

    A full recording of the type you propose would still be illegal in many states. And it would be a security/liability problem for your entire University.

    You may consider using a standard recorder, but add a small circuit on the audio input to silence the input at all, but the random times you want to sample. Such an addon should be simple to create (probably simpler than the program your thinking about - with the right skills) and would be reusable for other devices. The downside is you would probably double the size of the device.

  117. Side question ... by Etyenne · · Score: 2, Insightful

    Since you want to analyze ambient sound, should'nt you be using a lossless codec instead of MP3 ?

    --
    :wq
    1. Re:Side question ... by Anonymous Coward · · Score: 0

      a) He's a social psych prof, not an engineer
      b) It's the U of Az, for cryin' out loud...

  118. Is that legal? by suwain_2 · · Score: 4, Insightful

    I'm not sure that your proposed solution fits with your previously-mentioned privacy concerns. Sure, you'll only see a given part, but you're still recording the whole thing.

    It'd be like having the FBI record your calls 24/7, but only listen to them if something came up, or having police be able to raid your house the moment they suspected you, but not look at what they gathered without a warrant. Even if they were completely honest in carrying it out, it's still too Big Brother-ish.

    I think that, if the requirements say you can only record brief snippets, then you can only record brief snippets; not record everything and only listen to brief snippets. While it's the same from your perspective, it's not the same in terms of what's actually happening, and it sounds like it's completely bypassing your privacy concerns.

    If you're already designing an external microchip, why not design a whole little recorder?

    --
    ________________________________________________
    suwain_2 :: quality slashdot p
    1. Re:Is that legal? by dave420 · · Score: 1

      The police and FBI are government agencies whos only action involving you and that evidence would be your indictment. We're talking about a college professor here, not the stasi. I can understand all you privacy zealots crapping yourselves over this one, but just let it go. It's opt-in, anyway.

    2. Re:Is that legal? by sploxx · · Score: 1

      If you're already designing an external microchip, why not design a whole little recorder?
      ACK. Shouldn't be too hard. For example, use an Atmel AVR 8-bit microcontroller and a DiskOnChip flash memory (really cheap for the 8-16MB range) + an electret microphone. All neccessary parts for 10EUR/$ and great flexibility.

      I would also have severe privacy concerns with always-on recording and later editing.

    3. Re:Is that legal? by laird · · Score: 1

      You have a lot more faith in the willpower of college professors than I do. I think that the temptation to pick out embarassing bits for private amusement (which would inevitably leak out) is too strong.

  119. I was at the UofA a few years ago.... by ferrocene · · Score: 1

    and I don't remember a psych department! Fraud, I say!

    Oh wait, that's because I was in the CompSci dept and never saw the rest of the school. I was also in the music school (took some piano classes) and started out in engineering, so I know they have a decent electronics dept. (or what I'd call computer engineering).

    So yes, of course the UofA has the resources. Just ask that feller who helped JPL send the first mars rover up (and perhaps even the second), or that huge lens they made, or Dr. Weil, or the 1998 Wildcats...or the new Student Union.

    Yeah, they have resources.

    Scary rescources.

    --
    Most folk'll never lose a toe, and then again some folk'll...
  120. Re:develop... by hobo2k · · Score: 1

    Dude, the word Windows does not imply a GUI. It is a statement of the operating system. He is really just saying: don't point me a ELF binaries.

  121. time compression by denleschae · · Score: 2, Interesting

    Basically what you want to do is some time compression. You can do that by means of granulation or a FFT. Most audio applications already have time compression/expansion plugins built in to them. Sound Forge, Pro Tools Free, Live and Cool Edit are some of the commercial programs that come to mind. You could also build a stand alone program fairly easily with Csound, Max/MSP or Pure Data. These are audio programming/scripting languages. Csound and Pure Data are free. You just need to know a little about digital audio to make a program with any of those languages.

  122. Ask Greg Abowd by baxissimo · · Score: 2, Interesting

    I can't find anything on his web page about it, but Greg Abowd, a professor at Georgia Tech has been working on continuous capture. He has some pda/cell phone software that his group has been working on which allows for continuous capture of audio. He also knows a lot about the laws regarding such recording. Not all states/provinces allow it, but many do.

    I think his goals are more along the lines of automating segmentation and indexing of the audio for easy searching of your entire last day/week/year/decade of conversations with people.

    Anyway, you might be interested in the kinds of things he's doing. But actually picking out random snippets of mp3 audio should be a trivial coding task. I'm sure there have already been a dozen libraries/scripting tools/command-line solutions proposed already in previous posts.

  123. Re:develop... by Anonymous Coward · · Score: 0
    Dude, you are so l33t.

    Does it make you feel better to come into a conversation only to add nothing at all constructive but merely display your insecurity, as manifested by your need to assert your scholastic superiority to the parent?

  124. MPGtx - Command-line splicing goodness! by Anonymous Coward · · Score: 0

    Awesome toolkit.

    http://mpgtx.sourceforge.net/

    I haven't used it on Windows, but on Unix it's been great to me. A very easy way to splice up MP3s, via the command line. Then all you need to do is write a short Perl (or similar) script to splice up the files.

  125. mpgedit is what you want by zot+o'connor · · Score: 4, Informative

    This is what you want:

    mpgedit has a -e flag so you could do

    mpgedit -e 1:20-1:30 -e 600:20-601:10 -f file.mp3

    Would grab from 1 minute 20 seconds to 1 minute 30 seconds, and from minute 600, 20 seconds to minute 601, 10 seconds of file.mp3 into file_1.mp3 and file_2.mp3

    I use it to cut the 2 hour mp3 of the bbc news hours into 5 minute chunks so my mp3 player will let me skip segments.

    With a bit of scripting you could do random cuts of any size mp3.

    It claims to work under windows, but I have not tested it there.

    --

    --
    Zot O'Connor
    1. Re:mpgedit is what you want by Anonymous Coward · · Score: 0

      obviously the 'professor' isn't up to 'a bit of scripting' or he would have done any google search and the obvious shuffling solution. (The whole write-up smacks of idiocy. I don't buy the whole 'we used to have a whole chip to do it' solution either.)

      Anyway, you probably need to submit a full Perl script to help the poster out, along with a link to the windows distribution... :(

  126. How can you miss it? by Hi+I+Am+Timbo · · Score: 1

    How can you miss that joke? That should be the most famous line in VH1 history!

  127. Re:Lame + SOX + Cygwin by Anonymous Coward · · Score: 0
    or try this: use the dos version of sox, and do no filetype conversion, and then all you need is to generate a random number on the command line.
    sox <input-filename> trim <start> <length> <output-filename>
    with start and length being random/pseudorandom numbers. no need to convert out of mp3 before editing.

    or, on a unix-like system, you can use dd (thanks to the design of the mp3 file format)
    dd if=<input.mp3> of=<output.mp3> skip=<random-number> count=<random-number>
  128. Here's a General Duty Program To Do This+LotsMore by Anonymous Coward · · Score: 0

    If you don't want to go the programming route, Automate v5.5 is a great shareware Windows-based general duty automation program that can easily handle this task and any others you may come up with, so it could be a very valuable tool for you. You don't have to do any coding or programming, so those with little or no programming experience can use it. It does amazing things. It also supports VBA and executable calling style programming if you wish to go in that direction at a later time. 15 day full function trial version: http://www.networkautomation.com/downloads/ or from the PC Magazine web site: http://shareware.pcmag.com/product.php%5Bid%5D4978 %5Bcid%5D62%5BSiteID%5Dpcmag regards

  129. An Alternative by Anonymous Coward · · Score: 0

    Have you considered a software-based approach? Many voice recorders have flash firmware, and if you're currently adding a chip to the recorder, you should be able to flash the firmware.
    The idea is to reflash the device with a modified Vorbis (.ogg) encoder that only encodes random samples. You can get the base file encoder software via CVS from Xiph at (http://www.xiph.org/cvs.html). You could then, fairly easily, modify the encoder to randomly skip periods of time and only encode the input as a series of randomly selected samples (perhaps separated by short periods of silence or very short "marker" tones so your analysis software has an easier time finding the breaks). You could even include a short bit of code to start a new file every so often (hourly, N times/day, etc...). The beauty of the approach is that, if the software's well written, you should have very little trouble adapting it to new recorder hardware, and the result files are completely open.
    If you're looking for assistance in writing the software, your sister institution in Tempe, ASU, has a service you should be able to work with called the "software factory" at (http://sf.asu.edu/) which is set up specifically to assist researchers in creating the software they need to complete their research.

  130. I don't get it by gsasha · · Score: 1

    You have been able to manufacture a microchip to control the recorder, and you can't find how to write a simple program like this? Suspicious.

    1. Re:I don't get it by Anonymous Coward · · Score: 1, Informative

      It's pretty simple, the University he's at has a pretty good chip fab at their Electrical/Computer Engineering department. They design, and sometimes build, small chips for research projects all the time, it gives the grad students something to work on for class projects. They may also have used a standard FPGA, which any 3rd-year undergrad could program for this purpose in a couple of weeks. I suspect he's not so much uncertain how to find someone to get the job done, as wanting to be able to provide some sort of general direction for the work, since these types of efforts are notorious for sucking up excessive dollars from the grant budget, and he's unlikely to have very much available in the first place (Psych grants aren't exactly the most generous around).

    2. Re:I don't get it by d474 · · Score: 1

      What's even more suspicious is that the if you check out "their" website, they are currently using PDA's with sofware already on them! They show pictures of it in Widows CE. No mention of custom chips!

      I think the poster found the website on google, is posing as this professor, and is asking for advice on a totally different project...very dubious.

      --
      Authority questions you. Return the favor.
  131. U guys suck! by Anonymous Coward · · Score: 0

    This guy is not a nerd like the rest of us here. He is asking for help and you bash him for asking. What might seem simple to us is unimaginable to him. Sure he might work in on department on the Uni but it's not next door to the computer lab, music lab, and on the way for geeks to notice. You can pull out some whoopee Perl script or a one liner and say it is easy--but how long did it take you to learn how to do that? How long did it take you to learn all about a computer before you got that far? Any how you geeks are really tough! Why bash someone that asks for help? It's not like he asking how to mount a cdrw because he has it in he /mnt dir.

  132. How about Python. by ahfoo · · Score: 1

    I've never written anything in Python, but I notice that there are libraries for editing MP3s. If you or someone you know someone who uses Debian you can download those libraries easily and if you want a GUI that runs on Windows you should be able to do that as well.

  133. MAX/MSP by TibbonZero · · Score: 1

    You can do some amazing audio programming with Max/MSP. You should be able to write something that takes the file and cuts it up just right.

    Either that or CSound (www.csounds.com) should be able to take care of it (and it's free/multiplatform, and easily expandable in C++)

    --
    Tibbon
    tibbon.com
  134. ZSH by Anonymous Coward · · Score: 1, Informative
    What's this "..." business? Fill in the blanks?

    This gets you, after you fix the compiler error, *a* chunk. Yes, Perl rocks, but you don't have to mislead people. I guess you could just run it 100 times if you wanted 100 chunks... That ain't right.

    You need to specify each of the chunks with something like

    sub chunks { for (0..$_[0]) { push @c, [rand(86400),30] } @c }

    added in. Then your code becomes

    perl -MMP3::Splitter -e 'sub chunks { for (0..$_[0]) { push @c, [rand(86400), 30] } @c }
    $c=shift @ARGV; mp3_split($_,{},chunks($c)) for @ARGV' 100 filename.mp3

    Maybe you can find a more concise way, but I couldn't get the 'x' operator to build distinct random values. ( e.g. ( rand 10 ) x 5 )

    And, btw, 64800 is an 18-hour day. Maybe you intended that, but I bet you just remembered 86400 wrong. I too have bad memory, so I did the calculation.

    Here's a broken zsh+mplayer version:

    RANDOM=`dd if=/dev/random count=1 bs=100|md5|sed -e 's/[a-z]//g'`
    duration=86400
    grade=1200
    time_in dex=0
    chunk_number=0
    while [ $time_index -lt $duration ]
    do
    randcent=$(( $RANDOM * 100 / 32768 ))
    increment=$(( $randcent * $grade / 100 ))
    time_index=$(( $time_index + $increment ))
    if [ $time_index -lt $duration ]
    then
    chunk_number=$(($chunk_number + 1))
    echo Recording chunk $chunk_number from $time_index
    mplayer -ss 0:$time_index -dumpstream
    mv stream.dump sample.$chunk_number.idx_$time_index
    fi
    done

    problems:
    * must be run with zsh as far as i know (requires $RANDOM magical variable and
    in-shell math using $(()) )
    * must have mplayer installed
    * you are not guaranteed a fixed number of chunks
    * your md5 tool is probably named differently from mine
    * each chunk starts at the right time index, but continues until the end of
    file! i don't know how to tell mplayer to "play for" (that is, play for
    only a specified time, like 30 seconds)
    - this is the serious problem with this method
    - you can try yourself to find out if mplayer can "play for"
    - you can truncate the files using dd, but then you might break frames
    (not that big a deal i guess), and you have to know the byte size of the
    time you want to truncate to, which i think is not at all trivial
    - you might be able to use a timer to HUP mplayer after 30 seconds
    caveats:
    * the "grade" of 1200 indicates the possible range to leap to the next chunk (in seconds). on average you will leap half way, 600 seconds (10 minutes). you will not, with this method, leap further forward than 20 minutes. this peculiarity should clarify for you that you need to more strictly specify the kind of randomness you want
    * seeding with /dev/random is costly and may give you more randomness than you need. consider /dev/urandom or other sources for performance's sake.

    This is untested code, any warranty of fitness for anything other than amusement is hereby expressly disclaimed.

    A version of the zsh program that iterates n times and grabs a chunk from a totally random time during the day, like the Perl program, would be simpler to write. All we need is a good command line tool to get a segment of MP3.

    Heck, why not:


    RANDOM=`date|sed -e 's/[^0-9]//g'`
    for i in {1..100}
    do
    idx=$(( $RANDOM * 86400 / 32768 ))
    great-mp3-tool --start $idx --duration 30 -o chunk_$i.mp3 mp3file.mp3
    done

    Amusingly, Perl can be that great command line tool.

    perl -MMP3::Splitter -e 'mp3_split(shift,{},[shift shift])' filename.mp3 $time_index 30

    It's late. I apolo

    1. Re:ZSH by Fastolfe · · Score: 1
      What's this "..." business? Fill in the blanks?

      Yes.

      I guess you could just run it 100 times if you wanted 100 chunks...

      That would be an easy solution for someone that didn't want to "fill in the blanks."

      If you were more interested in brevity than readability, you could replace
      [ rand(64800), 30 ]
      with
      map {[rand(64800),30]} 1..10
      to get 10 of them. There's probably a more elegant solution though. I'm in a meeting and am somewhat lazy.

      And, btw, 64800 is an 18-hour day. Maybe you intended that

      I did. The requirements indicated 18 hours of audio would be recorded per day. I suspect they don't really care about the sound of the participant sleeping.
    2. Re:ZSH by phats+garage · · Score: 1

      Just like a programmer to ship untested code.

  135. Pick me! Pick me! by d474 · · Score: 1
    OMG, think of the possiblities on how you could play jokes on these researchers!
    1. strange conversations...with no one...

    2. nasty bathroom noises...
      "I forgot to turn it off before I got into bed with my girlfriend..."
      ambiguously legal/illegal activities...
      keyboard typing sounds... all...day...long...
      just leave the recorder in a sorority bathroom...
      leave the recorder in your bosses desk...hmmmm...
      a 30 second blood curdling scream in the middle of a normal day...
      a big fat bong hit followed with the next 20 clips of a eating/munchie sounds...
    any other ideas?
    --
    Authority questions you. Return the favor.
  136. 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.
    1. Re:I'm so glad I'm not American by Daetrin · · Score: 1
      You know, usually when i hear non-Americans making negative comments about American colleges and universities, it's them being in shock about how _little_ our taxes go into such institutions and how much the students have to pay for themselves.

      I'm not sure which particular country you're from, but unfortunatly (from your perspective) the schools in your country probably have psychology departments of their own, and are probably doing experiments that you would consider to be just as useless, and you're probably paying more in taxes to support them than the people in America are.

      --
      This Space Intentionally Left Blank
    2. Re:I'm so glad I'm not American by pandrijeczko · · Score: 1
      I'm from the UK and, yes, we pay taxes for a lot of teenagers to go avoid work for 3-5 years by doing courses like "media studies" - yes, I object to that also.

      The only thing worse is one of those wastrels trying to convince us he/she is actually doing something useful with our money by releasing some paper that has no bearing or influence on anything in society.

      --
      Gentoo Linux - another day, another USE flag.
  137. Very simple solution by AmiMoJo · · Score: 1

    MPEG audio streams are divided into frames. Most players can ignore random data and look for the frame headers, so you could just write a simple program to randomly cut x bytes from the mp3 and it would probably play fine (with a short (1 sec) delay at the start).

    The other alternative is to randomly seek into the file and look for the frame header. Slightly more work but still easy. Get a first year programming student to do it.

    --
    const int one = 65536; (Silvermoon, Texture.cs)
    SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
  138. Re:develop... by dave420 · · Score: 1

    Obviously, but the guy wasn't saying "windows" as in "a segmented graphical display", but "the operating system". He wants windows-based 'cos he uses windows. Fair enough. That could be a command-line app or anything.

  139. Max/MSP by h0h0h0_ · · Score: 1

    Max/MSP programming environment has what you need - it can process audio.

    --
    -.Shaun.-
  140. Re:develop... by cyberkreiger · · Score: 1

    "killall -9 cat" ?

    Are you sure you're not drunk?

    Seriously though, don't "kill -9" anything without reason, and especially do not "killall" a common utility like "cat" which might be running invoked from another process at any time.

    --
    Stumbling in the dark
    I hear slavering of jaws
    Eaten by a grue.
  141. mp3splt covers this by zugzwanged · · Score: 1

    mp3splt is a simple command-line/GUI tool for doing this kind of thing. There's a windows version available.

    1. Re:mp3splt covers this by fizze · · Score: 1

      and a new version has just been released :) freshmeat.net is your daddy :D

      --
      Powerful is he who overpowers his temptations.
  142. words by KarmaBurned · · Score: 1

    "Police" services should they exist should use this stuff "how about a study in law enforcement etc.." although audio isn't all however teh stochasm of visual elements as well.. although I feel its more a matter of having the directory services available for law enforcement as well. At the same time what about streams from DHS services? perhaps donations of unclassified audio samplings as for the program I'm not aware of any automated samplers however say using a program like CREC creative recording which came with sound plaster live you can choose a record what I hear option and you could just click a few time on say windows media and the clips you hit in the recording would be recorded. The question is what do you plan on doing with the audio clips and how many are there. Where it may be practicle to use the first method for a few "participants" in the case of 308480 samples which are going to be statistically "sampled" digested.. used for statistical characteristics of frequency amplitude time of occurance etc.. etc.. to make a "statistical database" with the sampling being used to reduce overhead of processing another method would proly be prefered. In the case of datasampling for statistical analysis at set ranges you could make a shell for sampling a scipt which you said in english start at 0 sample start a loop go 30 seconds from previous point sample continue until no time is remaining in recording the basic idea of this program would be it should have a codec for the type of sound (wav) that is being used. Wav is the "basic" audio format used in cds etc. Sampling rate and audio type stereo or mono are the basic considerations if you only have one point of sound then its going to be mono and the sampling rate will most likely be the highest audio quality of your sound recording source 41k is around cd quality. Not to turn this into an audio lesson. Its just a matter of being able to know the way data renders playback taking the data chunks at time markers in the data. I actually havnt read how a wav file stores its data and should really do that. here are some links http://ccrma.stanford.edu/courses/422/projects/Wav eFormat/ THIS one is VERY informative on actual simple programming methods http://www.4front-tech.com/pguide/audio.html ok if your using bigbrother type system with sounds from everywhere being statistically analyzed perhaps devilishly for specific "fingerprint" sounds like fingerprint visual characteristics of some surveilance systems it would be something like this input stream (if backlogged) to storage point feeder system for loader of data to be processed sound is processed using dsp system(note that DIGITAL SOUND and ANALOG SOUND are not identical. The human ear processes data in analog at a range of what is said to go up to 20khz however noises of all frequency ranges interact and have harmonic effects (those are stochastic elements) which create effects in audible levels. Not only this however the human body both physically and mentally are effected by these ranges. For instance ultra low or ultrahigh frequencies can have potentially lethal effects. There have been psychoacoustic studies which have displayed that ranges that may not be "perceived" to exist can still very much effect the human. At the same time kinetic energy can create energy exchanges of other types which both effect mental condition and physical condition. sound is then transfered to a either one sample file. how this file works either as a compliatioln of a group or block of samples or wether it is a whole bunch of very small files or rather what would be 2880 1second clips so 38 minutes per day per individual the actual source routines I would geuss would depend on the language it was written in and may be dependant on the hardware used. then each file would be written. If dealing with a LARGE amount of data gigs and gigs of data a good compression system that can take the data and create layering (like mpeg) only the more data (if for storage ) that is used for a "example" from binary to x layer means the more encryption blocks can be made. Which would be something to consider for large amounts of data. So depending on the project size I could see a bunch of different approaches.

  143. www.medleytuner.com by acfou · · Score: 1

    this is a simple piece of code in which you can set the min and max duration of the sample-clips you want to play and it will go into your MP3 track and randomly pick a sample to play. If you loop it, since the MP3 is so long, inevitably it will play different samples from different places and of different durations.

  144. Scriptable editing software by Dithermaster · · Score: 1

    You could do this with a script in Sony Vegas http://mediasoftware.sonypictures.com/products/sho wproduct.asp?pid=914. You could use VB.NET or JavaScript to write a script that loaded your long MP3 on the timeline, diced it up into shorter samples, and rendered back out. You could also apply normalization or companding filters along the way, and even include video showing the time-of-day or whatever.

    --
    ///d@
  145. Don't run that thing... by dnahelix · · Score: 1

    ...around me!

    --
    Slashdot Eds Link Anonymous Posts With Logged Posts
    They Are Vermin Feeding On Each Other's Feces.
    I Hate \.
  146. Privacy by QuietRiot · · Score: 1
    If the voice recorder has "VOX" record capabilities then you could design a mute circuit that gates open at random times for either a random or fixed interval. This would save you the record time (get a week's worth rather than uploading every day) and you wouldn't need to mess around with splitting files or worry as much about privacy concerns.

    I realize onboard soldered electrets may be a problem but if you've got recorders that are using external mics this could work. This is unlikely but I thought I'd mention it anyway. (I wish more "voice recorders" would provice external microphone inputs....) This method would throw away much chance of gathering data on when the recorded snippits were made however- not sure it that would matter.

  147. Re:develop... by Frizzle+Fry · · Score: 1
    You don't need any GUI or any fancy interface.

    I don't remember anyone saying that he wanted a GUI or a fancy interface. What he said is that he wants something that runs on the Windows operating system. A Windows program doesn't require a GUI anymore than a Unix program does. In fact, when you start a new "project" in Visual Studio, one of the first things you choose is whether it is to be a GUI app or a console app.
    --
    I'd rather be lucky than good.