audio to text without loading whole wav file in memory with single result object #935
Replies: 4 comments
-
Thanks for asking your question about Deepgram! If you didn't already include it in your post, please be sure to add as much detail as possible so we can assist you efficiently, such as:
|
Beta Was this translation helpful? Give feedback.
-
Hi @tevslin The best way would be to do this asynchronously. |
Beta Was this translation helpful? Give feedback.
-
David, thanks.
But this with a URL. Is there a way I can do this with a file which is local to my ECS server?
From: David vonThenen ***@***.***>
Sent: Thursday, September 26, 2024 5:40 PM
To: deepgram/community ***@***.***>
Cc: Tom Evslin ***@***.***>; Mention ***@***.***>
Subject: Re: [deepgram/community] audio to text without loading whole wav file in memory with single result object (Discussion #935)
Hi @tevslin <https://github.com/tevslin>
The best way would be to do this asynchronously.
https://github.com/deepgram/deepgram-python-sdk/blob/main/deepgram/clients/listen/v1/rest/client.py#L43
—
Reply to this email directly, view it on GitHub <#935 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AGLSBBQUPN45LZZAX3M2BMLZYR5LZAVCNFSM6AAAAABO532UGKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTANZWHA2TIMI> .
You are receiving this because you were mentioned. <https://github.com/notifications/beacon/AGLSBBSLQ6JHC5SFU26BXHDZYR5LZA5CNFSM6AAAAABO532UGKWGG33NNVSW45C7OR4XAZNRIRUXGY3VONZWS33OINXW23LFNZ2KUY3PNVWWK3TUL5UWJTQAURIJ2.gif> Message ID: ***@***.*** ***@***.***> >
|
Beta Was this translation helpful? Give feedback.
-
Hi @tevslin The only way to do that would be to land a process to call either of the functions below to "upload" the file to Deepgram: If you use the suggested method in the previous post, it requires that the file be accessible to the internet as public or configured with a key, but this will trigger Deepgram to move the audio (aka download file) from the Deepgram side. No external process needed. that is why it takes a URL as one of the inputs. |
Beta Was this translation helpful? Give feedback.
-
I have large wav files altho smaller than the 2gig limit, Running in AWS I don't want to have to load the whole file into memory at once but do want it processed as one file so I get only one result object with consistent diarization. is there a way to accomplish this with the python sdk>
Beta Was this translation helpful? Give feedback.
All reactions