zammer

Forum Replies Created

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

  • Author
    Posts
  • in reply to: NeatSpeech British pronunciations #1031978

    zammer
    Participant

    Sorry, you answered my question already…

    My only clue is that apparently there is a conversion table to “en-GB-x-rp” for CMU but I couldn’t get any further than that.

    Martin

    in reply to: NeatSpeech British pronunciations #1031977

    zammer
    Participant

    Hi,

    Yes, I think you are correct that it is the second issue. I edited a couple of particularly bad words:

    E.g. Awkward went from:
    (“awkward” nil (((ax) 0) ((k w er d) 0)))
    to
    (“awkward” nil (((ao r) 1) ((k w er d) 0)))
    and was much improved.

    Do you know of a version of the CMU dictionary with UK pronunciations at all?

    Thanks,

    Martin

    in reply to: iOS NeatSpeech destroy_engine Testflight reports #1027947

    zammer
    Participant

    I’ll try to get a backtrace. The problem I have is that I haven’t seen the crash myself, I just get the odd report via Crashlytics.

    The nil thing is to prevent Zombies with a deallocated parent object. As of about iOS8 if you don’t do that on e.g. a notification listener or delegate you can get a crash where the object looks for a dependant piece of memory that is now not there. This was my first attempt to fix the issue so is probably not doing much anyway.

    in reply to: iOS NeatSpeech destroy_engine Testflight reports #1027945

    zammer
    Participant

    The information I have is:

    Crashed: com.apple.main-thread
    EXC_GUARD 0xf3cac8e123456789
    raw
    0
    libsystem_kernel.dylib
    __close_nocancel + 12
    1
    libsystem_c.dylib
    fclose + 100
    2
    Zammr
    destroy_engine + 2981149
    3
    Zammr
    -[NeatSpeechVoice dealloc] + 3034697
    4
    libobjc.A.dylib
    objc_object::sidetable_release(bool) + 150
    5
    Zammr
    VoicePlayer.mm line 38
    -[VoicePlayer dealloc]
    6
    libobjc.A.dylib
    objc_object::sidetable_release(bool) + 150
    7
    Zammr
    GameLoopViewController.m line 87
    -[GameLoopViewController .cxx_destruct]
    8 libobjc.A.dylib
    object_cxxDestructFromClass(objc_object*, objc_class*) + 116
    12 UIKit
    -[UIViewController dealloc] + 1812
    13
    Zammr
    TopicViewController.m line 1072
    __50-[TopicViewController startSessionWithUser:topic:]_block_invoke
    14
    Zammr
    AppDelegate.m line 1181
    __73-[AppDelegate sendRequestWithMethod:endpoint:parameters:success:failure:]_block_invoke758
    15
    Zammr
    AFHTTPRequestOperation.m line 285
    __64-[AFHTTPRequestOperation setCompletionBlockWithSuccess:failure:]_block_invoke141
    16 libdispatch.dylib
    _dispatch_call_block_and_release + 10
    24 UIKit
    UIApplicationMain + 144
    25
    Zammr
    main.m line 18
    main
    26
    libdispatch.dylib
    (Missing)

    The wrapper is:

    #import “VoicePlayer.h”

    @implementation VoicePlayer

    -(instancetype)init
    {
    self = [super init];

    if ( self != nil ) {

    self.fliteController = [[OEFliteController alloc] init];

    self.elliot = [[Elliott alloc] initWithPitch: 0.0 speed: -0.2 transform: 0.9];
    }

    return self;
    }

    -(void)say:(NSString *)text
    {
    [self.fliteController sayWithNeatSpeech:text withVoice:self.elliot];
    }

    -(void)dealloc
    {
    self.elliot = nil;
    self.fliteController = nil;
    }

    @end

    With the two respective properties in the .h file.

    It looks like its something to do with releasing the memory but I can’t see where it would go wrong.

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