ggml-org/whisper.cpp

whisper_init_from_file: loading model from 'models/ggml-base.en.bin'

Open

#492 opened on Feb 11, 2023

View on GitHub
 (0 comments) (0 reactions) (0 assignees)C++ (5,535 forks)batch import
enhancementgood first issue

Repository metrics

Stars
 (49,693 stars)
PR merge metrics
 (Avg merge 5d 20h) (36 merged PRs in 30d)

Description

Hello and good day.

I am close to getting main command to work from any folder on my Mac system.

When I run a command as such:
main -f output-16000.wav -ml 46 -osrt

I get the following error:

whisper_init_from_file: loading model from 'models/ggml-base.en.bin'
whisper_init_from_file: failed to open 'models/ggml-base.en.bin'

The only way to get the command work is to run the command like this: main -f output-16000.wav -ml 46 -osrt -m /Users/username/whisper.cpp/models/ggml-base.en.bin

I tried creating an environment variable like this with no success: export WHISPER_MODEL_PATH=/Users/username/whisper.cpp/models

What can I do so I do not have to place the full path of the language model and it works globally from any folder?

Thank you and have a Fantastic Day!

Contributor guide