Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Is there a way to read wav files per slices?  #236

Description

@cparcerisas

The *.wav files I am trying to read are quite large (about 100e6 samples) and I get a memory error when trying to use the gain function, and the function Signal.from_wav takes really long to execute.
Any tip to be able to read the files per chunks or to read them faster?
PySoundFile has a way to read per slices the wav files, and their reading algorithm is a bit faster, but then it takes again so long to convert it to an acoustics.Signal object.
I could also maybe try to implement it myself if there is no code prepared for it or any trick I am missing.
Any help will be really appreciated! :)

Activity

  1. FRidh commented on Dec 17, 2019

    @FRidh
    Member

    I suppose the Signal class could be improved by supporting numpy.memmap. Anyway, the way it is now, the Signal class is not intended for long signals requiring in-core operations.

  2. cparcerisas commented on Dec 17, 2019

    @cparcerisas
    Author

    Thanks!

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions