Reply To: OpenEars crashes every time now I've upgraded to iOS6

Home Forums OpenEars PocketsphinxController plus Nuance SDK breaks AudioSessionManager in iOS6 Reply To: OpenEars crashes every time now I've upgraded to iOS6

#11298
explodingphone
Participant

Hey, I’ve had another look at the conflict that’s occurring here. It is Nuance that is causing the issue, I’d not dug deep enough. Let me run you through the code.


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
...
XPLogInViewController *logInViewController = [[XPLogInViewController alloc] initWithNibName:@"XPLogInViewController" bundle:nil];
self.navigationController = [[UINavigationController alloc] initWithRootViewController:logInViewController];
self.window.rootViewController = self.navigationController;
...
}

But in XPLogInViewController I add a subview with:

- (id)initWithFrame:(CGRect)frame
{
self = [super initWithFrame:frame];
if (self) {
...
[SpeechKit setupWithID:@"......"
host:@"sandbox.nmdp.nuancemobility.net"
port:443
useSSL:NO
delegate:nil];
}

So Nuance SDK is instantiated (but not actually ‘listening’) when I try to get PocketSphinx going.

As the whole system seems to work fine in iOS5, I think that Nuance isn’t allowing PocketSphinx to get at the hardware. Does that sound plausible? I’ll get on and see if I can contact Nuance and see what they suggest.