Skip to content

For this stretch factor, the stretch effect has better performance. #157

@SeongYeonPark

Description

@SeongYeonPark

When running the below code,

from scipy.io.wavfile import read
import sox
import numpy as np

path = 'input.wav'
sr, wav = read(path)
tfm = sox.Transformer()
tfm.set_globals(verbosity=0)
stretch_ratio = np.random.normal(1.05,0.125)
tfm.tempo(stretch_ratio, audio_type='s')
wav = tfm.build_array(input_array=wav, sample_rate_in=sr)

I get a warning that says
'For this stretch factor, the stretch effect has better performance.'.

I want to turn this off, but it seems that
tfm.set_globals(verbosity=0)
does nothing.

What can I do to turn that warning off?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions