Forgot your password?
typodupeerror

Comment Re:Super. (Score 1) 46

I solved this problem for my wife a few months ago. She is an avid police scanner listener. She listens every night and sometimes during the day. She calls them her "bed time 'tories" (that's "stories" pronounced like a little kid).

I split the problem into several pieces.
  1. A standard audio recorder with VOX capability that creates a new file for each sound bite and puts it in a temp folder.
  2. I created a python script called tory_maker.py that takes the each file in the temp directory and parses the filename and the timestamp and puts the information about the file in a MySQL database (although any database would probably work) and move the file to the active directory. It was easier to keep the actual mpeg file on a SAMBA drive than put them in the database
  3. I created a second python script called tory_time.py that is the user client. I used the pygame package to give me mpeg playing and some UI options. I included the standard pause, rewind, volume, mute, skip, etc. controls. It keeps track of which tracks each user has heard or tagged. I have several play modes:
    • "live"
    • play everything I haven't heard yet
    • play starting from a certain timestamp
The code is not in a state that I could post it (personal logins and passwords in the code, etc) but I could clean it up if people are interested.

Mark

Slashdot Top Deals

"The value of marriage is not that adults produce children, but that children produce adults." -- Peter De Vries

Working...