public static void ensureMaryStarted() throws Exception { synchronized (MaryConfig.getMainConfig()) { if (Mary.currentState() == Mary.STATE_OFF) { Mary.startup(); } } }
public static String getLocales() { StringBuilder out = new StringBuilder(); for (LanguageConfig conf : MaryConfig.getLanguageConfigs()) { for (Locale locale : conf.getLocales()) { out.append(locale).append('\n'); } } return out.toString(); }