Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tool to upload sounds #75

Open
oriolromani opened this issue Feb 3, 2017 · 5 comments
Open

Tool to upload sounds #75

oriolromani opened this issue Feb 3, 2017 · 5 comments

Comments

@oriolromani
Copy link
Contributor

No description provided.

oriolromani added a commit that referenced this issue Apr 10, 2017
- multiple files upload form
- create data set form
- an exercise 'No exercise' is created for this sounds, as there is no way yet to create exercises
- Fixes #75 and #33
@vthorey
Copy link

vthorey commented Jul 29, 2019

Hello,

I would like to upload an mp3 custom file but can't find a way to do it properly. I tried adding various objects via the admin interface but when I reach the sound itself I can't make it work
test.

@oriolromani , Am I missing something ?

@oriolromani
Copy link
Contributor Author

oriolromani commented Jul 30, 2019

Hi,

when we implemented the platform we were thinking on uploading entire datasets, so the tool to create sounds in the platform is a django management command that takes as arguments a directory with the sounds and a .json file describing the exercises and sounds to be created.
The command is this one and it has to be run like python manage.py upload_data_set <parameters>

@vthorey
Copy link

vthorey commented Jul 30, 2019

Do you happen to have an example of such a dataset ?

@oriolromani
Copy link
Contributor Author

Hi,
no I don't, the data we used is not shearable and I am no longer on the MTG.
To upload sounds to the app you need to create a .json file like the following:

{  
   "exercise_name_1":{  
      "recs":[  
         {  
            "_id":"id_1_1",
            "path":"relative_path_to_your_file/file_1_1.mp3"
         },
         {  
            "_id":"id_1_2",
            "path":"relative_path_to_your_file/file_1_2.mp3"
         }
      ],
      "ref_media":"relative_path_to_your_file/reference_file_1.mp3",
      "name":"reference_sound_exercise_1"
   },
   "exercise_name_2":{  
      "recs":[  
         {  
            "_id":"id_2_1",
            "path":"relative_path_to_your_file/file_2_1.mp3"
         },
         {  
            "_id":"id_2_2",
            "path":"relative_path_to_your_file/file_2_2.mp3"
         }
      ],
      "ref_media":"relative_path_to_your_file/reference_file_2.mp3",
      "name":"reference_sound_exercise_2"
   }
}

which describes which exercises have to be created and its sounds and reference sounds.
Once you have that file you have to provide it to the 'description' parameter of the script I mentioned before.

@vthorey
Copy link

vthorey commented Aug 1, 2019

Thanks a lot that's exactly what I needed !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants