gpt-omni / mini-omni

open-source multimodal large language model that can hear, talk while thinking. Featuring real-time end-to-end speech input and streaming audio output conversational capabilities.
https://arxiv.org/abs/2408.16725
MIT License
3.09k stars 277 forks source link

The ubuntu system reports an error about ALSA, and I cannot get a voice reply. #85

Open CrazyWan528 opened 1 month ago

CrazyWan528 commented 1 month ago

I tried this project on two different ubuntu-20.04 systems (one on an old system, one on a brand new system reinstalled), but both get the following errors, does anyone have the same situations? How can I solve this problem? Thank you all.

Errors Here:(The following IP address is temporarily hidden)

(omni) caoteam@caoteam-NUC13VYKi7:~/wqx/mini-omni$ API_URL=http://0.0.0.0:60808/chat streamlit run webui/omni_streamlit.py

You can now view your Streamlit app in your browser.

Local URL: http://localhost:8501 Network URL: http://192.168.XX.XX:8501

warm up done, time_cost: 0.072 s ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lIP fe ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card duration_after_vad: 0.000 s, time_vad: 5.561 s duration_after_vad: 0.000 s, time_vad: 0.002 s duration_after_vad: 0.000 s, time_vad: 0.002 s duration_after_vad: 0.000 s, time_vad: 0.002 s duration_after_vad: 0.000 s, time_vad: 0.002 s duration_after_vad: 0.000 s, time_vad: 0.002 s duration_after_vad: 0.000 s, time_vad: 0.002 s duration_after_vad: 0.000 s, time_vad: 0.002 s duration_after_vad: 0.000 s, time_vad: 0.002 s duration_after_vad: 0.000 s, time_vad: 0.002 s duration_after_vad: 0.000 s, time_vad: 0.002 s duration_after_vad: 0.000 s, time_vad: 0.002 s duration_after_vad: 0.000 s, time_vad: 0.007 s duration_after_vad: 0.000 s, time_vad: 0.007 s duration_after_vad: 0.000 s, time_vad: 0.007 s duration_after_vad: 0.512 s, time_vad: 0.006 s duration_after_vad: 0.000 s, time_vad: 0.007 s

mini-omni commented 4 weeks ago

It seems a problem of audio recording, can you record audio with only Pyaduio?