Added voice control
Former-commit-id: 6f69079bf44f0d8f9ae40de6b0f1638d103464c2
This commit is contained in:
parent
35c92407a3
commit
53da641909
863 changed files with 192681 additions and 0 deletions
40
lib/sphinx4-5prealpha-src/tests/trainer/build.xml
Normal file
40
lib/sphinx4-5prealpha-src/tests/trainer/build.xml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project basedir="." default="none" name="Runs the trainer tests.">
|
||||
|
||||
<description>
|
||||
This file is used to run the trainer tests.
|
||||
|
||||
NOTE: Before running the tests, you must have already built
|
||||
the sphinx-4 sources by typing "ant" in the top level
|
||||
sphinx4 directory.
|
||||
|
||||
</description>
|
||||
|
||||
<property name="top_dir" value="../.."/>
|
||||
<property name="build_dir" value="${top_dir}/bld"/>
|
||||
<property name="classes_dir" value="${build_dir}"/>
|
||||
|
||||
<property name="initial_heap_size" value="256m"/>
|
||||
<property name="maximum_heap_size" value="1g"/>
|
||||
|
||||
<property name="trainer_class"
|
||||
value="edu.cmu.sphinx.trainer.Trainer"/>
|
||||
|
||||
<target name="none">
|
||||
<echo>Type 'ant -p' for possible targets.</echo>
|
||||
</target>
|
||||
|
||||
<target name="compile" />
|
||||
|
||||
<target name="trainer"
|
||||
description="Runs the Trainer test.">
|
||||
<java classname="${trainer_class}"
|
||||
classpath="${classes_dir}"
|
||||
fork="true">
|
||||
<jvmarg value="-ms${initial_heap_size}"/>
|
||||
<jvmarg value="-mx${maximum_heap_size}"/>
|
||||
<arg value="trainer.xml"/>
|
||||
</java>
|
||||
</target>
|
||||
</project>
|
||||
38
lib/sphinx4-5prealpha-src/tests/trainer/phonelist
Normal file
38
lib/sphinx4-5prealpha-src/tests/trainer/phonelist
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
version 0.1
|
||||
same_sized_models yes
|
||||
n_state 3
|
||||
tmat_skip no
|
||||
AA
|
||||
AE
|
||||
AH
|
||||
AO
|
||||
AW
|
||||
AY
|
||||
B
|
||||
CH
|
||||
D
|
||||
EH
|
||||
ER
|
||||
EY
|
||||
F
|
||||
G
|
||||
HH
|
||||
IH
|
||||
IY
|
||||
JH
|
||||
K
|
||||
L
|
||||
M
|
||||
N
|
||||
OW
|
||||
P
|
||||
R
|
||||
S
|
||||
SIL
|
||||
T
|
||||
TH
|
||||
UW
|
||||
V
|
||||
W
|
||||
Y
|
||||
Z
|
||||
62
lib/sphinx4-5prealpha-src/tests/trainer/trainer.xml
Normal file
62
lib/sphinx4-5prealpha-src/tests/trainer/trainer.xml
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
<?xml version="1.0"?>
|
||||
<config>
|
||||
<property name="logLevel" value="INFO"/>
|
||||
<component name="trainer" type="edu.cmu.sphinx.trainer.Trainer">
|
||||
<property name="trainManager" value="trainManager"/>
|
||||
</component>
|
||||
<component name="trainManager" type="edu.cmu.sphinx.trainer.SimpleTrainManager">
|
||||
<propertylist name="models">
|
||||
<item>model </item>
|
||||
</propertylist>
|
||||
<property name="initLearner" value="initLearner"/>
|
||||
<property name="learner" value="learner"/>
|
||||
<property name="control" value="control"/>
|
||||
<property name="unitManager" value="unitManager"/>
|
||||
</component>
|
||||
<component name="control" type="edu.cmu.sphinx.trainer.SimpleControlFile">
|
||||
<property name="dictionary" value="dictionary"/>
|
||||
</component>
|
||||
<component name="dictionary" type="edu.cmu.sphinx.trainer.TrainerDictionary">
|
||||
<property name="dictionaryPath" value="../../models/acoustic/wsj/dict/cmudict.0.6d"/>
|
||||
<property name="fillerPath" value="../../models/acoustic/wsj/noisedict"/>
|
||||
<property name="unitManager" value="unitManager"/>
|
||||
</component>
|
||||
<component name="initLearner" type="edu.cmu.sphinx.trainer.FlatInitializerLearner">
|
||||
<property name="frontend" value="frontend"/>
|
||||
<property name="source" value="streamCepstrumSource"/>
|
||||
<property name="logMath" value="logMath"/>
|
||||
</component>
|
||||
<component name="learner" type="edu.cmu.sphinx.trainer.BaumWelchLearner">
|
||||
<property name="frontend" value="frontend"/>
|
||||
<property name="source" value="streamCepstrumSource"/>
|
||||
<property name="logMath" value="logMath"/>
|
||||
</component>
|
||||
<component name="frontend" type="edu.cmu.sphinx.frontend.FrontEnd">
|
||||
<propertylist name="pipeline">
|
||||
<item>streamCepstrumSource </item>
|
||||
<item>liveCMN </item>
|
||||
<item>featureExtraction </item>
|
||||
</propertylist>
|
||||
</component>
|
||||
<component name="streamCepstrumSource" type="edu.cmu.sphinx.frontend.util.StreamCepstrumSource"/>
|
||||
<component name="liveCMN" type="edu.cmu.sphinx.frontend.feature.LiveCMN"/>
|
||||
<component name="featureExtraction" type="edu.cmu.sphinx.frontend.feature.DeltasFeatureExtractor"/>
|
||||
<component name="logMath" type="edu.cmu.sphinx.util.LogMath"/>
|
||||
<component name="model" type="edu.cmu.sphinx.linguist.acoustic.tiedstate.trainer.TrainerAcousticModel">
|
||||
<property name="loader" value="loader"/>
|
||||
<property name="saver" value="saver"/>
|
||||
<property name="unitManager" value="unitManager"/>
|
||||
</component>
|
||||
<component name="loader" type="edu.cmu.sphinx.linguist.acoustic.tiedstate.trainer.ModelInitializerLoader">
|
||||
<property name="logMath" value="logMath"/>
|
||||
<property name="unitManager" value="unitManager"/>
|
||||
<property name="phonelist" value="phonelist"/>
|
||||
</component>
|
||||
<component name="saver" type="edu.cmu.sphinx.linguist.acoustic.tiedstate.trainer.Sphinx3Saver">
|
||||
<property name="loader" value="loader"/>
|
||||
<property name="logMath" value="logMath"/>
|
||||
<property name="unitManager" value="unitManager"/>
|
||||
<property name="saveLocation" value="output"/>
|
||||
</component>
|
||||
<component name="unitManager" type="edu.cmu.sphinx.linguist.acoustic.UnitManager"/>
|
||||
</config>
|
||||
Loading…
Add table
Add a link
Reference in a new issue