2013-02-02 49 views
8

我需要在我的android應用程序中離線訓練CMU Sphinx。我下載了使用這個參數的this項目,但是當我啓動它時,我有這個錯誤:Fatal signal 11 (SIGSEGV) at 0x0000001c (code=1)。當Sphinx無法找到聲學模型時,我也有這個錯誤。我在我的問題here上找到了答案,但它對我不起作用。我做錯了什麼,任何人都可以給我提供任何教程,或者一個很好的答案?在CMU Sphinx(pocketsphinx)中使用JSGF語法代替DMP語言模型(使用-jsgf代替-lm)

所以問題是如何使用.jsgf文件而不是.DMP文件作爲Pocketsphinx的語言模型,就像它用於Inimesed項目中的識別器任務一樣?

+0

提供您的設備 –

+0

上創建以下文件pocketsphinx.log是日誌: NFO:acmod.c(242):解析的從/mnt/sdcard/Android/data/ee.ioc特定型號的特徵參數。 (684):初始化要輸入以下內容的特徵流:'s2_4x',ceplen = 13,CMN ='current',VARNORM ='fn.font.inimesed /files/hmm/et_ee/16000/ feat.params INFO:feat.c no',AGC ='none' INFO:cmn.c(142):mean [0] = 12.00,mean [1..12] = 0.0 錯誤:「acmod.c」,第84行:Acoustic model definition is既沒有用-mdef選項也沒用-hmm指定 如果需要,我可以提供整個文件 –

+0

這個錯誤意味着你沒有把數據文件放到適當的位置。檢查源文件夾中應包含哪個文件夾(-hmm選項) –

回答

3

如果CMU Sphinx的工作方式與Android和Windows上,下面可以幫助:

http://www.aiaioo.com/cms/index.php?id=28 http://homepages.abdn.ac.uk/k.vdeemter/pages/teaching/NLP/practicals/JSGFGrammar.html http://www.w3.org/TR/jsgf/

例JSGF文件:

#JSGF V1.0; 
grammar hello; 
public <command> = (open | close) (computer | window | music | note); 

保存在上面的語法文本文件名爲「hello.gram」,然後運行sphinx:

pocketsphinx_continuous.exe -hmm hub4wsj_sc_8k -jsgf hello.gram -dict hub4.5000.dic