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.
Mark
I split the problem into several pieces.
- A standard audio recorder with VOX capability that creates a new file for each sound bite and puts it in a temp folder.
- 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
-
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
Mark