Skip to content

real-time example #2

Description

@alirezag

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions