Tuesday, May 15, 2007

Recording Progress

Quick Update on the Recording Phase of the Project.

Basic Database implementation organised tonight, I've written a quick little processing program that records a .wav from the microphone ( or other audio input ), saves it to a .wav file with a dynamic filename ( based on the time / date - entirely unique ). It then talks to the mySQL database I've got running, copies the data into the table :

recordingid (filename - unique key)
category (love, money, health, happiness, luck, fortune)
starsign (obvious choices here)
sex (m or f)
screened (0 or 1, determines whether or not the audio file has been "checked" for idiotic behaviour).


The latest test run of the program provided me with a .wav file entitled : 2007515141244.wav, an appropriate table entry in the database, and the following console output :

Recording Started.
Finished Recording. 253952 bytes written to : 2007515141244.wav
number of rows: 1
Data Written : 2007515141244,"love","leo","m",0


Awesome.

No comments: