Skip to content

Whisper.cpp cannot open the file named in UTF-8 encoding (Windows) #1151

Closed
@bobqianic

Description

@bobqianic

にっぽん.wav

C:\Users\qianp\Downloads\whisper_build_new\bin\Release>C:\Users\qianp\Downloads\whisper_build_new\bin\Release\main.exe -m C:\Users\qianp\Downloads\whisper_build_new\bin\Release\ggml-model-base.bin -f C:\Users\qianp\Downloads\whisper_build_new\bin\Release\にっぽん.wav
whisper_init_from_file_no_state: loading model from 'C:\Users\qianp\Downloads\whisper_build_new\bin\Release\ggml-model-base.bin'
whisper_model_load: loading model
whisper_model_load: n_vocab       = 51865
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 1608 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
error: failed to open 'C:\Users\qianp\Downloads\whisper_build_new\bin\Release\????.wav' as WAV file
error: failed to read WAV file 'C:\Users\qianp\Downloads\whisper_build_new\bin\Release\????.wav'

whisper_print_timings:     load time =    83.69 ms
whisper_print_timings:     fallbacks =   0 p /   0 h
whisper_print_timings:      mel time =     0.00 ms
whisper_print_timings:   sample time =     0.00 ms /     1 runs (    0.00 ms per run)
whisper_print_timings:   encode time =     0.00 ms /     1 runs (    0.00 ms per run)
whisper_print_timings:   decode time =     0.00 ms /     1 runs (    0.00 ms per run)
whisper_print_timings:    total time =   119.58 ms

01-03(轻松学中文+第二版+课本2).wav

C:\Users\qianp\Downloads\whisper_build_new\bin\Release>C:\Users\qianp\Downloads\whisper_build_new\bin\Release\main.exe -m C:\Users\qianp\Downloads\whisper_build_new\bin\Release\ggml-model-base.bin -f C:\Users\qianp\Downloads\whisper_build_new\bin\Release\01-03(轻松学中文+第二版+课本2).wav
whisper_init_from_file_no_state: loading model from 'C:\Users\qianp\Downloads\whisper_build_new\bin\Release\ggml-model-base.bin'
whisper_model_load: loading model
whisper_model_load: n_vocab       = 51865
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 1608 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
error: failed to open 'C:\Users\qianp\Downloads\whisper_build_new\bin\Release\01-03(?????+???+??2).wav' as WAV file
error: failed to read WAV file 'C:\Users\qianp\Downloads\whisper_build_new\bin\Release\01-03(?????+???+??2).wav'

whisper_print_timings:     load time =    85.19 ms
whisper_print_timings:     fallbacks =   0 p /   0 h
whisper_print_timings:      mel time =     0.00 ms
whisper_print_timings:   sample time =     0.00 ms /     1 runs (    0.00 ms per run)
whisper_print_timings:   encode time =     0.00 ms /     1 runs (    0.00 ms per run)
whisper_print_timings:   decode time =     0.00 ms /     1 runs (    0.00 ms per run)
whisper_print_timings:    total time =   116.01 ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions