Skip to content
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

Sound Card Not Compatible With LinPhone Python Wrapper #68

Open
bahari opened this issue Dec 3, 2020 · 1 comment
Open

Sound Card Not Compatible With LinPhone Python Wrapper #68

bahari opened this issue Dec 3, 2020 · 1 comment

Comments

@bahari
Copy link

bahari commented Dec 3, 2020

Hi
Recently I'm already received 8 unit of audioinjector zero card that I plan to used it with my Radio Over IP (RoIP) controller using raspberry pi as a SIP client.
I'm successfully install a driver as your instruction on github. I'm able to record and play the .wav file using aplay and arecord.
Before this I'm using USB sound card and WM8960 audio hat for raspberry pi and all going well with my SIP python script.
But when I'm tested with your sound card, my python script return ALSA error as below:

alsa_set_params: Error setting channel

There are also other errors, all pointing to ALSA parameter error. As the result no audio coming in and out.
Then I search on audioinjector zero github for more information, luckily there is also a problem faced by others, below is the link:

#31 (comment)

I'm follow his suggestion by installing back pulseaudio package on the raspberry pi. Others SIP client connected to the controller using your card as a MIC input received the voice with a noise, not a clean audio. But the sound card on my controller didn't received anything from the connected SIP client, no audio out from your sound card.

I'm really appreciate that you can guide me to solve this problem, as I'm in the middle of testing my new controller before deliver it to my customer.

Hope to heard from you very soon

@flatmax
Copy link
Contributor

flatmax commented Dec 10, 2020

Hi there,

Can you please tell me more about how the software trys to open the soundcard - what parameters it uses ? For example, sample format, number of channels and sample rate.

The following assumes you aren't using pulseaudio on the system....

One way to fix this quickly is to make the software use the ALSA plug plugin. So for example you may be able to use the "plughw" instead of the "hw" device.

For example, to force the entire system to use plughw, you would edit your ~/.asoundrc file to put :

pcm.!default { 
 type plug 
 slave { 
 pcm "hw:0,0" 
 } 
} 
ctl.!default {
        type hw           
        card 0
}

If you use that .asoundrc file, then EVERY sound application will open the sound card as plughw and ALL software should work !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants