资源简介
Python实现的GMM用于语音识别,里面有数据和相关的PDF论文。
代码片段和文件信息
#!python
“““Bootstrap distribute installation
If you want to use setuptools in your package‘s setup.py just include this
file in the same directory with it and add this to the top of your setup.py::
from distribute_setup import use_setuptools
use_setuptools()
If you want to require a specific version of setuptools set a download
mirror or use an alternate download directory you can do so by supplying
the appropriate options to ‘‘use_setuptools()‘‘.
This file can also be run as a script to install or upgrade setuptools.
“““
import os
import sys
import time
import fnmatch
import tempfile
import tarfile
from distutils import log
try:
from site import USER_SITE
except ImportError:
USER_SITE = None
try:
import subprocess
def _python_cmd(*args):
args = (sys.executable) + args
return subprocess.call(args) == 0
except ImportError:
# will be used for python 2.3
def _python_cmd(*args):
args = (sys.executable) + args
# quoting arguments if windows
if sys.platform == ‘win32‘:
def quote(arg):
if ‘ ‘ in arg:
return ‘“%s“‘ % arg
return arg
args = [quote(arg) for arg in args]
return os.spawnl(os.P_WAIT sys.executable *args) == 0
DEFAULT_VERSION = “0.6.16“
DEFAULT_URL = “http://pypi.python.org/packages/source/d/distribute/“
SETUPTOOLS_FAKED_VERSION = “0.6c11“
SETUPTOOLS_PKG_INFO = “““\
metadata-Version: 1.0
Name: setuptools
Version: %s
Summary: xxxx
Home-page: xxx
Author: xxx
Author-email: xxx
License: xxx
Description: xxx
“““ % SETUPTOOLS_FAKED_VERSION
def _install(tarball):
# extracting the tarball
tmpdir = tempfile.mkdtemp()
log.warn(‘Extracting in %s‘ tmpdir)
old_wd = os.getcwd()
try:
os.chdir(tmpdir)
tar = tarfile.open(tarball)
_extractall(tar)
tar.close()
# going in the directory
subdir = os.path.join(tmpdir os.listdir(tmpdir)[0])
os.chdir(subdir)
log.warn(‘Now working in %s‘ subdir)
# installing
log.warn(‘Installing Distribute‘)
if not _python_cmd(‘setup.py‘ ‘install‘):
log.warn(‘Something went wrong during the installation.‘)
log.warn(‘See the error message above.‘)
finally:
os.chdir(old_wd)
def _build_egg(egg tarball to_dir):
# extracting the tarball
tmpdir = tempfile.mkdtemp()
log.warn(‘Extracting in %s‘ tmpdir)
old_wd = os.getcwd()
try:
os.chdir(tmpdir)
tar = tarfile.open(tarball)
_extractall(tar)
tar.close()
# going in the directory
subdir = os.path.join(tmpdir os.listdir(tmpdir)[0])
os.chdir(subdir)
log.warn(‘Now working in %s‘ subdir)
# building an egg
log.warn(‘Building a Distribute egg in %s‘ to_dir)
_python_cmd(‘setup.py‘ ‘-q‘ ‘bdist_egg‘ ‘--dist-dir‘ to_dir)
finally:
os.chdir(old_wd)
# re
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-05-09 16:06 gmm-master\
文件 76 2012-05-22 02:21 gmm-master\asp_config.yml
文件 335877 2015-05-09 16:06 gmm-master\CUDA-level Performance with Python-level Productivity for Gaussian Mixture Model Applications.pdf
文件 15757 2012-05-22 02:21 gmm-master\distribute_setup.py
目录 0 2012-05-22 02:21 gmm-master\examples\
文件 19411 2012-05-22 02:21 gmm-master\examples\cluster.py
文件 417 2012-05-22 02:21 gmm-master\examples\diarizer.cfg
文件 2679 2012-05-22 02:21 gmm-master\examples\plotting.py
文件 9762 2012-05-22 02:21 gmm-master\examples\song_recommendation.py
文件 307095 2015-05-09 16:03 gmm-master\Fast speaker diarization using a high-level sc
目录 0 2012-05-22 02:21 gmm-master\gmm_specializer\
文件 40115 2012-05-22 02:21 gmm-master\gmm_specializer\gmm.py
文件 266 2012-05-22 02:21 gmm-master\gmm_specializer\__init__.py
文件 1556 2012-05-22 02:21 gmm-master\LICENSE
文件 164 2012-05-22 02:21 gmm-master\MANIFEST.in
文件 304 2012-05-22 02:21 gmm-master\README
文件 252 2012-05-22 02:21 gmm-master\run_tests.sh
文件 1434 2012-05-22 02:21 gmm-master\setup.py
目录 0 2012-05-22 02:21 gmm-master\templates\
文件 27472 2012-05-22 02:21 gmm-master\templates\em_ba
文件 577 2012-05-22 02:21 gmm-master\templates\em_cilk_eval.mako
文件 7877 2012-05-22 02:21 gmm-master\templates\em_cilk_helper_funcs.mako
文件 11635 2012-05-22 02:21 gmm-master\templates\em_cilk_kernels.mako
文件 1644 2012-05-22 02:21 gmm-master\templates\em_cilk_kernel_decl.mako
文件 339 2012-05-22 02:21 gmm-master\templates\em_cilk_seed_components.mako
文件 2862 2012-05-22 02:21 gmm-master\templates\em_cilk_train.mako
文件 4310 2012-05-22 02:21 gmm-master\templates\em_cuda_device_helper_funcs.mako
文件 827 2012-05-22 02:21 gmm-master\templates\em_cuda_eval.mako
文件 12368 2012-05-22 02:21 gmm-master\templates\em_cuda_host_helper_funcs.mako
文件 54036 2012-05-22 02:21 gmm-master\templates\em_cuda_kernels.mako
文件 2635 2012-05-22 02:21 gmm-master\templates\em_cuda_launch_decl.mako
............此处省略12个文件信息
相关资源
- python实现TTS离线语音合成
- Python深度学习实战 基于tensorflow和k
- poketsphinx的普通话识别模块-cmusphinx-
- Python-VoiceactivitydetectionVAD语音端点检测
-
pyQt5_wavepla
yer python计算声音分贝 语 - 百度语音api实现语音识别小程序,通
- 用Python实现语音的传输功能
- Python-通过百度语音API实现文本转语音
- 声学语音处理 python 源码
- Python3—EM&GMM;
- python代码实现录音
- 语音读邮件的小程序python实现
- Python-Keras实现的DeepSpeech端到端语音识
- DCASE2016基线,GMM做SED
- python聊天机器人(语音识别、语义处
- 利用百度语音接口合成多人对话
- python3.6文字转语音
- 高斯混合模型的Python实现和可视化
- 百度api语音识别代码
- 用python写的百度语音api实现语音识别
评论
共有 条评论