whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

audio error

Open anon3345 opened this issue 2 years ago • 1 comments

Can someone help me with this i installed pulseaudio im not sure i did it correct but im running linux through windows and this the error i get everytime i run the command

~/whisper.cpp$ ./talk-llama -mw ./models/ggml-base.en.bin -ml ./models/llama2_7b_chat_uncensored.ggmlv3.q4_0.bin -p "Georgi" -t 8 whisper_init_from_file_no_state: loading model from './models/ggml-base.en.bin' whisper_model_load: loading model whisper_model_load: n_vocab = 51864 whisper_model_load: n_audio_ctx = 1500 whisper_model_load: n_audio_state = 512 whisper_model_load: n_audio_head = 8 whisper_model_load: n_audio_layer = 6 whisper_model_load: n_text_ctx = 448 whisper_model_load: n_text_state = 512 whisper_model_load: n_text_head = 8 whisper_model_load: n_text_layer = 6 whisper_model_load: n_mels = 80 whisper_model_load: ftype = 1 whisper_model_load: qntvr = 0 whisper_model_load: type = 2 whisper_model_load: mem required = 310.00 MB (+ 6.00 MB per decoder) whisper_model_load: adding 1607 extra tokens whisper_model_load: model ctx = 140.66 MB whisper_model_load: model size = 140.54 MB whisper_init_state: kv self size = 5.25 MB whisper_init_state: kv cross size = 17.58 MB llama.cpp: loading model from ./models/llama2_7b_chat_uncensored.ggmlv3.q4_0.bin llama_model_load_internal: format = ggjt v3 (latest) llama_model_load_internal: n_vocab = 32000 llama_model_load_internal: n_ctx = 2048 llama_model_load_internal: n_embd = 4096 llama_model_load_internal: n_mult = 256 llama_model_load_internal: n_head = 32 llama_model_load_internal: n_layer = 32 llama_model_load_internal: n_rot = 128 llama_model_load_internal: ftype = 2 (mostly Q4_0) llama_model_load_internal: n_ff = 11008 llama_model_load_internal: n_parts = 1 llama_model_load_internal: model size = 7B llama_model_load_internal: ggml ctx size = 0.08 MB llama_model_load_internal: mem required = 5407.72 MB (+ 1026.00 MB per state) . llama_init_from_file: kv self size = 1024.00 MB

main: processing, 8 threads, lang = en, task = transcribe, timestamps = 0 ...

init: found 0 capture devices: init: attempt to open default capture device ... ALSA lib confmisc.c:855:(parse_card) cannot find card '0' ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default init: couldn't open an audio device for capture: ALSA: Couldn't open audio device: No such file or directory! main: audio.init() failed!

anon3345 avatar Sep 01 '23 18:09 anon3345

i also came across this error, seems that is needs a sound card? i use a linux server remotely.

zengqingfu1442 avatar Apr 11 '24 07:04 zengqingfu1442