[DEV] start work on dynamic chain

This commit is contained in:
2015-02-01 22:21:03 +01:00
parent 12a60900cc
commit 29f8b24b2b
6 changed files with 137 additions and 72 deletions

30
data/hardware.json Normal file
View File

@@ -0,0 +1,30 @@
{
microphone:{ # name of the device
io:"input", # input or output
map-on:{ # select hardware interface and name
interface:"alsa", # interface : "alsa", "pulse", "core", ...
name:"default", # name of the interface
},
frequency:48000, # frequency to open device
channel-map:[ # mapping of the harware device (to change map if needed)
"front-left", "front-right",
"read-left", "rear-right",
],
type:"int16", # format to open device (int8, int16, int16-on-ont32, int24, int32, float)
nb-chunk:1024 # number of chunk to open device (create the latency anf the frequency to call user)
},
speaker:{
io:"output",
map-on:{
interface:"alsa",
name:"default",
},
frequency:48000,
channel-map:[
"front-left", "front-right",
],
type:"int16",
nb-chunk:1024,
volume-name:"MASTER"
}
}

29
data/virtual.json Normal file
View File

@@ -0,0 +1,29 @@
{
microphone:{ # name of the virtual interface
io:"input", # input or output
map-on:"microphone", # name of the harware device
resampling-type:"speexdsp", # name of the resampler
resampling-option:"quality=10" # some option to the resampler
},
speaker:{
io:"output",
map-on:"speaker",
resampling-type:"speexdsp",
resampling-option:"quality=10"
},
feedback:{
io:"input",
map-on:"speaker",
resampling-type:"speexdsp",
resampling-option:"quality=10"
},
microphone-cleaned:{
io:"input",
map-on:"speaker",
resampling-type:"speexdsp",
resampling-option:"quality=10",
aec-map-on:"microphone", the second input of the AEC (get a single
aec-type:"airtio-remover", # some type is "airtio-remover",
aec-option:"mode=cutter"
}
}