Skip to content

v0.12.0 release

Latest
Compare
Choose a tag to compare
@sammlapp sammlapp released this 05 Mar 15:37
8182649

Opensoundscape version 0.12.0

This release includes some (but not too many) breaking changes compared to 0.11.0, some bug fixes, and some new functionality.

A few highlights:

  • audio_root argument for CNN.predict(), CNN.train(), and similar functions
    this means your annotation and output csvs can contain (much shorter) relative audio paths rather than the absolute audio path

eg my_cnn.predict(['sub1/file1.wav','sub2/file2.wav'], audio_root="/Users/user/folder/project/")

This should make it easier to transfer projects between machines file systems, by simply changing the audio_root argument and leaving the dataframes of labels/scores (with file/start_time/end_time index) untouched.

import opensoundscape as opso
opso.birds # Audio object with 10s of Pennsylvania bird song
opso.birds_path # path to 10s audio clip
  • Save mp3/opus format audio with custom bitrate mode and compression levels
audio.save("output.mp3", bitrate_mode="VARIABLE", compression_level=0.8)
  • interactive display of preprocessor w/params interactive widget when Preprocessor objects are returned from a notebook cell (expand sections to show parameters of each action in the preprocessor's pipeline)

  • BoxedAnnotations.from_raven_files allows the user to pass a list of options for the name of the annotation column rather than just one option

  • added add train_test_split method for BoxedAnnotations

What's Changed

Full Changelog: v0.11.0...v0.12.0