MycroftAI / mimic-recording-studio

Mimic Recording Studio is a Docker-based application you can install to record voice samples, which can then be trained into a TTS voice with Mimic2
Apache License 2.0
496 stars 114 forks source link

Setting up local dev env: KeyError: 'CORPUS' #32

Open a-froghyar opened 4 years ago

a-froghyar commented 4 years ago

I'm trying to build and run the application locally. I'm following the instructions from the README but upon running the backend run.py script, I get this error. I understand it has something to do with the Docker Variable not available in the project, could someone help with how to start the local dev environment properly?

krisgesling commented 4 years ago

hey there, I think you just need to set the CORPUS environment variable, so this can be:

export CORPUS="english_corpus.csv"
python run.py
krisgesling commented 4 years ago

for reference, the csv is in the backend/prompts/ directory

a-froghyar commented 4 years ago

Hey @krisgesling, thanks for your reply. I'm trying to get the app up and running locally and start debugging (thinkin about adding a feature), however I have a hard time setting up the debugging environment with Docker.

I'm using VS Code and have a conda env up and running with all the requirements. I'm trying to add Docker files to the workspace, but every time I create a new run config (launch.json), it overrides the existing Docker file and the debugger just exits. Could you please tell me how you set up your local environment for development?

Appreciate the help, thanks!

krisgesling commented 4 years ago

Hey, I haven't done any work on this repo, also not a VS code user so not much help there either sorry :(