L
L
lucius2013-11-20 10:06:58
linux
lucius, 2013-11-20 10:06:58

How to write a script to automatically record sounds?

There is the following task:
If there is any sound, then the recording automatically turns on and fixes the sound in the file. Moreover, the name of the generated sound files must contain a time stamp - the beginning of the sound recording.

I found a similar solution .

$ rec -t wav - silence 1 0.1 3% -1 1.0 3% | lame - >record1.mp3

but here the sound is written to one file, and I need the sound to be in different files, for example:
rec-20131120-14_42_08.ogg
rec-20131120-14_42_57.ogg

Experiments with the script did not give any sense.

It will be absolutely ideal if each file contains sound from the beginning of its appearance and after 20 seconds it has stopped. I mean, if the sound resumes again 10 seconds after the appearance, then the recording will continue to the same file.

PS There is also an Audio Recorder program , but it does not work well enough.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
merl1n, 2016-03-22
@merl1n

You can even make a Java solution for automatic sound recording
privateblog.info/detektirovanie-zvuka-na-java

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question