Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sox output as virtual mic in ALSA?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Silent-Hunter
n00b
n00b


Joined: 07 Jul 2013
Posts: 70

PostPosted: Sat Mar 08, 2014 6:22 pm    Post subject: sox output as virtual mic in ALSA? Reply with quote

What I want to do, is use sox as a voice changer for Teamspeak in online games. I have got the voice changing bit down, but how to I edit .asoundrc to make a virtual ALSA device that Teamspeak will see as a microphone? Or any other application for that matter.

My .asoundrc contains this, although it doesn't appear to work:

Code:
pcm.sox {
    type file
    format "raw"
    slave.pcm "default"
    file '/dev/null'
    infile '/home/silent/soxpipe'
}
Back to top
View user's profile Send private message
Ant P.
Advocate
Advocate


Joined: 18 Apr 2009
Posts: 2280
Location: UK

PostPosted: Wed Mar 12, 2014 1:47 am    Post subject: Reply with quote

You can use a loopback device for this:
Code:
# modprobe snd-aloop
$ sox -t alsa hw:0,0 <effects list> -t alsa hw:Loopback

and then have the other program use the loopback as input.
Back to top
View user's profile Send private message
Silent-Hunter
n00b
n00b


Joined: 07 Jul 2013
Posts: 70

PostPosted: Wed Mar 12, 2014 10:55 pm    Post subject: Reply with quote

Thank you very much! I will try this!

EDIT: It appears as though that module doesn't exist or isn't installed. I'll try to find it.

EDIT: Thank you SO much! ::D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum