BryceHaley / team7-blackfoot-chat-app

MIT License
1 stars 2 forks source link

Implement audio_data API (for uploading recording data) #5

Closed briangershon closed 3 years ago

briangershon commented 3 years ago

@kyirong6 The browser will post this as form data (multipart/form-data) (section will be called recording and filename will be recording.wav and is audio/wav mimetype). There's a 2nd multipart section called english_term that has the word.

Screen Shot 2021-09-24 at 3 57 32 PM
briangershon commented 3 years ago

Ok, I left this one for audio uploading (as you had originally intended) and created a new card for the translate one: https://github.com/BryceHaley/team7-blackfoot-chat-app/issues/6

briangershon commented 3 years ago

I just pushed up the "upload audio recording" code on the front-end. It posts to /audio_data. The API will need to support the multipart/form-data mime type. More details in card description above.

kyirong6 commented 3 years ago

I pushed the functionality to save the audio recordings locally into a folder: /backend/audio_data/<english_term>.

The filename of the recording is the current timestamp in.wav format: /backend/audio_data/<english_term>/09.25.2021_02-00-45.wav

Will start to implement Cloudinary as host of audio recordings.

kyirong6 commented 3 years ago

Implemented service to upload audio files to Cloudinary. This issue can be closed.