본문 바로가기

반응형

과제모음

(122)
[CMU Sphinx]DOM parser 기반 XML Parsing import java.io.*; import java.util.Vector; import javax.xml.parsers.*; import org.w3c.dom.*; public class DOM { public static Vector Vec = new Vector(0,1); /** * @param args */ public static void main(String[] args) throws Exception { // TODO Auto-generated method stub DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance(); DocumentBuilder bul = fac.newDocumentBuilder(); Document TV =..
[CMU Sphinx]SAX Parse를 이용한 gram 파일 자동작성 ## SettingContentHandler.java## import javax.xml.parsers.*; import org.xml.sax.*; public class SettingContentHandler { public static void main(String args[]) throws Exception{ SAXParserFactory factory = SAXParserFactory.newInstance();//initialize SAXparse SAXParser parser = factory.newSAXParser(); XMLReader reader = parser.getXMLReader(); ContentHandler contentHandler = new MyContentHandler(); r..
Installing HTK on Microsoft Windows(compiling HTK using Microsoft Visual Studio) Prerequisites HTK has been verified to compile using Microsoft Visual Studio. For testing, you will require a Perl interpreter such as ActivePerl. You will need a tool such as 7-zip for unpacking the HTK source code archive. Register on this site by accepting the HTK End User Licence Agreement, then download the latest HTK source code. It is helpful if you have some familiarity with using the DO..
[CMU Sphinx]언어모델(Language Model : LM)파일 생성법 Typical UsageGiven a large corpus of text in a file a.text, but no specified vocabulary Compute the word unigram counts cat a.text | text2wfreq > a.wfreq Convert the word unigram counts into a vocabulary consisting of the 20,000 most common words cat a.wfreq | wfreq2vocab -top 20000 > a.vocab Generate a binary id 3-gram of the training text, based on this vocabulary cat a.text | text2idngram -vo..
CMU SPHINX - JAVA 음성인식 JAVA API 로 예제데모로 제공된 JSGF 파일을 이용하여 음성인식을 작성하였다. 패키지 경로를 재설정해주고 API 와 Sphinx4 발음사전이 들어있는 jar 파일들을 라이브러리 참조를 해준후에 grammar 파일을 새로 작성하여 소스를 수정한 결과 인식률이 그럭저럭 80~90% 정도로 올라갔다. 우리가 인식하여야 하는것은 발음사전에 없는 단어도 있기 때문에 jar 파일의 압축을 풀어 사전파일에 단어들을 추가 및 발음 기호를 참고 하여 발음도 적어준후 이클립스로 다시 컴파일 & 런 결과 인식성공 => 이론적으로 발음을 참조하여 새로운 단어 인식이 가능하다는 것이 증명됨 내가 해야 할것 - JSGF 소스분석 (line by line) - 참조된 class 파일들의 분석 초기버전이 인식이 낮았던이유 -..
HTK음성인식 초기훈련 - gram 파일생성 $인식어 = word | word..; >> hparse gram wdnet 으로 word network 파일 생성 - 발음사전(dict 작성) - 단어단위 전사파일 작성 =>words.mlf 를 작성함 Master Label File 선언이 필수되어야 함 =>#!MLF!# ~.lab 의 경로를 생성해 준다 mkphones0.led 작성 EX => dict에있는 발음과 일치하는 것을 재배치 IS sil sil => 매 발성의 시작과 끝에 묵음처리 DE sp => 모든 sp(Short Pause)삭제 >> hled -n monophones0 -l * -d dict -i phones0.mlf mkphones.led eords.mlf - 특징추출 => config 파일과 scp 파일 작성..
Running the HTK Demo(htk demo) PATH ADD(In cmd) set path=%path%;"new path way" Among the samples on the HTK website you'll find the HTK-samples package that can be used to test your installation. As an initial test of the installation please run the HTK demonstration using the configuration file HTKDemo\configs\monPlainM1S1.dcf. There is a README file in the HTKDemo directory explaining the operation of the demonstration in ..
[Cmu sphinx]발음 rule light off : no term channel up : speed Tv volume : term channel up : careful pronouncing or announce always keep in mind accent about sentence

반응형