voice changer for raspberry pi

Discussion of all things Raspberry Pi / Raspberry Pi 2 related

Moderators: MattKingUSA, khz

Post Reply
knoxvilles_joker
Posts: 2
Joined: Mon Jun 05, 2023 5:57 am

voice changer for raspberry pi

Post by knoxvilles_joker »

Well I am trying to get a better voice changer setup for my working joe costume from alien isolation. Right now I have an adafruit wave shield voice changer but the hardware is too prone to interference.

I managed to get an xvive phantom power injector, a rode lavalier pro microphone along with a phantom power reducer adapter. And have that adapted down to a 3.5mm adapter down to a usb dongle for a pi zero w.

I will have to switch to a pi 4 when I get a chance as I think the DSP functionality requires a little more processing power. That should fix the delays I am seeing.

Regardless it does work so I am working on trying to accuratize the voice.

So for now I am doing a single command line so I can later port it directly into a python script and add it to run at boot up.

This is what I have so far:
sleep 0.2|play "| sleep 0.4 |rec -d pitch -350 equalizer 100 50 12 equalizer 900 50 -46 equalizer 2500 50 12 gain 5 tempo 0.68 compand 0.1,0.5 1:-10 vol 0.8 treble 0.6 phaser 0.6 0.66 3 0.6 2 -t"

This is what I am trying to replicate:
https://www.youtube.com/watch?v=zIVgMddH66o

This is a short video I shot of the adafruit voice changer before I made some tweaks to the setup. I found using it as a throat mic with the elecrolet max4466 board seemed to work ok but I had severe issues with background noise.

https://www.youtube.com/shorts/Eb3zw5TnOSM

I found someone had built a voxel template for the working joe:
https://steamcommunity.com/app/214490/d ... 657298769/

These are the voice settings in that voxal profile:

3band equalizer
gain 100hz 12db
gain 900hz -46db
gain 2500hz 12 db
voice pitch shifter
50%

amplify
gain percentage 400%

distortion
degree 78%
level -10db

compressor
threshold -10db
ratio 1.00
attack time 100ms
limit 4db
release time 500ms

I think I had implemented most all of those settings but had to tweak them based on the hardware and software in use.

Any thoughts on what effects I need to play with on the rec option using sox?

knoxvilles_joker
Posts: 2
Joined: Mon Jun 05, 2023 5:57 am

Re: voice changer for raspberry pi

Post by knoxvilles_joker »

DSP delays are plaguing me with the pi zero w. I will switch over to a pi 4 which is significantly beefier and is hoped to fix the issue.

This seems to get an ok robot voice and OK for my needs:

sleep 0.2|play "| sleep 0.4 |rec -d pitch -350 equalizer 100 50 12 equalizer 900 50 -46 equalizer 2500 50 12 gain 5 tempo 0.68 compand 0.1,0.5 1:-10 vol 0.8 treble 0.6 phaser 0.6 0.66 3 0.6 2 -t bass -7 overdrive 10 echo 0.8 0.7 6 0.7 echo 0.8 0.7 10 0.7 echo 0.8 0.8 5 0.7 echo 0.8 038 5 0.7"

I will try to see if I can engage other resources from the game makers.

Unfortunately I am not finding a lot of recorded settings on what folks have done to make robot voices.

I also found that this setting fixed the alsa under-run errors I was seeing:
/etc/pulse/daemon.conf
default-fragments = 3
default-fragment-size-msec = 10

Post Reply