GithubHelp home page GithubHelp logo

Comments (6)

JorisCos avatar JorisCos commented on September 18, 2024

Hello,
Thanks for pointing out this issue.
The problem comes from the library pysndfx.
I believe you are using Windows right ?
I had trouble using this library on my Windows machine as well but it works just fine on Linux.
I will investigate further and come back to you with more information.

from librimix.

JorisCos avatar JorisCos commented on September 18, 2024

I couldn't replicate the error on my machine.
Have you installed sox on your machine ?
On a Windows environment with anaconda running conda install -c groakat sox
in your working environment should do the trick.
If it is still not working can you try to run this in a python console

from pysndfx import AudioEffectsChain    
import numpy as np    
s =np.random.randn(1,16000)    
fx = (AudioEffectsChain().speed(0.8))    
fx(s)

from librimix.

cloverhsiao avatar cloverhsiao commented on September 18, 2024

Yes, I am using Window.

conda install -c groakat sox printf()
solve the error caused by the library pysndfx.

However, I got another error like this.
sdwferf

And I tried to run this in a Linux VirtualBox environment.
The error reason is the same Index Error.
ubutu

so I tried to modify the line in scripts/augment_train_noise.py
# Get 1st channel
# s = s[ : , 0 ]
change to
# Get 1st channel
# s = s

the running outcome will become like this.

aaana

in Linux VirtualBox environment
ubutu2222

from librimix.

JorisCos avatar JorisCos commented on September 18, 2024

You have tried to run the augmentation on wham noise multiples times.
There are 20000 noises in wham_noise/tr before augmentation and 60000 after augmentation.
The 20000 original noise have 2 channels the 40000 augmented have one this is why you have this error.
Just skip augmentation IMO

from librimix.

cloverhsiao avatar cloverhsiao commented on September 18, 2024

Yes. Thank you so much.
I commented out the augment noise and successfully generate the dataset.

And I find out that the program will fail if you only want to generate types mix_clean.
mix_clean
I do this at first then I always got error message.

Then I change the types to only mix_both or mix_clean + mix both and successfully generate the dataset.

Thank you

from librimix.

JorisCos avatar JorisCos commented on September 18, 2024

Glad to hear that !
I will look into the last error thank you for reporting it ! 🚀

from librimix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.