Skip to content

Instantly share code, notes, and snippets.

View codeyourwayup's full-sized avatar

FRANK GO codeyourwayup

View GitHub Profile
@codeyourwayup
codeyourwayup / README.md
Created March 4, 2023 10:59 — forked from Dosant/README.md
AWS S3 to OpenAI Whisper via Node.js stream

Current (2023-03-01) OpenAI Whisper API expects a file uploaded as part of multipart/form-data in POST request. I initially struggled to use this API inside Node.js with an audio file stored inside an AWS s3 bucket, so I decided to share this snippet:

The API usage example from the OpenAI docs:

curl --request POST \
  --url https://api.openai.com/v1/audio/transcriptions \
  --header 'Authorization: Bearer TOKEN' \
 --header 'Content-Type: multipart/form-data' \
@codeyourwayup
codeyourwayup / gist:7a270b47a2dff6abac6a88d5e24b8cbb
Created December 25, 2023 12:45
Nature's Particle Manager
Nature's Particle Manager
@codeyourwayup
codeyourwayup / readme.md
Created December 24, 2024 02:36 — forked from aspose-com-gists/readme.md
Convert Word Documents to PNG, JPEG, BMP in Python