Skip to content

MAINT: Removing pydub as a dependency#1445

Open
jbolor21 wants to merge 10 commits intoAzure:mainfrom
jbolor21:users/bjagdagdorj/pydub
Open

MAINT: Removing pydub as a dependency#1445
jbolor21 wants to merge 10 commits intoAzure:mainfrom
jbolor21:users/bjagdagdorj/pydub

Conversation

@jbolor21
Copy link
Contributor

@jbolor21 jbolor21 commented Mar 7, 2026

Description

Removing pydub as a dependency. This was only used in our audio_transcript_scorer to extract audio from a video file.

Tests and Documentation

Reran unit tests and notebooks

@romanlutz
Copy link
Contributor

We need to make sure this passes on Linux/macos as well. Are there additional steps?

Assuming it fails without ffmpeg separately installed on Linux we need a test that asserts that we're providing a reasonable error message that explains what to do.

"aiofiles>=24,<25",
"appdirs>=1.4.0",
"art>=6.5.0",
"av>=14.0.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you work with Hannah and Foundry to see if this should go into default or just extras?

f"sample_width={audio.sample_width}, frame_rate={audio.frame_rate}"
output_path = _audio_to_wav(
video_path,
sample_rate=AudioTranscriptHelper._DEFAULT_SAMPLE_RATE,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just double checking, have you re-ran this? If not, make sure you have :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep!


try:
converter = AzureSpeechAudioToTextConverter()
converter = AzureSpeechAudioToTextConverter(use_entra_auth=True)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we pass this in? We can have this as a default if it's None?

Copy link
Contributor

@rlundeen2 rlundeen2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved if you take and implement the comments; lmk if you have any questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants