将目录和章节添加到音频文件中
项目描述
此工具解析目录文件
可选地,在您的浏览器中显示HTML并在控制台打印,以便复制粘贴或重定向以完成您的展示笔记。
待办事项: 可选地,将生成的HTML添加到音频文件中。
可选地,将TOC文件中的时间戳(章节)添加到音频文件中。
可选地,将所有时间戳(在HTML和章节中)的时偏量添加,以补偿初始展示或预告片、音频中的广告等。
如果音频文件已经具有章节/目录元数据,我们将根据要求替换它。原始文件中呈现的其他元数据将被保留。
安装
$ python3 -m pip install toc2audio
命令行
$ toc2audio --version
0.5.0
$ toc2audio -h
usage: toc2audio.py [-h] [--version] [--offset OFFSET] [--show]
[--toc] [--chapters]
[TOC] [AUDIO ...]
Add Table of Contents and chapters to audio files
positional arguments:
TOC Table of Contents file
AUDIO Audio file
optional arguments:
-h, --help show this help message and exit
--version Show version info
--offset OFFSET Seconds or [HH:]MM:SS to add to ALL timestamps
--show Show the generated HTML in your browser
--toc Store Table of Contents in the audio file
--chapters Store chapters details in the audio file
目录格式
目录必须使用Markdown编写。
toc2audio将解析任何Markdown文件,并可选地将生成的HTML和章节元数据插入到您的音频文件中。如果您想使用时间戳(章节),您必须使用以下格式的行
[HH:MM:SS] 章节标题
HH:MM:SS是小时:分钟:秒。小时字段是可选的。您可以指定一位或两位数字的字段。
例如:
This audio was recorded blah blah...
* [00:50] Presentation
Here I describe the topics we will talk about.
* [02:11] Topic 1
Blah blah blah blah...
* [17:29] Topic 2
Blah blah blah blah...
时间偏移
您可以使用--offset
命令行参数为TOC markdown文档中的所有时间戳应用全局时间偏移。
支持的音频容器
支持的音频容器有:
项目详情
下载文件
下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。
源代码分发
toc2audio-1.1.1.tar.gz (47.6 kB 查看散列)
构建版本
toc2audio-1.1.1-py3-none-any.whl (20.3 kB 查看哈希值)
关闭
toc2audio-1.1.1.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 64d7ee2fad26c0722167cd2f96225c8991525a4bb94e304c21b912ace1f15bc6 |
|
MD5 | df744c9fe843e3f5fdaa100f7ed65e7c |
|
BLAKE2b-256 | 584e95a65efce686813631495dc9e9e086f767242e2cefdc72cb3b9a55d2fef2 |
关闭
toc2audio-1.1.1-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 49bc6ca72abda21122d4aed012008b5b374a594ebc8d06d6f445a32d3aff3000 |
|
MD5 | 99097e7a4af303c9d6ed5a2c624f12a0 |
|
BLAKE2b-256 | e2f45522836fe81c18dbf37d8a522b27ca10d5ffbbf87d7387324e780f9708c0 |