This project, Pyrenote, creates moment to moment or strong labels for audio data. Pyrenote and much of this README are based on heavily on Audino as well as Wavesurfer.js. The name is a combination of Py, Lyrebird, and note (such as making a note on a label).
If you want to use Pyrenote, use the following to get started!
NOTE: Before making any changes to the code, make sure to create a branch to safely make changes. Never commit directly to main or production branch. Read github_procedures.md for more detailed information before contributing to the repo.
Note: Before getting the project set up, message project leads for env file. This file should be put in /audino
. Make sure the file is never pushed to the github
Please install the following dependencies to run Pyrenote
on your system:
$ git clone https://github.com/UCSD-E4E/Pyrenote.git
$ cd audino
Note for Windows users: Please configure git to handle line endings correctly as services might throw an error and not come up. You can do this by cloning the project this way:
$ git clone https://github.com/UCSD-E4E/Pyrenote.git --config core.autocrlf=input
Similar to production
setup, you need to use development configuration for working on the project, fixing bugs and making contributions.
Note: Before proceeding further, you might need to give docker sudo
access or run the commands listed below as sudo
.
To build the services (do this when you first start it), run:
Note: Remember to cd into audino before starting
$ docker-compose -f docker-compose.dev.yml build
To bring up the services, run:
$ docker-compose -f docker-compose.dev.yml up
Then, in browser, go to http://localhost:3000/ to view the application.
To bring down the services, run:
$ docker-compose -f docker-compose.dev.yml down
1) Docker containers do not even get a chance to start
frontend/scripts/run-dev.sh
and backend/scripts/run-dev.sh
3) Database migration issuesbackend/scripts/run-dev.sh
At this point, the docker should have gotten everything set up. After going to http://localhost:3000/ you should be able to log into the docker
To access the site, sign in with the username of admin and password of password. On logging in, navigate to the admin-portal to create your first project. Make sure to make a label group and some labels for the project!
After creating a project, get the API key by returning to the admin portal. You can use the API key to add data to a project. Create a new terminal (while docker is running the severs) and cd into audino/backend/scripts
. Here use the following command:
python upload_mass.py --username admin.test --is_marked_for_review True --audio_file C:\REPLACE\THIS\WITH\FOLDER\PATH\TO\AUDIO\DATA --host localhost --port 5000 --api_key REPLACE_THIS_WITH_API_KEY
Make sure to have a folder with the audio data ready to be added. For testing purposes, get a folder with about 20 clips.
Once that runs, you are ready to start testing!
You can either run the project on default configuration or modify them to your need.
Note: Before proceeding further, you might need to give docker sudo
access or run the commands listed below as sudo
.
Note: Remember to cd into audino before starting
To build the services, run:
$ docker-compose -f docker-compose.prod.yml build
To bring up the services, run:
$ docker-compose -f docker-compose.prod.yml up
Then, in browser, go to http://0.0.0.0/ to view the application.
To bring down the services, run:
$ docker-compose -f docker-compose.prod.yml down
Features should be turned on and off by admins for individual projects. When adding a new feature to either a project's data page or
annotation page, make sure to do the following:
1) Go to .\audino\frontend\src\containers\forms\featureForm.js
2) Add a new item in the featuresEnabled directory. This will be the name of the feature_toggle
variable.
3) Return to the page you are working on.
componentDidMount()
methodsetState
callback, add to the list SOME_VAR: response.data.features_list['VARIABLE_NAMED_IN_STEP_2']
.