cmusphinx 자습서를 읽고 pocketsphinx android 데모를 성공적으로 실행했습니다.
이제 데모를 수정하고 이탈리아어 지원을 추가하고 싶습니다.알 수없는 CMN 유형 'batch'in pocketsphinx
- cmusphinx - 그것 - 5.2.tar.gz : 이탈리아 모델 다운로드 페이지 (here) 나는 두 개의 파일을 볼 수 있습니다에서
이 모델 매개 변수를 포함; - it.tar.gz : 사전을 포함합니다.
나는 /src/main/assets/sync
에서 사전을 복사 및 설치에 voxforge_it_sphinx.cd_cont_2000의 내용 모델과 새 폴더 /src/main/assets/sync/it-ptm
를 만듭니다. 그때 나는이 같은 이탈리아어 자원의 목록을 추가하여 파일 assets.lst
수정 :
cmudict-en-us.dict
digits.gram
en-phone.dmp
en-us-ptm/README
en-us-ptm/feat.params
en-us-ptm/mdef
en-us-ptm/means
en-us-ptm/noisedict
en-us-ptm/sendump
en-us-ptm/transition_matrices
en-us-ptm/variances
it-ptm/feat.params
it-ptm/feature_transform
it-ptm/mdef
it-ptm/means
it-ptm/mixture_weights
it-ptm/noisedict
it-ptm/transition_matrices
it-ptm/variances
it.dic
menu.gram
weather.dmp
마지막으로이 같은 코드를 수정 :
recognizer = defaultSetup()
.setAcousticModel(new File(assetsDir, "it-ptm"))
.setDictionary(new File(assetsDir, "it.dic"))
성공적으로 프로젝트 빌드하지만 자산 동기화 후 응용 프로그램이 충돌합니다. 여기에 기록 된 오류 :
I/cmusphinx : INFO : pocketsphinx.c (145) : /storage/emulated/0/Android/data/edu.cmu.sphinx.pocketsphinx/files에서 파싱 된 모델 별 기능 매개 변수 /sync/it-ptm/feat.params
E/cmusphinx : FATAL : "cmn.c", 줄 126 : 알 수없는 CMN 형 '배치'
사람이 문제가 있는지 말해 줄래? 감사합니다
감사 니콜라이에서 최신 버전을 체크 아웃 할 수 있습니다. 이전 버전을 실행하려면 -cmn 배치 대신 feat.params에서 ** - cmn current **를 사용하고 있었지만 최신 버전에서는 문제가 해결되었습니다. – salvolds