Reply To: Change vocabulary array on the fly?

Home Forums OpenEars Change vocabulary array on the fly? Reply To: Change vocabulary array on the fly?

#1019428
davestrand
Participant

Sorry, here’s from the initial setup..

    //[OpenEarsLogging startOpenEarsLogging]; // Uncomment me for OpenEarsLogging
    
	[self.openEarsEventsObserver setDelegate:self];
    
    // This is the language model we're going to start up with.
    
#pragma mark STARTING LANGUAGE

    
	self.pathToGrammarToStartAppWith = [NSString stringWithFormat:@"%@/%@",[[NSBundle mainBundle] resourcePath], @"OpenEars1.languagemodel"];
    
	self.pathToDictionaryToStartAppWith = [NSString stringWithFormat:@"%@/%@",[[NSBundle mainBundle] resourcePath], @"OpenEars1.dic"];
    
	self.usingStartLanguageModel = TRUE;
     

	
#pragma mark CUSTOM LANGUAGE
    
    [self reLoadLanguageBasedOnNewVariables]; //----DL ADDED TO TRY AND PULL LOCATION INFO FROM FUNCTION
    
    [self startListening]; //--- DL ADDED THIS FROM ABOVE
    
	[self startDisplayingLevels];
    
	// Here is some UI stuff that has nothing specifically to do with OpenEars implementation
	self.startButton.hidden = TRUE;
	self.stopButton.hidden = TRUE;
	self.suspendListeningButton.hidden = TRUE;
	self.resumeListeningButton.hidden = TRUE;
    
    
    

    
    
    
    
    //DL EXPERIMENTS BELOW//
    
   
    [self.pocketsphinxController changeLanguageModelToFile:self.pathToDynamicallyGeneratedGrammar withDictionary:self.pathToDynamicallyGeneratedDictionary]; //I'M FORCING IT into our VoiceGameCorpus.txt..  eventually simplify startup language, or learn how to switch based on city/location.
    self.usingStartLanguageModel = FALSE;
    
    
   

    

    
   
}