語音識別工具箱HTK 識別yes 和no

2021-08-28 08:24:18 字數 3549 閱讀 8802

前言:

這個htk真心麻煩 真的要學一學怎麼寫乙個指令碼,自動執行這麼多的步驟了

識別效果真的不咋地吧

我發現自己寫的blog 被覆蓋了 很生氣 !csdn 的匯出功能不能匯出這是什麼鬼 !沒有備份真是乙個巨大的錯誤!

參考文獻:

官方的文件:《htk 基礎指南》

特別鳴謝:孫大佬

6.建立hmm模型

7.對模型初始化

8.訓練檔案

9. 建立詞典檔案

10.識別

11.互動式識別

遇到的問題:

hslab  yes.sig  (沒有就建立 有就開啟該檔案)

(刪除比較麻煩 但是能刪除 刪除的時候 它不會消失)

hcopy -a -d -c  analysis.conf -s targetlist.txt
(下面的三個檔案 是a矩陣 就是傳遞概率的引數)

hinit -a -d -t 1 -s trainlist.txt -m hmm0 -h hmm_yes -l yes -l label_dir yes 回車

hinit -a -d -t 1 -s trainlist.txt -m hmm0 -h hmm_no -l no -l label_dir no 回車

hinit -a -d -t 1 -s trainlist.txt -m hmm0 -h hmm_sil -l sil -l label_dir sil 回車

hcompv -a -d -t 1 -s trainlist.txt -m hmm0flat -h hmm_yes -f 0.01 yes
hrest -a -d -t 1 -s trainlist.txt -m hmm1 -h hmm0\hmm_yes -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm2 -h hmm0\hmm_yes -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm3 -h hmm0\hmm_yes -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm1 -h hmm0\hmm_no -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm2 -h hmm0\hmm_no -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm3 -h hmm0\hmm_no -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm1 -h hmm0\hmm_sil -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm2 -h hmm0\hmm_sil -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm3 -h hmm0\hmm_sil -h vfloors -l sil -l label_dir sil

執行後在hmm0flat資料夾中有vfloors檔案。複製到當前資料夾中。

hparse -a -d -t 1 gram.txt net.slf

hsgen -a -d -n 10 -s net.slf dict.txt

hvite -a -d -t 1 -h hmm3\hmm_yes -h hmm3\hmm_no -h hmm3\hmm_sil -i reco.mlf -w net.slf dict.txt hmmlist.txt yes_00.mfcc
記事本開啟reco.mlf,便可看到識別結果

刪掉空格 加回車

把參考教程中的中文注釋都要刪掉

參考教程中有一處命名錯誤,有一處命令中的檔名錯誤

它不會自動建立檔案

hrest -a -d -t 1 -s trainlist.txt -m hmm1 -h hmm0\hmm_yes -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm2 -h hmm0\hmm_yes -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm3 -h hmm0\hmm_yes -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm1 -h hmm0\hmm_no -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm2 -h hmm0\hmm_no -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm3 -h hmm0\hmm_no -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm1 -h hmm0\hmm_sil -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm2 -h hmm0\hmm_sil -h vfloors -l sil -l label_dir sil

hrest -a -d -t 1 -s trainlist.txt -m hmm3 -h hmm0\hmm_sil -h vfloors -l sil -l label_dir sil

語音識別之HTK入門(四)訓練模型

生成proto和vfloors hcompv c config config color f 0.01 m s config train.scp m hmm0 config proto生成macros perl scripts makemacros hmm0 vfloors hmm0 macros生...

ZS語音識別 智慧型語音識別工具 V1 3 綠色版

主要功能 一,語音轉文字轉換功能 1.啟動最新版本的zs語音識別後,將滑鼠放在要輸入文字的位置,就像使用輸入法一樣。2.按語音輸入按鈕進行錄製 3.錄製完成後,再次按下語音輸入按鈕進行確認。4,等待軟體識別和處理 5.識別完成後,識別內容將輸出到游標位置。如果出現識別失敗提示,請按語音輸入按鈕再試一...

基於HTK的連續語音識別系統搭建學習筆記(一)

該系統能夠識別連續說出的數字串和若干組姓名。建模是針對子詞 sub word,eg.音素 具有一定的可擴充性。當加入乙個新名字時,只需修改發音字典和任務語法即可。模型為連續混合高斯輸出,運用語音決策樹聚類形成的繫結狀態式三音素。1.資料準備 需要錄製訓練資料和測試資料。為進行校準,還需要資料的標註文...