Skip to content

How to get the delay of cysoxr? #26

Closed

Description

@pengzhendong

I want to cache the original audio, but I don't know how to get the soxr_delay of cysoxr?

Activity

  1. dofuuz commented on Apr 29, 2024

    @dofuuz
    Owner

    It's not implemented in python-soxr.

    May I ask why do you need soxr_delay? It's not needed unless doing low-delay real-time processing with soxr.ResampleStream.

  2. pengzhendong commented on Apr 29, 2024

    @pengzhendong
    Author

    Yes. I need streaming resampling (48k=>16k) before streaming voice detection.
    I want to cache the original (48k) audio, but I don't konw how to set the buffer size. (I implement the soxr_delay,the value is 0)

    Output frame count may not be consistent.

    How to deal with the consistent? Thanks.

  3. dofuuz commented on Apr 29, 2024

    @dofuuz
    Owner

    You should add FIFO buffer to output if you need constant sample size.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions