playing a wav file from BTE headset
Posted: Tue Feb 07, 2023 12:10 am
Hi,
I am trying to play a wav file before my actual application that will involve dynamic compression plugin.
Below you can read my config file:
I can read and start the program, which starts working as a hearing aid (I can read hear the sound from the BTE).
Then, I am trying to play the sound file by writing any comment related to addsndfile plugin and I am receiving this error:
Could you give me any suggestion? How should I play a sound file and then run my actual program?
I am trying to play a wav file before my actual application that will involve dynamic compression plugin.
Below you can read my config file:
Code: Select all
nchannels_in = 2
fragsize = 64
srate = 24000
# MHA library name
mhalib = transducers
mha.calib_in.peaklevel = [65 65]
mha.calib_out.peaklevel = [71 71]
# IO plugin library name
iolib = MHAIOJackdb
mha.plugin_name = addsndfile
mha.addsndfile.filename = confirm_sound.wav
mha.addsndfile.levelmode = rms
mha.plugin_name = overlapadd
mha.overlapadd.fftlen = 256
mha.overlapadd.wnd.type = hanning
mha.overlapadd.wnd.len = 128
mha.overlapadd.wnd.pos = 0.5
mha.overlapadd.zerownd.type = hanning
mha.overlapadd.plugin_name = mhachain
# list of plugins
mha.overlapadd.mhachain.algos = [ ...
fftfilterbank ...
dc ...
combinechannels ...
]
# Frequency bands
mha.overlapadd.mhachain.fftfilterbank.f = [250 500 1000 2000 4000 8000]
mha.overlapadd.mhachain.fftfilterbank.fscale = log
mha.overlapadd.mhachain.fftfilterbank.ftype = center
# gaintable data in dB gains
mha.overlapadd.mhachain.dc.gtdata = [[10 10 10];[10 10 10];[10 10 10];[10 10 10];[10 10 10];[10 10 10];[10 10 10];[10 10 10];[0 0 0];[0 0 0];[0 0 0];[0 0 0]]
mha.overlapadd.mhachain.dc.gtmin = [0]
mha.overlapadd.mhachain.dc.gtstep = [40]
mha.overlapadd.mhachain.dc.tau_attack = [0.02]
mha.overlapadd.mhachain.dc.tau_decay = [0.1]
# Name of fftfilterbank plugin. Used to extract frequency information.
mha.overlapadd.mhachain.dc.fb = fftfilterbank
mha.overlapadd.mhachain.dc.chname = fftfilterbank_nchannels
mha.overlapadd.mhachain.combinechannels.outchannels = 2
io.con_in = [system:capture_1 system:capture_2]
io.con_out = [system:playback_1 system:playback_2]
Then, I am trying to play the sound file by writing any comment related to addsndfile plugin and I am receiving this error:
Code: Select all
mha.addsndfile.levelmode = rms
(mha_parser) Invalid entry: "addsndfile"
(MHA:failure)