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

Failed to start Seeed Voicecard service. #243

Closed
wzr6009 opened this issue Aug 23, 2020 · 13 comments
Closed

Failed to start Seeed Voicecard service. #243

wzr6009 opened this issue Aug 23, 2020 · 13 comments

Comments

@wzr6009
Copy link

wzr6009 commented Aug 23, 2020

_P_9_5UK}A%CIKS4J(0FG3N
● seeed-voicecard.service - Seeed Voicecard service
Loaded: loaded (/lib/systemd/system/seeed-voicecard.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-08-23 08:37:00 CST; 4h 5min ago
Main PID: 362 (code=exited, status=1/FAILURE)

8月 23 08:36:46 raspberrypi systemd[1]: Starting Seeed Voicecard service...
8月 23 08:36:47 raspberrypi seeed-voicecard[362]: + exec
8月 23 08:36:47 raspberrypi seeed-voicecard[362]: ++ basename /usr/bin/seeed-voicecard
8月 23 08:37:00 raspberrypi systemd[1]: seeed-voicecard.service: Main process exited, code=exited, status=1/FAILURE
8月 23 08:37:00 raspberrypi systemd[1]: seeed-voicecard.service: Failed with result 'exit-code'.
8月 23 08:37:00 raspberrypi systemd[1]: Failed to start Seeed Voicecard service.

@HinTak
Copy link
Contributor

HinTak commented Aug 23, 2020

If you have recently upgrade / install new kernel, you might need the v5.5 branch https://github.com/HinTak/seeed-voicecard

@HinTak
Copy link
Contributor

HinTak commented Aug 23, 2020

This is the same as #239 , btw.

@wzr6009
Copy link
Author

wzr6009 commented Aug 23, 2020

如果您最近升级/安装了新内核,则可能需要v5.5分支https://github.com/HinTak/seeed-voicecard

I just used the method of reducing the kernel,The sound card is displayed in the aply -l command.
But there is still no sound when playing a song. The default sound card has been set with alsa.conf 2.
Cache_-2f5ee6258391d8fd
I use raspberry pi zero

@HinTak
Copy link
Contributor

HinTak commented Aug 23, 2020

#238 (comment) see comment regarding downgrading

@TimWolz
Copy link

TimWolz commented Aug 26, 2020

@HinTak I tried your fork v5.5 for the 4-mic array on the Pi4 with the the 5.4.51-v7l+ kernel. The soundcard is displayed in arecord-L but not found by pyaudio. Any idea what I can do?
Help is greatly appreciated.
arecord_L
pyaudio

@HinTak
Copy link
Contributor

HinTak commented Aug 26, 2020

@TimWolz you have a bug in your python code: why range(5)? You need to use a much larger number - and get portaudio to tell you what range. The important thing is, does arecord works? The rest is your python code problem which IMHO belongs elsewhere.

@HinTak
Copy link
Contributor

HinTak commented Aug 26, 2020

如果您最近升级/安装了新内核,则可能需要v5.5分支https://github.com/HinTak/seeed-voicecard

I just used the method of reducing the kernel,The sound card is displayed in the aply -l command.
But there is still no sound when playing a song. The default sound card has been set with alsa.conf 2.
Cache_-2f5ee6258391d8fd
I use raspberry pi zero

You need to use amixer to adjust the volume... And make sure the playback volume is large enough. This is the same issue as #240

@HinTak
Copy link
Contributor

HinTak commented Aug 26, 2020

Also the default seeed studio setup (the one that downgrade the kernel) direct the playback to the on-board phone jack. Everything else is silent for playback, I imagine.

Anyway, playback problem does not belong here. Try recording, and transfer the file to your desktop for listen if you cannot find out which phone jack to use for listening. There are more than one, and I am sure you got it wrong. Not a driver problem. There are 3 sound outlets - two phone jacks, one on the pi board and another on the respeaker board, and also hdmi. The downgraded kernel allows you to use only one. More recent kernels they are separately usable, apparently.

@TimWolz
Copy link

TimWolz commented Aug 26, 2020

@TimWolz you have a bug in your python code: why range(5)? You need to use a much larger number - and get portaudio to tell you what range. The important thing is, does arecord works? The rest is your python code problem which IMHO belongs elsewhere.

@HinTak Thanks for your reply. The point why I chose 5 is because there aren't more devices. The same code worked well with the old kernel and the master version. Regarding arecord. I can start it with the default device, which is supposed to be the seeed voicecard but it doesn't terminate, although I specify -d 3. And one cannot replay the (faulty) file. Now, if I also want to specify the device -D seeed4micvoicec, the following error occours ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM seeed4micvoicec

@HinTak
Copy link
Contributor

HinTak commented Aug 26, 2020

Use the read me - arecord -Dac108 -f S32_LE -r 16000 -c 4 a.wav . Wrong pcm device as your error message says.

@TimWolz
Copy link

TimWolz commented Aug 26, 2020

Thanks! Sorry thought I have to specify the device name displayed by arecord. But the command from the readme throws the following error:
ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
arecord: main:828: audio open error: No such device

@HinTak
Copy link
Contributor

HinTak commented Aug 26, 2020

@TimWolz I don't know - I only have the 6-mic device and it works okay with either the old kernel with seeed studio upstream, or current 64-bit ubuntu with my fork...

Note also there are two 4-mics devices - one works like a 4-mics, the other works like an 8-mics device with the last few channela empty (i.e. like the 6-mics, but more empty channels). Did you read the wrong section/use the wrong parameters?

HinTak added a commit to HinTak/seeed-voicecard that referenced this issue Sep 10, 2020
@Pillar1989
Copy link
Contributor

#249

turmary pushed a commit that referenced this issue Sep 27, 2020
The if-endif block below around the amixer call fixes
#239
#240
#243
HinTak added a commit to HinTak/seeed-voicecard that referenced this issue Dec 2, 2020
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

4 participants