Skip to content

Optimizing Transcription Costs for Long Audio File with Deepgram Python SDK #1019

Closed Answered by deepgram-community bot
kimjiwook0129 asked this question in General help
Discussion options

You must be logged in to vote

I'm sorry, but as an AI, I don't have the ability to directly access or manipulate any databases, including Deepgram's SDK. However, I can suggest a potential solution based on the information you've provided.

Deepgram's SDK does not currently have a built-in feature to skip silent portions of audio files. However, you can implement this functionality yourself by preprocessing the audio files to remove silence before sending them to Deepgram for transcription. There are several libraries available in Python that can help with this, such as pydub or librosa.

Here's a simple example of how you might do this using pydub:

from pydub import AudioSegment
from pydub.silence import split_on_silence

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kimjiwook0129
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kimjiwook0129
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant