VOX recording on a Raspberry Pi?

Status
Not open for further replies.

rgeldart

Member
Joined
Mar 13, 2015
Messages
19
Reaction score
1
Location
Truro, Nova Scotia
Hello everyone, I am looking for some assistance with setting up VOX recording on my Raspberry PI. I want to have the Pi record radio traffic and continuously save it to one file until the machine reboots every night where it will then create a new file once the program restarts.

I want to truncate the dead air. I've tried a program called SOX and it works well however it waits for radio traffic, records, then terminates after a specified number of seconds. It will not continuously record until I tell it to stop.

I've experimented with a number of bash scripts which will reboot SOX every time it terminates but this seems silly..

If anyone knows of a successful fix to keep SOX running or another program for Linux which will do the trick, please let me know..

Thanks!
 

a417

Active Member
Joined
Mar 14, 2004
Messages
4,669
Reaction score
3,529
Have you adequately researched the "silence" and "clobber" options found on SoX's man page?

How long is it running for before it terminates? is it fixed time then an errorcode?
 

a417

Active Member
Joined
Mar 14, 2004
Messages
4,669
Reaction score
3,529
ugh, no editing here...thaasright.

Ok, ignore my previous one. When you run sox from the prompt, how long is it running for before it shuts down? Are you getting an error code or an exit status when run? Are you trying to save the file locally to the Pi's SD? Do you have enough room? Is it so large it has filesystem constraints? Does sox run appropriately when NOT used with the "silence" option? Can I ask why it has to be ONE file?
 

rgeldart

Member
Joined
Mar 13, 2015
Messages
19
Reaction score
1
Location
Truro, Nova Scotia
Hi the problem I am having with silence is that it works like it is supposed to. It will sit idle and record when the first message comes across however as soon as the radio traffic ceases it idles for the specified time I set in my syntax and then sox terminates like it is designed to. What I need to figure out is how to keep sox going and keep recording to the same file?
 

a417

Active Member
Joined
Mar 14, 2004
Messages
4,669
Reaction score
3,529
Can you post what command you are using? I'd like to see how you're trying to accomplish this idea...
 

rgeldart

Member
Joined
Mar 13, 2015
Messages
19
Reaction score
1
Location
Truro, Nova Scotia
This is what I started using.

You have to excuse me I am not a guru with command line at all.

rec output.wav silence 1 5 7% 1 0:00:10 7%

I've been looking at building a script with a variable as the filename but would like for the program to ideally run in a Screen hidden in the background running continuously.

Thanks for your help.
 

kb8zxe

Member
Joined
Jul 6, 2004
Messages
73
Reaction score
0
Location
Wakefield, MI
I'm just throwing this out there, not sure if it will work for you or not. I know SOX can join files, perhaps you can use a script to join them. I have played around with sox a fair amount but can't say that I have tried this.

Good Luck!
 
Status
Not open for further replies.
Top