-
大小: 10KB文件类型: .zip金币: 2下载: 1 次发布日期: 2021-06-17
- 语言: Python
- 标签:
资源简介
autosub-为任意视频自动生成字幕文件的命令行工具
代码片段和文件信息
#!/usr/bin/env python
from __future__ import unicode_literals
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
long_description = (
‘Autosub is a utility for automatic speech recognition and subtitle generation. ‘
‘It takes a video or an audio file as input performs voice activity detection ‘
‘to find speech regions makes parallel requests to Google Web Speech API to ‘
‘generate transcriptions for those regions (optionally) translates them to a ‘
‘different language and finally saves the resulting subtitles to disk. ‘
‘It supports a variety of input and output languages (to see which run the ‘
‘utility with --list-src-languages and --list-dst-languages as arguments ‘
‘respectively) and can currently produce subtitles in either the SRT format or ‘
‘simple JSON.‘
)
setup(
name=‘autosub‘
version=‘0.4.0‘
description=‘Auto-generates subtitles for any video or audio file‘
long_description=long_description
author=‘Anastasis Germanidis‘
author_email=‘agermanidis@gmail.com‘
url=‘https://github.com/agermanidis/autosub‘
packages=[‘autosub‘]
entry_points={
‘console_scripts‘: [
‘autosub = autosub:main‘
]
}
install_requires=[
‘google-api-python-client>=1.4.2‘
‘requests>=2.3.0‘
‘pysrt>=1.0.1‘
‘progressbar2>=3.34.3‘
‘six>=1.11.0‘
]
license=open(“LICENSE“).read()
)
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-02-11 18:31 autosub-master\
文件 65 2019-02-11 18:31 autosub-master\.gitignore
文件 112 2019-02-11 18:31 autosub-master\.travis.yml
文件 1088 2019-02-11 18:31 autosub-master\LICENSE
文件 33 2019-02-11 18:31 autosub-master\MANIFEST.in
文件 2243 2019-02-11 18:31 autosub-master\README.md
目录 0 2019-02-11 18:31 autosub-master\autosub\
文件 14262 2019-02-11 18:31 autosub-master\autosub\__init__.py
文件 2274 2019-02-11 18:31 autosub-master\autosub\constants.py
文件 1660 2019-02-11 18:31 autosub-master\autosub\formatters.py
文件 1496 2019-02-11 18:31 autosub-master\setup.py
评论
共有 条评论