I’m experimenting with many English acoustic models for comparisons.
But currently I’m limited to three bundles because of the restriction from OELanguageModelGenerator.m:
if ([acousticModelName isEqualToString:@”AcousticModelEnglish”] || [acousticModelName isEqualToString:@”AcousticModelAlternateEnglish1″] || [acousticModelName isEqualToString:@”AcousticModelAlternateEnglish2″]) return nil; // These shouldn’t load g2p
Could we allow an arbitrary number of bundles by instead having the same check in OELanguageModelGenerator.m as done in OEGraphemeGenerator.m?
if (([acousticModelName rangeOfString:@”AcousticModelEnglish”].location != NSNotFound) || ([acousticModelName rangeOfString:@”AcousticModelAlternateEnglish”].location != NSNotFound)) return nil; // These shouldn’t load g2p
Like that, I will be able to name my bundles “AcousticModelEnglishAdjusted” or “AcousticModelAlternateEnglish3”, “AcousticModelAlternateEnglish4”, “AcousticModelAlternateEnglish5”, …
Thanks.