Home › Forums › OpenEars plugins › Error when integrating the NeatSpeech demo › Reply To: Error when integrating the NeatSpeech demo
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];
}
}