-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile error from cloned openMHA #7
Comments
sndfile.h is part of of the external dependency libsndfile. The corresponding package is named libsndfile1-dev. You can install it with apt-get:
Before you continue best make sure you also have the other dependencies installed:
|
Hi John, sorry for the late response. I use the .bashrc as a simple possibility to "autostart" a script after the (automatic) login of the raspberry pi user. You can comment out the last line in .bashrc reboot and then use the start.sh script to fire up everything. The XRun happen when the hardware was not fast enough to process the data. I tuned the settings for the two channel setup with the stereo card. If you hear somthing at the output it probably works. Good luck :) |
Hello all, I'm also trying to setup the openMHA with a Raspberry Pi 3+ and a Cirrus Logic audio card and I am having the same problem. During boot I get some noise played back through my headphones (or the text2speech message) but I keep getting these XRun errors (e.g. pinknoise/thresholdnoise/abhang/mha was not finished) and the calibration procedure stops at different points each time until I break it with Ctrl+C. |
Hi! The causes of XRuns can be manifold. Given, that the features of the sound cards are similar, it could also be due to a inadequate fragment size [2]. I don't remember now if you can just double it. Try with FRAGSIZE=96 instead of 48, and with NPERIODS=4 instead of 2. Also, I think it is unavoidable that there are some XRuns at the beginning.
Are you using a display or are you connected via ssh (wifi or LAN)? Also, do you have a microphone amplifier with a gain of approx. 36 dB? To help you I need much more specific explanations of what you exactly did and what the result was. Best wishes, [1] http://www.manual.ardour.org/setting-up-your-system/the-right-computer-system-for-digital-audio/ |
Hi Marc, Thanks for the prompt reply! I was hoping to test the openMHA prototype at first so I don't have the complete setup (I am using a headset without an amplifier). I thought that it will be possible to try this out with a headset. I am also connected to the raspberry pi through a display, does this make a difference? To be more specific, I've tried running the jackd command alone and it runs without any XRun errors with the default settings (fragsize=48 and nperiods=2). So, I guess that this might be something related to my setup and the calibration during boot. Is there a way to make this work without the suggested earphones and amplifier for now? Best wishes, |
No, probably not without fundamental modifications. You can get openMHA running, but most probably you will need to adapt the openMHA configuration to match your setup (i.e., number of input/output channels, compensation filters, calibration, ...). Best wishes, [1] https://github.com/HoerTech-gGmbH/openMHA/blob/master/openMHA_application_manual.pdf |
Hi Marc, Thanks a lot for your help. I set up the openMHA after all from your SD-card image by bypassing your static feedback algorithm, I'm now trying to find out how to make the various algorithms work. Best, |
It is normal that you get some XRUNs while the device is still booting. Do you hear "clicks" (every second or more often) in the reproduced signal? Best wishes, |
Okay thanks for the fast reply. best, |
Hi again! I'm trying to compile openMHA and install it. but I get a missing header file error for not being able to find sndfile.h
I simply used the git clone command, cd openMHA, then wrote the ./configure && sudo make
I also tried ./configure && make
am I supposed to get the file(s) elsewhere?
it is most likely that I'm doing something wrong. If so, please tell me.
The text was updated successfully, but these errors were encountered: