tbeagley

Forum Replies Created

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

  • Author
    Posts
  • tbeagley
    Participant

    Very helpful, thank you.

    in reply to: Malloc_error when changing views in UINavigationController #1018421
    tbeagley
    Participant

    Works like a charm, Halle.

    Thanks for the amazing response!

    I have another unrelated question, is it better to just start a new thread? (regarding word pronunciation and dictionaries)

    in reply to: Malloc_error when changing views in UINavigationController #1018420
    tbeagley
    Participant

    I’ll let you know right away.

    in reply to: Malloc_error when changing views in UINavigationController #1018418
    tbeagley
    Participant

    Great to hear, thanks a ton.

    in reply to: Malloc_error when changing views in UINavigationController #1018416
    tbeagley
    Participant

    Just checking in, any new info?

    in reply to: Malloc_error when changing views in UINavigationController #1018405
    tbeagley
    Participant

    Thanks for the quick replies, Halle. I appreciate the time you’ve given me.

    I’ll attempt the workaround for now and I look forward to your updates.

    in reply to: Malloc_error when changing views in UINavigationController #1018402
    tbeagley
    Participant

    Not sure if it helps, but here’s the code where the speech is triggered:

    //labels from JSON data for visual and audio
    NSString *readLabels = [NSString stringWithFormat:@"%@%@%@",self.lblRead1.text,self.lblRead2.text,self.lblRead3.text];
        
    //some lazy code based on the user's voice prefs (male or female)
        if ([voiceIsSet isEqualToString:voiceIsEmma]) {
            [self.fliteController sayWithNeatSpeech:readLabels withVoice:self.ealt];
        } else {
            [self.fliteController sayWithNeatSpeech:readLabels withVoice:self.william];
        }
    in reply to: Malloc_error when changing views in UINavigationController #1018401
    tbeagley
    Participant

    Device is an iPhone 4s and OS is 6.1.3 (most of the users in my company disregard os upgrades, so I’ll need to support 6.x for a while)

    The issue also occurs on a 4s running iOS 7 and in the emulators running both versions.

    in reply to: Malloc_error when changing views in UINavigationController #1018398
    tbeagley
    Participant

    I was really hoping to push this out today. I didn’t realize you were in Germany.

    Here’s one of the buttons that would stop speech:

    - (IBAction)btnBrowse:(id)sender {
        
        [self.fliteController stopSpeaking];
        
        //go back to a url where we get some data from JSON
        NSString *website = [NSString stringWithFormat:@"...some URL"];
        NSURL *url = [NSURL URLWithString:website];
        NSURLRequest *requestURL = [NSURLRequest requestWithURL:url];
        [webBoxPDF01 loadRequest:requestURL];
        
    }

    that stops the speech, but when I exit that view using the navigation controller’s back button it crashes.

    And I’ve even taken to adding this to my .mm file for the view that uses fliteController:

    - (void)dealloc {
        [self.fliteController stopSpeaking];
    }

    The voice stops speaking, but again, the app crashes.

    in reply to: Malloc_error when changing views in UINavigationController #1018396
    tbeagley
    Participant

    Yes, every button that takes the user away from the page of spoken contents sends that message, including when the view is changed.

    I see that the command is obeyed (the speech stops) but as soon as the view controller unloads I get the error. Setting the break point in malloc_error_break doesn’t tell me much (I’m a bit new to Xcode and ObjC)

    How do you typically handle having flite/openears in a navigation project with multiple views? Would you import everything into the AppDelegate files (or some other files) and reference from there? Or should it “just work” when resources are de or reallocated from one view to another view?

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