資源簡介
基于Alize的GMM-UBM算法,《聲紋識別之Alize入門教程(二):GMM-UBM》對應資源。https://blog.csdn.net/u012594175/article/details/88698118

代碼片段和文件信息
#!/usr/bin/python
#?-*-?coding:?UTF-8?-*-
#
#?Author:?xulg.ai@qq.com
#?2019/3/21
import?time
import?os
import?utils
#產生UBM.lst文件
utils.gen_ubm_lst(‘./data/ubm‘?‘./lst/UBM.lst‘)
print(‘*************./bin/sfbecp?start***************‘)
time.sleep(5)
file?=?open(“./lst/UBM.lst“)
for?line?in?file:
line=line.strip().strip(‘\r\n‘).strip()??
#print?line
COMMAND_LINE?=?‘%s%s%s%s%s‘%(‘bin\\sfbcep.exe?-m?-k?0.97?-p19?-n?24?-r?22?-e?-D?-A?-F?wave?./data/ubm/‘line‘.wav?./data/prm/‘line‘.tmp.prm‘)
rc?=?os.system(COMMAND_LINE)
print(COMMAND_LINE)
file.close()
print(‘*************./bin/sfbecp?end***************‘)
time.sleep(5)
print(‘*************Normalise?energy?start***************‘)
time.sleep(5)
CMD_NORM_E=“bin\\NormFeat.exe?--config?cfg/NormFeat_energy_SPro.cfg?--inputFeatureFilename??./lst/UBM.lst?--featureFilesPath??data/prm/“
print(CMD_NORM_E)
rc?=?os.system(CMD_NORM_E)
print(‘*************Normalise?energy?end***************‘)
time.sleep(5)
print(‘*************Energy?Detector?start***************‘)
time.sleep(5)
CMD_ENERGY=“bin\\EnergyDetector.exe??--config?cfg/EnergyDetector_SPro.cfg?--inputFeatureFilename?./lst/UBM.lst?--featureFilesPath??data/prm/??--labelFilesPath??data/lbl/“
print?(CMD_ENERGY)
rc?=?os.system(CMD_ENERGY)
print(‘*************Energy?Detector?end***************‘)
time.sleep(5)
print(‘*************Normalise?Features?start***************‘)
time.sleep(5)
CMD_NORM=“bin\\NormFeat.exe?--config?cfg/NormFeat_SPro.cfg?--inputFeatureFilename??./lst/UBM.lst?--featureFilesPath?data/prm/???--labelFilesPath??data/lbl/“
print?(CMD_NORM)
rc?=?os.system(CMD_NORM)
print(‘*************Normalise?Features?end***************‘)
time.sleep(5)
print(‘*************Train?UBM?start***************‘)
time.sleep(5)
rc?=?os.system(‘bin\\TrainWorld.exe?--config?cfg/TrainWorld.cfg‘)
print(‘*************Train?UBM?end***************‘)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1900??2019-03-21?20:21??01_GMM_UBM\01_ubm.py
?????文件???????2333??2019-03-21?20:38??01_GMM_UBM\02_model.py
?????文件???????2854??2019-03-21?20:43??01_GMM_UBM\03_test.py
?????文件???????2595??2019-03-21?21:07??01_GMM_UBM\04_imp.py
?????文件????????886??2019-03-21?21:07??01_GMM_UBM\05_norm.py
?????文件????1296896??2019-03-19?20:09??01_GMM_UBM\bin\ALIZE_Win32_Debug.dll
?????文件?????589302??2017-11-08?15:17??01_GMM_UBM\bin\ComputeNorm
?????文件?????164864??2019-03-19?20:51??01_GMM_UBM\bin\ComputeNorm.exe
?????文件????1178368??2017-11-08?15:17??01_GMM_UBM\bin\ComputeTest
?????文件?????219136??2019-03-19?20:51??01_GMM_UBM\bin\ComputeTest.exe
?????文件?????893396??2017-11-08?15:17??01_GMM_UBM\bin\EnergyDetector
?????文件??????96768??2019-03-19?20:51??01_GMM_UBM\bin\EnergyDetector.exe
?????文件????2006528??2019-03-19?20:46??01_GMM_UBM\bin\liatools_Win32_Debug.dll
?????文件????1135789??2017-11-08?15:17??01_GMM_UBM\bin\NormFeat
?????文件?????190464??2019-03-19?20:53??01_GMM_UBM\bin\NormFeat.exe
?????文件?????236640??2013-08-18?10:43??01_GMM_UBM\bin\sfbcep
?????文件?????138752??2018-10-28?14:54??01_GMM_UBM\bin\sfbcep.exe
?????文件????1133585??2017-11-08?15:18??01_GMM_UBM\bin\TrainTarget
?????文件?????166400??2019-03-19?20:53??01_GMM_UBM\bin\TrainTarget.exe
?????文件?????893259??2017-11-08?15:18??01_GMM_UBM\bin\TrainWorld
?????文件?????101888??2019-03-19?20:54??01_GMM_UBM\bin\TrainWorld.exe
?????文件????????240??2017-11-13?15:35??01_GMM_UBM\cfg\ComputeNorm_tnorm.cfg
?????文件????????248??2017-11-13?16:36??01_GMM_UBM\cfg\ComputeNorm_znorm.cfg
?????文件????????324??2017-11-13?15:35??01_GMM_UBM\cfg\ComputeNorm_ztnorm.cfg
?????文件???????1977??2017-11-13?17:22??01_GMM_UBM\cfg\ComputeTestTNorm.cfg
?????文件???????1987??2017-11-13?17:22??01_GMM_UBM\cfg\ComputeTestZNorm.cfg
?????文件???????2327??2017-11-13?17:21??01_GMM_UBM\cfg\ComputeTestZTnorm.cfg
?????文件???????1986??2017-11-14?14:47??01_GMM_UBM\cfg\ComputeTest_GMM.cfg
?????文件????????665??2017-11-14?14:44??01_GMM_UBM\cfg\EnergyDetector_SPro.cfg
?????文件????????523??2017-11-14?14:49??01_GMM_UBM\cfg\NormFeat_energy_SPro.cfg
............此處省略138個文件信息
評論
共有 條評論