All Downloads are FREE. Search and download functionalities are using the official Maven repository.

marytts.tools.voiceimport.templates.LoadVoiceIT Maven / Gradle / Ivy

The newest version!
package marytts.voice.${PACKAGE};

import static org.junit.Assert.assertNotNull;
import marytts.modules.synthesis.Voice;
import marytts.util.MaryRuntimeUtils;

import org.junit.BeforeClass;
import org.junit.Test;

public class LoadVoiceIT {
	
	@BeforeClass
	public static void beforeClass() throws Exception {
		MaryRuntimeUtils.ensureMaryStarted();
	}
	
    @Test
    public void canLoadVoice() throws Exception {
    	Config config = new Config();
        Voice voice = new ${VOICECLASS}(config.getName(), null);
        assertNotNull(voice);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy