Utility classes for search and modifying WAV audio files.
The following are a list of the classes provided in this module:
Bases: object
Verifies the existence of a WAV file in the local file system.
The class provides fuzzy logic name matching of cached results in the case that the specified file can not be found. The files system is only scanned once, and all lookups after the initial test come from the cache. The cache size is limited to prevent over aggressive file system access.
Initialize the class instance with the input _dir argument. If no argument is supplied it defaults to the current working dir.
Parameters: | _dir (str) – Base path location to perform the WAV file search. |
---|
Bases: object
Shift the audio data in a set of WAV files by a desired postive or negative sample offset.
The module will never modify the input WAV files, and always write to either a new directory in the ‘cwd’ or in the /tmp directory. The WAV files are treated as a set of data, in that, the direction of shift will cause audio sample data to be taken from either a previous or next WAV file. The shift in sample data will cause either the first or last WAV file to contain ‘sample count’ of NULL samples.
Parameters: |
|
---|