Microphone component - Save recording

Has anyone been able to use the microphone component and save the recording to a file? If so, how did you accomplish this?

Hi @ChrisV

You should be able to upload the file to a resource (such as s3), or use our download utility like this where test file is the name of the file & webm is the file type:

Thanks. That works for download very well. We are now trying to send the microphone recording to OpenAI whisper in binary form. We have only been able to send as string with {{microphone1.audioFile.data}} which returns an error. How can we send as binary object?

"error": {
"message": "1 validation error for Request\nbody -> file\n Expected UploadFile, received: <class 'str'> (type=value_error)",
"type": "invalid_request_error",
"param": null,
"code": null

OpenAI Whisper expects this according to their API documentation:

Request body




The audio file object (not file name) to transcribe, in one of these formats: mp3, mp4, mpeg, mpga, m4a, wav, or webm.

Hi @ChrisV I'm working on this here. :thinking: I have it working in Postman, but haven't gotten it working in Retool yet