Edge Function Limit: Download YouTube audio and call Whisper to Transcribe #32921
Unanswered
sylas-park
asked this question in
Questions
Replies: 1 comment
-
The ability to use the Deno filesystem was just added in Dec for Supabase Edge functions. Make sure you are on latest version of CLI. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I imported
ytdl
to download YouTube audio and call Whisper to Transcribe. Although the code works in a separatetest.ts
, edge functions cannot read or write files. Thus, I cannot access the downloaded audio file and the error occurred.Therefore, I tried to send 'audio stream or buffer' using different packages other than ytdl rather than read 'audio file', but I haven't succeeded.
As a result, I am thinking of a building an additional Python server to do this process, which unfortunately causes extra server cost.
Do you guys have any solutions to this problem other than building an additional python server?
Aside from solutions, do you guys know why it's happening in the first place?? Is it really because edge functions cannot read or write files?
Beta Was this translation helpful? Give feedback.
All reactions