【发布时间】: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