Reply To: Unable to obtain correct path to language model

Home Forums OpenEars Unable to obtain correct path to language model Reply To: Unable to obtain correct path to language model

#1032673
Mike Stein
Participant

Thanks, Halle.

I looked at the Swift sample app and did figure it out, and now it works fine. It worked just defining a view controller property “var pathToFirstDynamicallyGeneratedLanguageMode:String!” like you did in the sample App and then setting that variable = to the OELanguageModelGenerator method of obtaining the path to the language model in my main program. In retrospect it seemed inefficient of me to try and use the text property of a UITextField control property I assigned to my view controller as I forgot that any view controller property should be available for use in any of my view controller methods (although still not sure why assigning the value to a UIControlTextField.text property like I did wouldn’t also have worked). Still learning…

Happy upcoming New Year,

Mike