Pysoundfile

Latest version: v0.9.0.post1

Safety actively analyzes 613797 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.8.0

This latest release of SoundFile fixes many small issues, in particular with the handling of file-like objects.

There are two breaking changes:
- Changed the default value of `always_2d` from `True` to `False`.
- Changed the argument order of the `write` function from `write(data, file, ...)` to `write(file, data, ...)`

Apart from that, here are the highlights of this release:
- Numpy is now optional, and only loaded for `read` and `write`.
- Added `SoundFile.buffer_read` and `SoundFile.buffer_read_into` and `SoundFile.buffer_write`, which read/write raw data without involving Numpy.
- Added `info` function that returns metadata of a sound file.

0.7.0

Again, thanks to Matthias Geier for all of his hard work, but also Nils Werner and Whistler7 for their many suggestions and help.
- Renamed `import pysoundfile` to `import soundfile`.
- Installation through pip wheels that contain the necessary libraries for OS X and Windows.
- Removed `exclusive_creation` argument to `write`.
- Added `truncate()` method.

**IMPORTANT**: This release does not have Windows installers any more. Instead, we now have OS-specific wheels that contain the necessary libraries for Windows and OSX on [PyPI](https://pypi.python.org/pypi/PySoundFile). From now on `pip install pysoundfile` should not require additional binaries (on Windows and OS X).

0.6.0

The latest release of PySoundFile cleans up many small
inconsistencies, particularly in the the ordering and naming of
function arguments. Therefore, old code will probably not work any
more.

It also adds a number of great new features, such as global `read`
and `write` functions that do not require you to open a
`SoundFile`, or a `blocks` function that can read a sound file one
block at a time. It has also grown a lot more flexible and powerful at
opening things like streams, buffers, or file descriptors.

With all these improvements, we feel that the indexing interface is
not needed any more. It is now officially marked as deprecated and
might be removed in the future.

A big, big thank you to Matthias Geier, who did most of the work!

Changes:
- Switched to `float64` as default data type.
- Function arguments changed for consistency.
- Added unit tests.
- Added global `read()`, `write()`, `blocks()` convenience
functions.
- Documentation overhaul and hosting on readthedocs.
- Added `'x'` open mode.
- Added `tell()` method.
- Added `__repr__()` method.

0.5.0

This release includes quite a few new features and bug fixes:
- a flush() method
- fixed bug that reported the wrong len()
- indexing now works for frames and channels
- read() reads to the end of the file by default
- fixed bug that seeked to the wrong place in some cases.

A big thanks to mgeier, who helped to find and fix a lot of these issues!

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.