Skip to content

Handle Varying Sample RatesΒ #113

@chadlagore

Description

@chadlagore

When a user passes in a folder of audio files, minutes loads all of them in, concatenates them, then reshapes them into phrases. There is an edge case where some of the audio in the folder has a different sample rate. We need to handle that case or throw errors.

minutes/minutes/audio.py

Lines 25 to 27 in cf7deaa

# Set rate as mode of rates for now.
# TODO: Resample audio?
self.rate = stats.mode(rates)[0][0]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions