appcontrol

Forum Replies Created

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

  • Author
    Posts
  • in reply to: Error when integrating the NeatSpeech demo #14905
    appcontrol
    Participant

    O-keeee, I got it working now :-)

    The problem was that I have one single XCode project with several targets, and when I did copy the Voices folder to my project, it got added to only one target, so the voice files were missing in the bundle resources (Build phases -> Copy bundle resources).

    So the problem had nothing to do with architecture, singleton or VCs.

    Thanks for your good support, and expect an order for the full version next week, but for now, time for some more test, and… party.

    With kind regards,
    Vincent

    in reply to: Error when integrating the NeatSpeech demo #14901
    appcontrol
    Participant

    So, at this point I have something equivalent to the tutorial working, and by the way, the NeatSpeech voices are really good compared to the free ones…

    But I’m still struggling to integrate it in my application, even in one of the many view controllers I have. Does NeatSpeech assumes, that the objects will be properties of the root view controller, or can it be any VC ?

    Thanks,
    Vincent

    in reply to: Error when integrating the NeatSpeech demo #14897
    appcontrol
    Participant

    Thanks for your answers.

    The singleton is there because of the way the app is using sound, not to encapsulate NeatSpeech. And this works with the Slt voice, so I hoped it would be easy to switch to NeatSpeech.

    Regarding the queuing, it’s in place because Slt and the previous sound mechanism I used could’t handle it, and the text come in chunks because of the nature of the app.

    I did not expect such a difference between OpenEars and NeatSpeech, but I’ll test further, and let you know if I need more support.

    Vincent.

    in reply to: Error when integrating the NeatSpeech demo #14894
    appcontrol
    Participant

    Hi,

    thanks for the swift reaction, this is really good.

    Here’s a code extract, the crash error occurs on the line where the stEmma (static variable) is initialized.

    Thanks,
    Vincent

    ==========

    +(void) sayText:(NSString*)text{

    if(stFliteController == nil){
    stFliteController = [[FliteController alloc]init];
    }

    if(stEmma == nil){
    stEmma = [[Emma alloc]initWithPitch:0.0f speed:0.0f transform:0.0f];
    }

    if(theQueue == nil){
    theQueue = [[NSMutableArray alloc]initWithCapacity:10];
    }

    if([stFliteController speechInProgress]){
    // NSLog(@”AudioSingleton sayText:%@ –> Will queue it”, text);
    [theQueue addObject:text];
    }
    else{
    // NSLog(@”AudioSingleton sayText:%@ –> will say it”, text);
    [stFliteController sayWithNeatSpeech:text withVoice:stEmma];
    }
    }

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