Giter VIP home page Giter VIP logo

python-world's People

Contributors

dintu-cslu avatar noobar avatar tuanad121 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-world's Issues

real-time example

Hi, I'm new to WORLD. IT is obviously an awesome software but I was wondering how I can use it in realtime, since it is the main point of the original paper. I'm doing some like this now, but the result is very choppy:

def apply(vocoder,fs,x_int16):
    #fs, x_int16 = wavread(wav_path)
    x = x_int16 / (2 ** 15 - 1)
    
    # analysis
    dat = vocoder.encode(fs, x,f0_method ='harvest')# f0_method='harvest', is_requiem=False) # use requiem analysis and synthesis
    

    dat = vocoder.scale_pitch(dat, 1.5)

    dat = vocoder.decode(dat)
    return (dat['out'] * 2 ** 15).astype(np.int16)

i'm applying the function to 1024 bytes of the stream that I get. any ideas how I can improve?

d4cRequiem

Hello

I wanted to experiment with the D4C measure. I have a question and a suggestion

I don't quite see the difference reason to have a d4cRequiem version. Could you explain what the Requiem means here ?

On a side note: I stumbled a bit when reading round_matlab :

This is a little bit confusing as the function does in fact not round it just returns a float array that if converted to int does matlab rounding. How about using this as replacement

def round_matlab(x):
  return np.floor(x + 0.5*np.sign(x))

using pure numpy (no numba) this function is 3 times faster than your version and does indeed round.

What is happening for modify_duration?

I was trying to modify duration for a sub-duration of a signal, but realized that the synthesizer doesn't generate good quality output. I then noticed this line in the example:
https://github.com/tuanad121/Python-WORLD/blob/master/example/prosody.py#L44
and the modify_duration function, which seems to be exactly what I wanted:
https://github.com/tuanad121/Python-WORLD/blob/master/world/main.py#L177

Seems like the current code fails on this operation? Is there any understand why this is happening?

ValueError

I am getting this error every time I try
ValueError: operands could not be broadcast together with shapes (144,) (2,). the code is as follows:

from scipy.io.wavfile import read as wavread
wav_path = '/content/thats-okay-1.wav'
fs, x_int16 = wavread(wav_path)
x = x_int16 / (2 ** 15 - 1)
from world import main
vocoder = main.World()

analysis

dat = vocoder.encode(fs, x,f0_method ='harvest')# f0_method='harvest', is_requiem=False)

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.