Change pitch without recreating voice obj

Home Forums OpenEars plugins Change pitch without recreating voice obj

Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)

  • Author
    Posts
  • #12473
    josh
    Participant

    With neatspeech is it possible to change the pitch without recreating the voice object as this takes time? I have tried using the voice pitch variable however it doesn’t seem to update the pitch. I have also tried using the fliteController duration_stretch variable but this seems to be ignored if neatspeech libraries are included. To get duration_stretch to work I have to switch back to OpenEars slt and remove the neatspeech libraries.

    Example code:
    voice = [[William alloc] initWithPitch:pitch speed:speed transform:transform];
    [self.fliteController sayWithNeatSpeech:text withVoice: voice];

    // later … say with a high voice
    voice.pitch = 1.0;
    [self.fliteController sayWithNeatSpeech:othertext withVoice: voice];

    Thanks in advance.

    #12474
    Halle Winkler
    Politepix

    Hello,

    In NeatSpeech, voice characteristics have to be set during initialization.

    #12475
    josh
    Participant

    Ok, thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.