Reply To: Error in generateLanguageModelFromArray call

Home Forums OpenEars Error in generateLanguageModelFromArray call Reply To: Error in generateLanguageModelFromArray call

#1033198
minilv
Participant

I am using
https://www.politepix.com/openears/ The latest code

But I still encountered the bug of generateLanguageModelFromArray crash.

Crash detailed stack:


10  myApp                   0x00000001060b208c -[OECMUCLMTKModel runCMUCLMTKOnCorpusFile:withBin:binarySuffix:] + 21012620 (OECMUCLMTKModel.m:278)
11  myApp                   0x00000001061110b8 -[OELanguageModelGenerator createLanguageModelFromFilename:] + 21401784 (OELanguageModelGenerator.m:488)
12  myApp                   0x0000000106111ba8 -[OELanguageModelGenerator generateLanguageModelFromArray:withFilesNamed:forAcousticModelAtPath:] + 21404584 (OELanguageModelGenerator.m:601) <code></code>


Code is:

let languageModelGenerator = OELanguageModelGenerator()

let keywordList = [“hey”, “test”, “start”]

let firstLanguageArray = keywordList

let firstVocabularyName = “FirstVocabulary”

// AcousticModelEnglish from bundle.
let firstLanguageModelGenerationError: Error! = languageModelGenerator.generateLanguageModel(from: firstLanguageArray, withFilesNamed: firstVocabularyName, forAcousticModelAtPath: OEAcousticModel.path(toModel: “AcousticModelEnglish”))
`

  • This reply was modified 1 year, 5 months ago by minilv.
  • This reply was modified 1 year, 5 months ago by minilv.
  • This reply was modified 1 year, 5 months ago by minilv.