Package

Source Code of MyTest

import org.junit.Test;

import ua.net.maxx.dsl.DictionaryParser;
import ua.net.maxx.dsl.DslDictionaryParser;
import ua.net.maxx.langtrainer.Dictionary;
import ua.net.maxx.langtrainer.Global;

public class MyTest {

  public void test() {

  }

  @Test
  public void dslSanerimpTest() {

    String file = "/home/maxx/Dictionary/dsl/En-En-Longman_Pronunciation.dsl";
    System.out.println(file);
    System.out.println(Global.settings.dicPath);

    DictionaryParser scaner = new DslDictionaryParser(Global.settings.dicPath);

    Dictionary dic;
    dic = scaner.findWord("innate");
    System.out.println(dic.wavurl);
    System.out.println(dic.transcript);
  }

  public void audioTest() {
    Global.playFile("us_ld45about.wav");
  }

}
TOP

Related Classes of MyTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.