OpenInterpreter / 01

The open-source language model computer
http://openinterpreter.com/01
GNU Affero General Public License v3.0
4.77k stars 472 forks source link

runtime downloading of piper voice model #176

Open g3ar-v opened 3 months ago

g3ar-v commented 3 months ago

Problem statement From the codebase here, it seems new voice models can't be downloaded if piper already exists because the only time a voice model would be downloaded is if piper doesn't exist.

Solution Check if the PIPER_VOICE file declared in .env exists in the piper directory. if not download it, if the link and name's are provided in .env

g3ar-v commented 3 months ago

I have implemented a solution for this and I could create a pull request. If necessary.

tyfiero commented 3 months ago

I just merged some changes that help with piper downloading, can you check to see if the latest merges fix the problem? If not please creat a pull request with your fix. Thanks!

g3ar-v commented 3 months ago

Just checked it. The merge wouldn't. I'll go ahead with the pull request.

andrewfr commented 2 months ago

@g3ar-v @tyfiero

I think it would help (including speed things up a bit) if the model (voice) was preloaded in the piper directory as a part of the installation.

g3ar-v commented 2 months ago

Valid point, but I believe that the aim was to avoid a bloated codebase, so it wasn't done that way.

andrewfr commented 2 months ago

@g3ar-v Okay. I don't consider the models the code base, per se. I've been writing small programs with Piper to get a feel for it. My sense is if you need a model, why not pre-install it, rather than install it upon set up?