ggml-org/whisper.cpp

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

Open

#492 aberto em 11 de fev. de 2023

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)C++ (5.535 forks)batch import
enhancementgood first issue

Métricas do repositório

Stars
 (49.693 stars)
Métricas de merge de PR
 (Mesclagem média 5d 20h) (36 fundiu PRs em 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!

Guia do colaborador