private static LoadDictFromDirectory ( ) : List |
||
return | List |
private static List<IVoiceSynthesizeFactory> LoadDictFromDirectory()
{
Directory.CreateDirectory(Path.Combine(PluginDirectoryNames.PluginDirectory, VoicePluginDirectory));
var loader = new VoiceSynthesizerLoader();
var catalog = new DirectoryCatalog(Path.Combine(PluginDirectoryNames.PluginDirectory, VoicePluginDirectory));
var container = new CompositionContainer(catalog);
container.ComposeParts(loader);
return loader._converters;
}