calpoly-csai / api

Official API for the NIMBUS Voice Assistant accessible via HTTP REST protocol.
https://nimbus.api.calpolycsai.com/
GNU General Public License v3.0
9 stars 4 forks source link

Resample incoming audio #6

Open Waidhoferj opened 4 years ago

Waidhoferj commented 4 years ago

The API will be receiving audio from a bunch of devices with different sampling rates. We need to resample the audio so that the mfccs are in a consistent format

Function: resample_audio() Description: Resample the audio file to adhere to the Nimbus audio sampling standard.

snekiam commented 4 years ago

Looks like incoming files are stored using the flask "FileStorage" class. It would be ideal to resample without saving this to disk.