[quote="scidave":2doapyaa]You could do this with Python:
chunk = 1024
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 44100
RECORD_SECONDS = 5
p = pyaudio.PyAudio()
stream = p.open(format = FORMAT,
channels = CHANNELS,
rate = RATE,
input = True,
output = True,
frames_per_buffer = chunk)
print "* recording"
for i in range(0, 44100 / chunk * RECORD_SECONDS):
data = stream.read(chunk)
# check for silence here by comparing the level with 0 (or some threshold) for
# the contents of data.
# then write data or not to a file
print "* done"
or Csounds w/ Python support:http://www.csounds.com/journal/issue6/p ... codes.html
[u:2doapyaa]You are a god
i have been looking for this solution for over a year!
Phython is something i am still struggling to understand?
If you get the time, will you post me a step by step on this(or a cap)
Thanks a lot [u:2doapyaa]scidave