Giter VIP home page Giter VIP logo

Comments (4)

Subarasheese avatar Subarasheese commented on June 2, 2024 1

@p0p4k Great, it worked, thank you!

I suspect there was a problem on my side during my first attempt: I was not using an appropriate build inside monotonic_align, so at the time i did some workarounds that could have resulted in an empty audio array.

Just for documentation sake, I needed extra steps:

inside monotonic_align, I had to:

mkdir -p build/lib.linux-x86_64-cpython-310/monotonic_align
python setup.py build_ext --inplace

then (because it failed to move the files for some reason)

cp build/lib.linux-x86_64-cpython-310/monotonic_align/core.cpython-310-x86_64-linux-gnu.so monotonic_align/

from vits2_pytorch.

p0p4k avatar p0p4k commented on June 2, 2024

Hi, the inference.ipynb is supposed to be a standalone notebook and can be adopted to colab with some changes. The colab notebook is inside notebooks folder for trainings.
Can you maybe explore the wav data using numpy, and play it inside the notebook before saving? What are you using to save the files?

from vits2_pytorch.

Subarasheese avatar Subarasheese commented on June 2, 2024

Hi @p0p4k , I am saving the audio like this:


from scipy.io.wavfile import write

audio_path = "./output_audio.wav"
write(audio_path, hps.data.sampling_rate, audio.astype('int16'))
print(f"Audio saved to {audio_path}")



But it is writing as if the contents of "audio" is empty.

I would really appreciate if you could get this running outside of the Notebook/Colab environment, as a regular .py script =)
Thank you

from vits2_pytorch.

p0p4k avatar p0p4k commented on June 2, 2024

@Subarasheese I removed all the notebooks and now this repo contains inference.py files. Also, can you double check the contents of audio array before saving?

from vits2_pytorch.

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.