collabora / WhisperLive

A nearly-live implementation of OpenAI's Whisper.
MIT License
1.85k stars 248 forks source link

Demo client can't work #268

Open xiaofei558008 opened 1 month ago

xiaofei558008 commented 1 month ago

(whisper3_11) root@b104df2ee89b:~/tom.xiao/code/rf_ai# python whisper_client_tst.py [INFO]: * recording [INFO]: Opened connection 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_lfe 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 pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

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 [INFO]: Waiting for server ready ... [INFO]: Server Running with backend faster_whisper [INFO]: Server Ready! python: src/hostapi/alsa/pa_linux_alsa.c:3641: PaAlsaStreamComponent_BeginPolling: Assertion `ret == self->nfds' failed. Aborted (core dumped)

==================================== whisper_client_tst.py is below (param model_size can't recognize anymore):

from whisper_live.client import TranscriptionClient client = TranscriptionClient( "localhost", 9090, lang="en", translate=False#,

model_size="tiny"

)

client()

stbischof commented 2 weeks ago

same here