Вы находитесь на странице: 1из 17

Reconnaissance de Yes/No

laide du HTK
Adapt dun tutoriel du HTK par Nicolas Moreau

tapes de la ralisation
1.

2.
3.

4.
5.
6.

Cration de lensemble dapprentissage : Chaque


lment du vocabulaire est enregistr plusieurs fois, et
tiquet avec le mot correspondant
Analyse acoustique : Les signaux enregistrs sont
convertis en une srie de vecteurs de traits.
Dfinition des modles HMM : Un HMM est dfini pour
chaque lment du vocabulaire de la tche de
reconnaissance.
Entranement des modles HMM : Chacun est entran
avec lensemble dapprentissage correspondant.
Dfinition de la tche de reconnaissance : La
grammaire suivre est dfinie.
Reconnaissance et valuation de la performance sur un
corpus de test.

Organisation de lespace de travail


On cre la hirarchie de rpertoires suivante :

data/ : emmagasine les donnes dapprentissage et de test


(signaux
acoustiques, tiquettes, etc.) dans deux sousrpertoires
data/train/ et data/test/.
analysis/ : emmagasine les donns de ltape danalyse
acoustique.
training/ : emmagasine les fichiers concernant linitialisation
et
lapprentissage.
model/ :
Emmagasine les modles (HMMs).
def/ :
emmagasine les fichier de dfinition de la tche de
reconnaisance.
test/ : emmagasine les fichier ayant trait la validation
(test).

Cration du corpus dapprentissage

Lenregistrement et ltiquetage sont accomplis laide de


loutil HSLab (boutons rec, stop, mark et labelAs) :
HSLab nom.sig
Aprs ltiquetage, on obtient un fichier texte .lab de la forme
4171250 9229375 sil
9229375 15043750 yes
15043750 20430625 sil

On recommence le processus avec des noms de fichiers


diffrents pour chaque enregistrement (e.g. yes01.sig,
yes01.lab, yes02.sig, yes02.lab, etc.)

Analyse acoustique

On utilise loutil HCopy :


HCopy -A -D -C analysis.conf -S targetlist.txt
analysis.conf : fichier de configuration pour lextraction des
coefficients
acoustiques
targetlist.txt : script spcifiant les noms et locations de
chaque signal
traiter et du fichier de coefficients
correspondant gnrer.

MFCC_0_D_A = 12 MFCC + DC + 13 Delta + 13 Acceleration =39 coeff.

Dfinition structurelle des HMM


Il faut dfinir le nombre dtats, les fonctions dobservation
et les probabilit de transition entre tats : pas vident !

Il faut dfinir 3
prototypes de HMM
avec les options ~h
"yes", ~h "no" and ~h
"sil " dans les fichiers
de description
(hmm_yes, hmm_no,
hmm_sil, )

Entranement des HMM

Elle comprend une phase dinitialisation et une phase


dentranement pour chaque HMM

Entranement des HMM


Initialisation 1: alignement temporel par algorithme de
viterbi

HInit -A -D T 1 -S trainlist.txt -M model/hmm0 \


-H model/proto/hmmfile -l label -L label_dir
nameofhmm

nameofhmm : le nom du HMM initialiser


hmmfile : fichier descriptif contenant le prototype du HMM
trainlist.txt : liste complte des fichiers .mfcc constituant le corpus
dapprentissage
label_dir : Rpertoire des fichiers dtiquetage (.lab) correspondant au corpus
dapprentissage
label : indique quel segment tiquet doit tre utilis sans lensemble
dapprentissage (yes,no, ou sil, puisquon a utilis ces noms pour tiqueter les
HMMs)

Entranement des HMM


Initialisation 2: initialisation des moyenne et variances
HCompv -A -D T 1 -S trainlist.txt -M model/hmm0flat \
-H model/proto/hmmfile -f 0.01 nameofhmm

nameofhmm : le nom du HMM initialiser


hmmfile : fichier descriptif contenant le prototype du HMM
trainlist.txt : liste complte des fichiers .mfcc constituant le corpus
dapprentissage
label_dir : Rpertoire des fichiers dtiquetage (.lab) correspondant au
corpus dapprentissage
label : indique quel segment tiquet doit tre utilis sans lensemble
dapprentissage (yes,no, ou sil, puisquon a utilis ces noms pour tiqueter
les HMMs)
model/hmm0flat : Rpertoire de sortie (doit exister) pour la description de
HMM rsultante, doit tre diffrenet que celui de HInit.

La procdure doit tre rpte pour chaque modle (hmm_yes, hmm_no,


hmm_sil)
Pas requis si Hinit utilis, cependant gnre un fichier vFloors qui
contient les variances multiplies par un coefficient tabli avec loption f
(0.01 ci-dessus)

Entranement des HMM


Entranement

HRest -A -D -T 1 -S trainlist.txt -M model/hmmi -H vFloors \


-H model/hmmi-1/hmmfile -l label -L label_dir
nameofhmm

Nameofhmm, hmmfile, trainlist.txt, label_dir, label : comme avant


model/hmmi : Rpertoire de sortie pour litration courante.

La procdure est rpte plusieurs fois pour chaque modle (hmm_yes,


hmm_no, hmm_sil). Le processus sarrte lorsquune variable affiche
lcran, change, devient constante

Dfinition de la tche de reconnaissance


Sauve dans un fichier gram.txt

$word : variable qui prend les valeurs yes ou no


{ } : zro ou plusieurs rptions du contenu
[ ] : zro ou une rptition du contenu
Les HMM correspondant aux variables start_sil, end_sil, yes et no doivent
tre prdfinis et la correspondance emmagasine dans un fichier texte
(le dictionnaire de tche)
colonne gauche :
variable
Colonne droite : HMM
Milieu : nom du rsultat

Dfinition de la tche de reconnaissance


Le fichier gram.txt doit tre compil pour gnrer un rseau
de tche
HParse -A -D -T 1 gram.txt net.slf

Le systme constitu du rseau de tche, du dictionnaire de t6ache


et des HMM associs est alors prt pour faire de la reconnaissance de
parole

La reconnaissance en temps diffr

HVite -A -D -T 1 -H hmmsdef.mmf -i reco.mlf -w net.slf \


dict.txt hmmlist.txt input.mfcc

input.mfcc : les donnes dentre reconnatre


hmmlist.txt : liste des modles utiliser (yes, no, dil), un par ligne
dict.txt : dictionnaire de tche
reco.mlf : fichier de sortie
hmmsdef.mmf : contient les dfinitions des HMM concatnes

La reconnaissance en temps diffr

La reconnaissance en temps rel


On peut aussi faire de la reconnaissance en
direct !
HVite -A -D -T 1 -C directin.conf -g -H hmmsdef.mmf \
-w net.slf dict.txt
hmmlist.txt

directin.conf : fichier de configuration de lentre audio

Pas de fichier prenregistr! linvite


READY, on dit un mot au micro et en
pressant une cl du clavier, la rponse est
fournie.

La reconnaissance en temps rel

Вам также может понравиться

  • LINUX Le Guide des commandes
    LINUX Le Guide des commandes
    От Everand
    LINUX Le Guide des commandes
    Оценок пока нет
  • HTK: Reconnaissance Automatique de Parole
    HTK: Reconnaissance Automatique de Parole
    Документ18 страниц
    HTK: Reconnaissance Automatique de Parole
    Ayoub Hammouga
    100% (2)
  • Examen Rat 2016-1
    Examen Rat 2016-1
    Документ5 страниц
    Examen Rat 2016-1
    CHaima GHzayel
    Оценок пока нет
  • Malloc
    Malloc
    Документ9 страниц
    Malloc
    fkqsdhlfk
    Оценок пока нет
  • Exercices
    Exercices
    Документ10 страниц
    Exercices
    deogratias davo
    Оценок пока нет
  • TP TD Fichiers
    TP TD Fichiers
    Документ4 страницы
    TP TD Fichiers
    Marwane Ait Ouaicha
    100% (1)
  • Text File
    Text File
    Документ3 страницы
    Text File
    Abdelkader Barraj
    Оценок пока нет
  • Brochure TP 2022 2023
    Brochure TP 2022 2023
    Документ55 страниц
    Brochure TP 2022 2023
    usr_koto
    Оценок пока нет
  • Cours IaP & API Chap 7
    Cours IaP & API Chap 7
    Документ7 страниц
    Cours IaP & API Chap 7
    Menrad Fouroulou
    Оценок пока нет
  • TP2 Mini-Projet Compilation
    TP2 Mini-Projet Compilation
    Документ6 страниц
    TP2 Mini-Projet Compilation
    Lynda Haddad
    Оценок пока нет
  • Techniques de Programmation - Rappel
    Techniques de Programmation - Rappel
    Документ13 страниц
    Techniques de Programmation - Rappel
    fatima zahra
    Оценок пока нет
  • TD2 Programmation Shell
    TD2 Programmation Shell
    Документ3 страницы
    TD2 Programmation Shell
    kukis14
    Оценок пока нет
  • TD2 Programmation Shell
    TD2 Programmation Shell
    Документ3 страницы
    TD2 Programmation Shell
    kukis14
    Оценок пока нет
  • Les Fichiers (Partie1)
    Les Fichiers (Partie1)
    Документ2 страницы
    Les Fichiers (Partie1)
    naoufel charfeddine
    Оценок пока нет
  • Tpinfopython
    Tpinfopython
    Документ6 страниц
    Tpinfopython
    oueslati.hella
    Оценок пока нет
  • TD2 Programmation Shell
    TD2 Programmation Shell
    Документ3 страницы
    TD2 Programmation Shell
    Tahirou Toure
    Оценок пока нет
  • TP3 Sujet
    TP3 Sujet
    Документ2 страницы
    TP3 Sujet
    Victoria N
    Оценок пока нет
  • Lecture Et Écriture de Fichiers
    Lecture Et Écriture de Fichiers
    Документ11 страниц
    Lecture Et Écriture de Fichiers
    giceinma
    Оценок пока нет
  • Sujet
    Sujet
    Документ2 страницы
    Sujet
    Ilyes Ilyes
    Оценок пока нет
  • TP 3 Etudiant 2021 2022
    TP 3 Etudiant 2021 2022
    Документ2 страницы
    TP 3 Etudiant 2021 2022
    JOEL AMAN
    Оценок пока нет
  • TP Se2 Inf3 2023-1
    TP Se2 Inf3 2023-1
    Документ11 страниц
    TP Se2 Inf3 2023-1
    dey.ferrier.ram
    Оценок пока нет
  • Exercices Unix
    Exercices Unix
    Документ9 страниц
    Exercices Unix
    Imade Eddine
    Оценок пока нет
  • TD9 Les Fichiers 2022
    TD9 Les Fichiers 2022
    Документ2 страницы
    TD9 Les Fichiers 2022
    Maâroufi Med Hedi
    Оценок пока нет
  • Sujets T DTP
    Sujets T DTP
    Документ126 страниц
    Sujets T DTP
    Abdellatif Farzouz
    Оценок пока нет
  • Tp1 Scripts Bash
    Tp1 Scripts Bash
    Документ3 страницы
    Tp1 Scripts Bash
    radouane
    Оценок пока нет
  • Projets Programmation C
    Projets Programmation C
    Документ3 страницы
    Projets Programmation C
    ghassen lassoued
    Оценок пока нет
  • Sous Programme
    Sous Programme
    Документ8 страниц
    Sous Programme
    manuel
    Оценок пока нет
  • Cours C Pour Embarque
    Cours C Pour Embarque
    Документ119 страниц
    Cours C Pour Embarque
    MOMO WADIATOULAYE
    Оценок пока нет
  • Hadoop TP MSBG
    Hadoop TP MSBG
    Документ7 страниц
    Hadoop TP MSBG
    zemer
    Оценок пока нет
  • TP1
    TP1
    Документ6 страниц
    TP1
    ElHamoutIE
    Оценок пока нет
  • 2 Investigation
    2 Investigation
    Документ11 страниц
    2 Investigation
    tapha06300
    Оценок пока нет
  • Presentation Du Logiciel Matlab
    Presentation Du Logiciel Matlab
    Документ11 страниц
    Presentation Du Logiciel Matlab
    Boubacar Diallo
    Оценок пока нет
  • Cours Python - Partie 2
    Cours Python - Partie 2
    Документ27 страниц
    Cours Python - Partie 2
    xirolim279
    Оценок пока нет
  • TP 1
    TP 1
    Документ4 страницы
    TP 1
    Marcel Sarr
    Оценок пока нет
  • TP Treillis
    TP Treillis
    Документ4 страницы
    TP Treillis
    Wassim Benayed
    Оценок пока нет
  • Examen Final NFP111 2010-2011-Session1
    Examen Final NFP111 2010-2011-Session1
    Документ3 страницы
    Examen Final NFP111 2010-2011-Session1
    Peter Bardawil
    Оценок пока нет
  • TP1 Flex Introduction
    TP1 Flex Introduction
    Документ4 страницы
    TP1 Flex Introduction
    Aya Ayadi
    Оценок пока нет
  • Correction TD 1 1
    Correction TD 1 1
    Документ12 страниц
    Correction TD 1 1
    Hassan ezechiel DIARRASSOUBA
    0% (1)
  • Correction TD 1 1
    Correction TD 1 1
    Документ12 страниц
    Correction TD 1 1
    Hassan ezechiel DIARRASSOUBA
    Оценок пока нет
  • Algo 1&2 Complet
    Algo 1&2 Complet
    Документ316 страниц
    Algo 1&2 Complet
    ET-TASS AYOUB
    Оценок пока нет
  • Fi Chier
    Fi Chier
    Документ3 страницы
    Fi Chier
    Farida Illoul
    Оценок пока нет
  • CC - 13 11 18
    CC - 13 11 18
    Документ4 страницы
    CC - 13 11 18
    kousseila kouukou
    Оценок пока нет
  • Travaux D - 02
    Travaux D - 02
    Документ7 страниц
    Travaux D - 02
    Ahmed Fawzi
    Оценок пока нет
  • Correction TD Linux EX1
    Correction TD Linux EX1
    Документ16 страниц
    Correction TD Linux EX1
    Sarah Ben Belaid
    Оценок пока нет
  • TP 1
    TP 1
    Документ2 страницы
    TP 1
    Aymane LAABAR
    Оценок пока нет
  • Rep 10 Exo 2006
    Rep 10 Exo 2006
    Документ3 страницы
    Rep 10 Exo 2006
    Aymen Khaled
    Оценок пока нет
  • TP Unix
    TP Unix
    Документ5 страниц
    TP Unix
    manelyoussef2012
    Оценок пока нет
  • TP1 Enonce
    TP1 Enonce
    Документ5 страниц
    TP1 Enonce
    Maclout
    Оценок пока нет
  • TP1 Enonce
    TP1 Enonce
    Документ5 страниц
    TP1 Enonce
    Said Abbaoui
    Оценок пока нет
  • Examen Sys
    Examen Sys
    Документ3 страницы
    Examen Sys
    aymen237062481
    Оценок пока нет
  • Unité2 - LINUX NCO CDO PDF
    Unité2 - LINUX NCO CDO PDF
    Документ6 страниц
    Unité2 - LINUX NCO CDO PDF
    Moustapha Mbow
    Оценок пока нет
  • Python
    Python
    Документ4 страницы
    Python
    raed souei
    Оценок пока нет
  • Filière D'Ingénieur Energie Renouvelable Et Mobilité Electrique (Enr@Me)
    Filière D'Ingénieur Energie Renouvelable Et Mobilité Electrique (Enr@Me)
    Документ23 страницы
    Filière D'Ingénieur Energie Renouvelable Et Mobilité Electrique (Enr@Me)
    Younes Mozayine
    Оценок пока нет
  • Ms Dos Ficbatch
    Ms Dos Ficbatch
    Документ7 страниц
    Ms Dos Ficbatch
    hatem
    Оценок пока нет
  • TP01 Corr
    TP01 Corr
    Документ3 страницы
    TP01 Corr
    Karim Karima
    Оценок пока нет
  • tp3 Compilation
    tp3 Compilation
    Документ5 страниц
    tp3 Compilation
    Chouichi Ghada
    100% (1)
  • TP 01
    TP 01
    Документ4 страницы
    TP 01
    Elja Mohcine
    Оценок пока нет
  • TP 1 Structure
    TP 1 Structure
    Документ4 страницы
    TP 1 Structure
    ahmed fahssi
    Оценок пока нет
  • SE Serie 4 NC
    SE Serie 4 NC
    Документ2 страницы
    SE Serie 4 NC
    OUMAIMA BAHAFID
    Оценок пока нет
  • Algorithme Pro Chap2
    Algorithme Pro Chap2
    Документ243 страницы
    Algorithme Pro Chap2
    Arold Serge Tchikaya
    Оценок пока нет
  • TP Traitement de Signal
    TP Traitement de Signal
    Документ1 страница
    TP Traitement de Signal
    Andrea Fields
    Оценок пока нет
  • Mon Stage
    Mon Stage
    Документ7 страниц
    Mon Stage
    Andrea Fields
    Оценок пока нет
  • td01
    td01
    Документ2 страницы
    td01
    Andrea Fields
    Оценок пока нет
  • Sujet TP4
    Sujet TP4
    Документ6 страниц
    Sujet TP4
    Andrea Fields
    Оценок пока нет
  • GLM Déc 2020
    GLM Déc 2020
    Документ159 страниц
    GLM Déc 2020
    James Optimiste
    Оценок пока нет
  • TP6 Solutions
    TP6 Solutions
    Документ6 страниц
    TP6 Solutions
    Gemn
    Оценок пока нет
  • TD Stat Desc 1
    TD Stat Desc 1
    Документ2 страницы
    TD Stat Desc 1
    Ouedraogo Hassane
    Оценок пока нет
  • Version Finale ARCH
    Version Finale ARCH
    Документ47 страниц
    Version Finale ARCH
    EL MAOULI ZAKARIA
    100% (3)
  • Statistiques
    Statistiques
    Документ104 страницы
    Statistiques
    alibenhamida5725
    100% (1)
  • Fiches DATACAMP
    Fiches DATACAMP
    Документ25 страниц
    Fiches DATACAMP
    rollin
    Оценок пока нет
  • Introduction Monte Carlo
    Introduction Monte Carlo
    Документ39 страниц
    Introduction Monte Carlo
    GBE TAGO
    Оценок пока нет
  • MQG 2023
    MQG 2023
    Документ5 страниц
    MQG 2023
    alex
    Оценок пока нет
  • Exercices Python
    Exercices Python
    Документ6 страниц
    Exercices Python
    beckerrolandh
    Оценок пока нет
  • Statistique-Non Paramétrique-et-Robustesse-Série Exercices N°2
    Statistique-Non Paramétrique-et-Robustesse-Série Exercices N°2
    Документ11 страниц
    Statistique-Non Paramétrique-et-Robustesse-Série Exercices N°2
    karlaugustt123
    0% (2)
  • FichesRepresentationDonnees PDF
    FichesRepresentationDonnees PDF
    Документ25 страниц
    FichesRepresentationDonnees PDF
    Ethan JOHNSON
    Оценок пока нет
  • Collectif Espoir TD D'entraitement Sur Statistique Descriptive
    Collectif Espoir TD D'entraitement Sur Statistique Descriptive
    Документ6 страниц
    Collectif Espoir TD D'entraitement Sur Statistique Descriptive
    Aliou Maiga
    Оценок пока нет
  • Estimation, Intervalle de Confiance, Test Statistique
    Estimation, Intervalle de Confiance, Test Statistique
    Документ17 страниц
    Estimation, Intervalle de Confiance, Test Statistique
    bouimizar9
    100% (2)
  • Chapitre 2 Processus Stochastiques
    Chapitre 2 Processus Stochastiques
    Документ62 страницы
    Chapitre 2 Processus Stochastiques
    Mouhamed Moustapha
    Оценок пока нет
  • Cours Stat230
    Cours Stat230
    Документ39 страниц
    Cours Stat230
    Gilbert Kamanzi
    Оценок пока нет
  • Chap It Re 6
    Chap It Re 6
    Документ21 страница
    Chap It Re 6
    Limitless Bonois
    Оценок пока нет
  • Mathf 207 Seance 3
    Mathf 207 Seance 3
    Документ3 страницы
    Mathf 207 Seance 3
    soulaimane lafhal
    Оценок пока нет
  • P 100
    P 100
    Документ8 страниц
    P 100
    Imed Amiour
    Оценок пока нет
  • Acp Cours
    Acp Cours
    Документ18 страниц
    Acp Cours
    MohamedLahouaoui
    Оценок пока нет
  • Met-265837-Fiche Statistique N 2. Les Statistiques Descriptives de Base Suite Variance Ecart Type Dispersion - W-xeon8AAQEAADz-MN4AAAAG-A
    Met-265837-Fiche Statistique N 2. Les Statistiques Descriptives de Base Suite Variance Ecart Type Dispersion - W-xeon8AAQEAADz-MN4AAAAG-A
    Документ4 страницы
    Met-265837-Fiche Statistique N 2. Les Statistiques Descriptives de Base Suite Variance Ecart Type Dispersion - W-xeon8AAQEAADz-MN4AAAAG-A
    bhj
    Оценок пока нет
  • Statistique Chapitre I L1S1
    Statistique Chapitre I L1S1
    Документ21 страница
    Statistique Chapitre I L1S1
    Matt Ovono
    Оценок пока нет
  • Chapitre 0 Rappels
    Chapitre 0 Rappels
    Документ47 страниц
    Chapitre 0 Rappels
    Mohamed Zidane
    Оценок пока нет
  • FR Tanagra Kohonen SOM R
    FR Tanagra Kohonen SOM R
    Документ22 страницы
    FR Tanagra Kohonen SOM R
    Ruddy luther Nana
    Оценок пока нет
  • Série VA LP
    Série VA LP
    Документ2 страницы
    Série VA LP
    Norhen Hamdi
    Оценок пока нет
  • SPAD Decision
    SPAD Decision
    Документ210 страниц
    SPAD Decision
    Bled
    Оценок пока нет
  • Cours 2e Partie
    Cours 2e Partie
    Документ57 страниц
    Cours 2e Partie
    beebac2009
    Оценок пока нет
  • Statistique Descriptive
    Statistique Descriptive
    Документ190 страниц
    Statistique Descriptive
    Faculté De Médecine Béchar
    67% (3)
  • TD Prob - Stat Gc1 Gtr1
    TD Prob - Stat Gc1 Gtr1
    Документ4 страницы
    TD Prob - Stat Gc1 Gtr1
    romain fokam
    Оценок пока нет
  • Influence Des Boissons Sucrées Sur Les Capacités Cognitives
    Influence Des Boissons Sucrées Sur Les Capacités Cognitives
    Документ46 страниц
    Influence Des Boissons Sucrées Sur Les Capacités Cognitives
    Thibault Corneloup
    Оценок пока нет
  • Rapport Act 18
    Rapport Act 18
    Документ6 страниц
    Rapport Act 18
    Leslie
    Оценок пока нет