r/linux_programming • u/ShlomiRex • Sep 23 '19
Game Voice Changer - Read microphone, Apply "voice", Output to virtual microphone device
I record raw microphone with:
pacat --record -d alsa_input.usb-0c76_CMTECK-00.analog-monoand it works.
Now I want to add "voice" to it, change it's pitch, and more, for games. So I pass the output of pacat to:
sox -t raw -r 16000 -c 1 - virtmicwhere virtmic is the filename . It doesn't recognize the stdin . Can you help me?
I tried removing the '-' but it says :
sox FAIL sox: invalid optionMy full command:
pacat -r | sox -t raw -r 16000 -L -b 16 -c 1 - virtmicOutput:
sox FAIL formats: bad input format for `-': data encoding or sample size was not specifiedI created virtual mic with this command:
pactl load-module module-pipe-source source_name=virtmic file=/home/shlomi/virtmic format=s16le rate=16000 channels=1And I disabled auto-defaulting of input device , so that it records from my mic:

7
Upvotes