Hi,
Ive got sox working through the command terminal
export AUDIODEV=hw:0,0
rec rectest.wav
how does this work as a python script? I have tried
import os
os.system("export AUDIODEV=hw:0,0")
os.system("rec rectest.wav")
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
Segmentation fault
Very basic question I guess, thanks in advance!