Upload mobile recording to backend
LaloLoop opened this issue · comments
As Despenso, I need to upload the user's recording to the backend, so that the list can be converted from speech to text.
I will start with this one, since it's easier to record FLAC on device than to do any processing on it on the backend, moreover, it does not seem like a good thing to have an intermediate bucket. It's always an option in case another implementation does not allow to do so (e.g. Android).
Looks like I will need #3, since I could not record FLAC audio directly from iOS, I get the following error with this configuration for the AVAudioRecorderd
.
Error Domain=NSOSStatusErrorDomain Code=1718449215 "Operation could not be completed. (OSStatus error 1718449215.)"
More details about the error here, basically the encoding is not supported..
I will upload the raw files to a first bucket, call a function upon them and send them to the already existing bucket for Cloud Speech processing.