Sponsor

Voice Changing on Linux with SoX

Overview

 See the commands below from the SoX software package, to change your voice!

Linux Commands

		
roberto@beto:~$ play "|rec --buffer 2048 -d pitch -300 echos 0.8 0.88 100 0.6 150 .5 band 1.2k 1.5k"
roberto@beto:~$ play "|rec --buffer 2048 -d pitch -100 echos 0.8 0.88 100 0.6 150 .5 band 1.2k 1.5k"
roberto@beto:~$ play "|rec --buffer 2048 -d pitch -100 echos 0.2 0.28 100 0.6 150 .2 band 1.2k 1.5k"
roberto@beto:~$ play "|rec --buffer 2048 -d pitch -100 echos 0.5 0.28 100 0.5 150 .5 band 1.2k 1.5k"
roberto@beto:~$ clear
roberto@beto:~$ history 
roberto@beto:~$ man rec
            

Sox MP3 Support

sudo apt install libsox-fmt-mp3

Sox converting for Arudino Microcontrollers

From what I can tell sound APIs for mirocontrollers (Arduino and Adafruit compatibles) require in this format PCM 16-bit Mono WAV files at 22KHz sample rate .

To convert an MP3 to that format with sox use a command similar to the following:

sox Blaster-3.mp3 -r 22050 -c 1 -b 16 Blaster-3.wav

-r is the sample rate
-c is the channel count, 1 -> monochrome
-b bit depth