marl / marl/pysox

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

Open
#157 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
540
Forks
83
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Transformer.set_globals(verbosity=0) and build_array(input_array=..., sample_rate_in=...) entry points shown in the report, then trace how the SoX warning reaches Python. Reproduce the warning with the provided snippet and verify that the intended verbosity setting suppresses it without preventing the tempo transformation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
audio-video-rtc
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.