【问题标题】:Sample configuration/properties xml file for SphinxTrain for Sphinx4SphinxTrain for Sphinx4 的示例配置/属性 xml 文件
【发布时间】:2015-08-13 03:54:10
【问题描述】:

我正在使用 Sphinx4。我正在尝试使用 SphinxTrain 训练声学模型。我有音频样本和转录文件。

由于 Trainer.java 需要配置文件(包含音频样本和脚本文件的文件路径。)我找到了此配置的示例 trainer.properties 文件。但是我有 SphinxTrain 项目和 Sphinx4,它需要 trainer.xml 文件。我需要样本格式。

下面是我需要的 xml 格式的示例 trainer.properties 文件。

############################################################
#
# Trainer properties
#
############################################################

# File containing list of audio files
edu.cmu.sphinx.trainer.ControlFile.audioFile '' train.ctl

# File containing list of transcriptions, parallel to the audio file list
edu.cmu.sphinx.trainer.ControlFile.transcriptFile '' train.trans

# Initial stage to be done, defaults to _00_INITIALIZATION
edu.cmu.sphinx.trainer.Trainer.initialStage '' _00_INITIALIZATION

# Final stage to be done, defaults to _40_TIED_CD_TRAIN
edu.cmu.sphinx.trainer.Trainer.finalStage '' _10_CI_TRAIN

# Controls the maximum number of BW iterations
edu.cmu.sphinx.trainer.Trainer.maximumIteration '' 10

# Controls the minimum relative change in log likelihood to be considered as "stable"
edu.cmu.sphinx.trainer.Trainer.minimumImprovement '' 0.2

############################################################
#
# Acoustic model properties
#
############################################################

# These are the same as the decoder

edu.cmu.sphinx.knowledge.acoustic.location file:////data/model

# But these are pertinent only to the trainer. They refer to where the models will be saved

############################################################
# 
# FrontEnd properties, same as in the decoder
#
############################################################

############################################################
# 
# Dictionary properties, same as in the decoder
#
############################################################

如果有人能提供 SphinxTrain for Sphinx4 的示例 configuration.xml,我将不胜感激。

【问题讨论】:

    标签: java speech-recognition speech-to-text cmusphinx sphinx4


    【解决方案1】:

    Sphinx4 在这里无关紧要。

    Sphinxtrain 文档可在网站上找到

    http://cmusphinx.sourceforge.net/wiki/tutorialam

    你只需要跟随它。

    【讨论】:

    • 感谢您的回答,但您能否解释一下您的说法“Sphinx4 在这里无关紧要”。 ?如果您会看到 sphinx4 的代码,那么您会发现名为“Trainer”的包,并且有一个名为 Trainer 的调用可以完成所有工作。如果我错了,如果你能纠正我,我将不胜感激。
    • 此代码是实验性的,不起作用。如果你想训练模型,你需要使用文档中描述的过程。
    猜你喜欢
    • 2017-05-27
    • 2021-05-21
    • 2017-02-15
    • 2020-03-05
    • 1970-01-01
    • 2020-07-20
    • 1970-01-01
    • 2013-07-02
    • 1970-01-01
    相关资源
    最近更新 更多