decktalk 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- decktalk-0.1.0/LICENSE +202 -0
- decktalk-0.1.0/NOTICE +4 -0
- decktalk-0.1.0/PKG-INFO +137 -0
- decktalk-0.1.0/README.md +104 -0
- decktalk-0.1.0/THIRD_PARTY_NOTICES.md +14 -0
- decktalk-0.1.0/pyproject.toml +91 -0
- decktalk-0.1.0/pyproject.toml.orig +64 -0
- decktalk-0.1.0/src/decktalk/__init__.py +59 -0
- decktalk-0.1.0/src/decktalk/__main__.py +5 -0
- decktalk-0.1.0/src/decktalk/_env.py +70 -0
- decktalk-0.1.0/src/decktalk/_report.py +120 -0
- decktalk-0.1.0/src/decktalk/artifacts.py +232 -0
- decktalk-0.1.0/src/decktalk/cli.py +375 -0
- decktalk-0.1.0/src/decktalk/config.py +164 -0
- decktalk-0.1.0/src/decktalk/errors.py +23 -0
- decktalk-0.1.0/src/decktalk/media/__init__.py +1 -0
- decktalk-0.1.0/src/decktalk/media/browser.py +161 -0
- decktalk-0.1.0/src/decktalk/media/ffmpeg.py +273 -0
- decktalk-0.1.0/src/decktalk/project.py +568 -0
- decktalk-0.1.0/src/decktalk/providers/__init__.py +1 -0
- decktalk-0.1.0/src/decktalk/providers/_http.py +50 -0
- decktalk-0.1.0/src/decktalk/providers/elevenlabs.py +136 -0
- decktalk-0.1.0/src/decktalk/providers/speech.py +60 -0
- decktalk-0.1.0/src/decktalk/py.typed +0 -0
- decktalk-0.1.0/src/decktalk/runtime/decktalk-runtime.js +381 -0
- decktalk-0.1.0/src/decktalk/scaffold.py +107 -0
- decktalk-0.1.0/src/decktalk/stages/__init__.py +34 -0
- decktalk-0.1.0/src/decktalk/stages/assemble.py +538 -0
- decktalk-0.1.0/src/decktalk/stages/beats.py +196 -0
- decktalk-0.1.0/src/decktalk/stages/build.py +85 -0
- decktalk-0.1.0/src/decktalk/stages/measure.py +135 -0
- decktalk-0.1.0/src/decktalk/stages/narrate.py +410 -0
- decktalk-0.1.0/src/decktalk/stages/record.py +93 -0
- decktalk-0.1.0/src/decktalk/stages/shots.py +94 -0
- decktalk-0.1.0/src/decktalk/stages/soundscape.py +183 -0
- decktalk-0.1.0/src/decktalk/stages/verify.py +135 -0
- decktalk-0.1.0/src/decktalk/template/cues.json +33 -0
- decktalk-0.1.0/src/decktalk/template/deck/index.html +79 -0
- decktalk-0.1.0/src/decktalk/template/decktalk.toml +92 -0
- decktalk-0.1.0/src/decktalk/template/env.example +4 -0
- decktalk-0.1.0/src/decktalk/template/gitignore +8 -0
- decktalk-0.1.0/src/decktalk/template/media/markers.json +8 -0
- decktalk-0.1.0/src/decktalk/template/script.md +38 -0
decktalk-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
decktalk-0.1.0/NOTICE
ADDED
decktalk-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: decktalk
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Narrated presentations, cut to the word: a markdown script, an ElevenLabs voice and HTML slides in; one mp4 out.
|
|
5
|
+
Keywords: presentation,narration,elevenlabs,video,slides,text-to-speech
|
|
6
|
+
Author: Jacob Beaudin
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
License-File: NOTICE
|
|
10
|
+
License-File: THIRD_PARTY_NOTICES.md
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Education
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Operating System :: OS Independent
|
|
21
|
+
Classifier: Typing :: Typed
|
|
22
|
+
Classifier: Topic :: Multimedia :: Video
|
|
23
|
+
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
|
|
24
|
+
Requires-Dist: playwright>=1.50
|
|
25
|
+
Requires-Dist: static-ffmpeg>=2.7
|
|
26
|
+
Requires-Python: >=3.12
|
|
27
|
+
Project-URL: Homepage, https://decktalk.app
|
|
28
|
+
Project-URL: Repository, https://github.com/jacobcbeaudin/decktalk
|
|
29
|
+
Project-URL: Documentation, https://docs.decktalk.app
|
|
30
|
+
Project-URL: Issues, https://github.com/jacobcbeaudin/decktalk/issues
|
|
31
|
+
Project-URL: Changelog, https://github.com/jacobcbeaudin/decktalk/blob/main/CHANGELOG.md
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
|
|
34
|
+
<picture>
|
|
35
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/jacobcbeaudin/decktalk/main/assets/hero-dark.svg">
|
|
36
|
+
<img alt="A playhead moves along a spoken sentence, one tick per word. The slide reacts on exactly the right words." src="https://raw.githubusercontent.com/jacobcbeaudin/decktalk/main/assets/hero-light.svg" width="100%">
|
|
37
|
+
</picture>
|
|
38
|
+
|
|
39
|
+
<h1 align="center">DeckTalk</h1>
|
|
40
|
+
|
|
41
|
+
<p align="center"><b>Narrated presentations, cut to the word.</b><br>
|
|
42
|
+
You write a markdown script and plain HTML slides. An ElevenLabs voice reads the script. DeckTalk produces one mp4 in which every reveal lands on the word that introduces it.</p>
|
|
43
|
+
|
|
44
|
+
<p align="center">
|
|
45
|
+
<a href="https://pypi.org/project/decktalk/"><img src="https://img.shields.io/pypi/v/decktalk?color=2c1fea&label=pypi" alt="PyPI"></a>
|
|
46
|
+
<a href="https://github.com/jacobcbeaudin/decktalk/actions/workflows/ci.yml"><img src="https://github.com/jacobcbeaudin/decktalk/actions/workflows/ci.yml/badge.svg" alt="ci"></a>
|
|
47
|
+
<a href="https://docs.decktalk.app"><img src="https://img.shields.io/badge/docs-docs.decktalk.app-2c1fea" alt="docs"></a>
|
|
48
|
+
<a href="https://github.com/jacobcbeaudin/decktalk/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-black" alt="Apache-2.0"></a>
|
|
49
|
+
</p>
|
|
50
|
+
|
|
51
|
+
<p align="center">It is built for lesson videos, product walkthroughs, and recorded talks. It suits anything you would otherwise re-record every time the script changes.</p>
|
|
52
|
+
|
|
53
|
+
<br>
|
|
54
|
+
|
|
55
|
+
```console
|
|
56
|
+
$ uv tool install decktalk && decktalk setup
|
|
57
|
+
$ decktalk init my-lesson && cd my-lesson
|
|
58
|
+
$ decktalk build --silent # placeholder narration, no key needed
|
|
59
|
+
$ cp .env.example .env && decktalk build # your ElevenLabs voice
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
The last command writes a finished video to `build/out/my-lesson.mp4`. The scaffold is a
|
|
63
|
+
working deck with three HTML scenes and one slot for a clip of your own. Real narration
|
|
64
|
+
needs an ElevenLabs key and a voice id in `.env`. Any voice works. A clone of your own
|
|
65
|
+
voice is the point.
|
|
66
|
+
|
|
67
|
+
DeckTalk needs Python 3.12 or later. I develop it on macOS, and the test suite runs on
|
|
68
|
+
Linux, macOS, and Windows in CI. The `setup` command downloads headless Chromium and ffmpeg
|
|
69
|
+
once per machine.
|
|
70
|
+
|
|
71
|
+
## Why
|
|
72
|
+
|
|
73
|
+
A narrated deck is three things that drift apart: what you say, what is on screen, and
|
|
74
|
+
when each thing appears. Recording tools pin the timing to a timeline, so every edit to
|
|
75
|
+
the script means re-recording or re-scrubbing.
|
|
76
|
+
|
|
77
|
+
DeckTalk has no timeline. The narration comes back with a timestamp for every word, so a
|
|
78
|
+
reveal follows a phrase rather than a second. When you change a sentence, only that
|
|
79
|
+
section renders again. The script is the edit.
|
|
80
|
+
|
|
81
|
+
The pipeline began as the machinery behind a hackathon film whose script kept changing
|
|
82
|
+
until the deadline. This is that machinery, made general.
|
|
83
|
+
|
|
84
|
+
The nearest tools solve a different problem. Remotion and Motion Canvas time visuals by
|
|
85
|
+
frame, in code. DeckTalk times them by spoken word, in prose. Descript edits a recording,
|
|
86
|
+
and DeckTalk never makes one. Synthesia and HeyGen render an avatar, and DeckTalk renders
|
|
87
|
+
your slides.
|
|
88
|
+
|
|
89
|
+
## How it works
|
|
90
|
+
|
|
91
|
+
<picture>
|
|
92
|
+
<source media="(prefers-color-scheme: dark) and (max-width: 640px)" srcset="https://raw.githubusercontent.com/jacobcbeaudin/decktalk/main/assets/how-it-works-dark-stacked.svg">
|
|
93
|
+
<source media="(max-width: 640px)" srcset="https://raw.githubusercontent.com/jacobcbeaudin/decktalk/main/assets/how-it-works-light-stacked.svg">
|
|
94
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/jacobcbeaudin/decktalk/main/assets/how-it-works-dark.svg">
|
|
95
|
+
<img alt="Write a script; your voice reads it with a time for every word; slides reveal on the words in Chromium; ffmpeg cuts one mp4." src="https://raw.githubusercontent.com/jacobcbeaudin/decktalk/main/assets/how-it-works-light.svg" width="100%">
|
|
96
|
+
</picture>
|
|
97
|
+
|
|
98
|
+
A cue names a phrase in the script:
|
|
99
|
+
|
|
100
|
+
```json
|
|
101
|
+
{ "step": "3.1eq", "on": "equation", "offset": 0.2 }
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
A slide names the cue it waits for:
|
|
105
|
+
|
|
106
|
+
```html
|
|
107
|
+
<div data-cue="3.1eq" data-tex="\frac{d}{dx}\,x^2 = 2x">d/dx x² = 2x</div>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
Slides are plain HTML pages that you style yourself. A single file, `decktalk-runtime.js`,
|
|
111
|
+
tells a page which step to show and when. You can open a page in a browser to review it,
|
|
112
|
+
freeze any step, or take a screenshot of every step.
|
|
113
|
+
|
|
114
|
+
## What you get
|
|
115
|
+
|
|
116
|
+
- **Frame-exact cuts.** Each recording carries a visible mark at the moment the narration starts. DeckTalk measures the cut from the frames rather than from a timer.
|
|
117
|
+
- **Cached narration.** DeckTalk hashes each section by its text and re-synthesizes only the sections that changed.
|
|
118
|
+
- **A soundscape.** You can add an underscore that ducks under speech, ambience beds, sound effects on cues, and broadcast loudness. Every part of it is optional.
|
|
119
|
+
- **Offline drafts.** The `--silent` flag renders the whole film with placeholder narration and estimated word times.
|
|
120
|
+
- **Verified output.** DeckTalk catches a black or truncated recording before assembly. It stops the build when it cannot find a cue phrase. The `verify` command proves that each cue changed the picture.
|
|
121
|
+
- **Nothing to install by hand.** Chromium and ffmpeg arrive through Python packages, and `decktalk setup` fetches both.
|
|
122
|
+
|
|
123
|
+
## Straight answers
|
|
124
|
+
|
|
125
|
+
- **What does it cost?** A ten-minute narration is roughly 9,000 characters, which fits inside the smallest paid ElevenLabs tier. Because DeckTalk caches sections by text, you pay for the sentences you change rather than for every build.
|
|
126
|
+
- **Am I locked into ElevenLabs?** It is the only provider today because it returns word timestamps. The provider lives in one file, and anything that returns word times can take its place. The `--silent` flag needs no provider at all.
|
|
127
|
+
- **Why not record the screen?** You would record it again after every edit. Here, an edit rebuilds one section in the time it takes to synthesize one sentence.
|
|
128
|
+
- **How does the voice sound?** It sounds like you, because it is your voice, cloned. Stability, similarity, and speed are settings in `decktalk.toml`.
|
|
129
|
+
- **Do I have to use generated music?** No. The soundscape stays off until you configure it, and you can bring your own files.
|
|
130
|
+
|
|
131
|
+
## Docs
|
|
132
|
+
|
|
133
|
+
The rest lives at **[docs.decktalk.app](https://docs.decktalk.app)**: the project file, the
|
|
134
|
+
page contract, the CLI, configuration, and the Python API. If you want to work on DeckTalk
|
|
135
|
+
itself, start with [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
136
|
+
|
|
137
|
+
<p align="center">Apache-2.0. Made by <a href="https://github.com/jacobcbeaudin">Jacob Beaudin</a>.</p>
|
decktalk-0.1.0/README.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<picture>
|
|
2
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/jacobcbeaudin/decktalk/main/assets/hero-dark.svg">
|
|
3
|
+
<img alt="A playhead moves along a spoken sentence, one tick per word. The slide reacts on exactly the right words." src="https://raw.githubusercontent.com/jacobcbeaudin/decktalk/main/assets/hero-light.svg" width="100%">
|
|
4
|
+
</picture>
|
|
5
|
+
|
|
6
|
+
<h1 align="center">DeckTalk</h1>
|
|
7
|
+
|
|
8
|
+
<p align="center"><b>Narrated presentations, cut to the word.</b><br>
|
|
9
|
+
You write a markdown script and plain HTML slides. An ElevenLabs voice reads the script. DeckTalk produces one mp4 in which every reveal lands on the word that introduces it.</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://pypi.org/project/decktalk/"><img src="https://img.shields.io/pypi/v/decktalk?color=2c1fea&label=pypi" alt="PyPI"></a>
|
|
13
|
+
<a href="https://github.com/jacobcbeaudin/decktalk/actions/workflows/ci.yml"><img src="https://github.com/jacobcbeaudin/decktalk/actions/workflows/ci.yml/badge.svg" alt="ci"></a>
|
|
14
|
+
<a href="https://docs.decktalk.app"><img src="https://img.shields.io/badge/docs-docs.decktalk.app-2c1fea" alt="docs"></a>
|
|
15
|
+
<a href="https://github.com/jacobcbeaudin/decktalk/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-black" alt="Apache-2.0"></a>
|
|
16
|
+
</p>
|
|
17
|
+
|
|
18
|
+
<p align="center">It is built for lesson videos, product walkthroughs, and recorded talks. It suits anything you would otherwise re-record every time the script changes.</p>
|
|
19
|
+
|
|
20
|
+
<br>
|
|
21
|
+
|
|
22
|
+
```console
|
|
23
|
+
$ uv tool install decktalk && decktalk setup
|
|
24
|
+
$ decktalk init my-lesson && cd my-lesson
|
|
25
|
+
$ decktalk build --silent # placeholder narration, no key needed
|
|
26
|
+
$ cp .env.example .env && decktalk build # your ElevenLabs voice
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The last command writes a finished video to `build/out/my-lesson.mp4`. The scaffold is a
|
|
30
|
+
working deck with three HTML scenes and one slot for a clip of your own. Real narration
|
|
31
|
+
needs an ElevenLabs key and a voice id in `.env`. Any voice works. A clone of your own
|
|
32
|
+
voice is the point.
|
|
33
|
+
|
|
34
|
+
DeckTalk needs Python 3.12 or later. I develop it on macOS, and the test suite runs on
|
|
35
|
+
Linux, macOS, and Windows in CI. The `setup` command downloads headless Chromium and ffmpeg
|
|
36
|
+
once per machine.
|
|
37
|
+
|
|
38
|
+
## Why
|
|
39
|
+
|
|
40
|
+
A narrated deck is three things that drift apart: what you say, what is on screen, and
|
|
41
|
+
when each thing appears. Recording tools pin the timing to a timeline, so every edit to
|
|
42
|
+
the script means re-recording or re-scrubbing.
|
|
43
|
+
|
|
44
|
+
DeckTalk has no timeline. The narration comes back with a timestamp for every word, so a
|
|
45
|
+
reveal follows a phrase rather than a second. When you change a sentence, only that
|
|
46
|
+
section renders again. The script is the edit.
|
|
47
|
+
|
|
48
|
+
The pipeline began as the machinery behind a hackathon film whose script kept changing
|
|
49
|
+
until the deadline. This is that machinery, made general.
|
|
50
|
+
|
|
51
|
+
The nearest tools solve a different problem. Remotion and Motion Canvas time visuals by
|
|
52
|
+
frame, in code. DeckTalk times them by spoken word, in prose. Descript edits a recording,
|
|
53
|
+
and DeckTalk never makes one. Synthesia and HeyGen render an avatar, and DeckTalk renders
|
|
54
|
+
your slides.
|
|
55
|
+
|
|
56
|
+
## How it works
|
|
57
|
+
|
|
58
|
+
<picture>
|
|
59
|
+
<source media="(prefers-color-scheme: dark) and (max-width: 640px)" srcset="https://raw.githubusercontent.com/jacobcbeaudin/decktalk/main/assets/how-it-works-dark-stacked.svg">
|
|
60
|
+
<source media="(max-width: 640px)" srcset="https://raw.githubusercontent.com/jacobcbeaudin/decktalk/main/assets/how-it-works-light-stacked.svg">
|
|
61
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/jacobcbeaudin/decktalk/main/assets/how-it-works-dark.svg">
|
|
62
|
+
<img alt="Write a script; your voice reads it with a time for every word; slides reveal on the words in Chromium; ffmpeg cuts one mp4." src="https://raw.githubusercontent.com/jacobcbeaudin/decktalk/main/assets/how-it-works-light.svg" width="100%">
|
|
63
|
+
</picture>
|
|
64
|
+
|
|
65
|
+
A cue names a phrase in the script:
|
|
66
|
+
|
|
67
|
+
```json
|
|
68
|
+
{ "step": "3.1eq", "on": "equation", "offset": 0.2 }
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
A slide names the cue it waits for:
|
|
72
|
+
|
|
73
|
+
```html
|
|
74
|
+
<div data-cue="3.1eq" data-tex="\frac{d}{dx}\,x^2 = 2x">d/dx x² = 2x</div>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Slides are plain HTML pages that you style yourself. A single file, `decktalk-runtime.js`,
|
|
78
|
+
tells a page which step to show and when. You can open a page in a browser to review it,
|
|
79
|
+
freeze any step, or take a screenshot of every step.
|
|
80
|
+
|
|
81
|
+
## What you get
|
|
82
|
+
|
|
83
|
+
- **Frame-exact cuts.** Each recording carries a visible mark at the moment the narration starts. DeckTalk measures the cut from the frames rather than from a timer.
|
|
84
|
+
- **Cached narration.** DeckTalk hashes each section by its text and re-synthesizes only the sections that changed.
|
|
85
|
+
- **A soundscape.** You can add an underscore that ducks under speech, ambience beds, sound effects on cues, and broadcast loudness. Every part of it is optional.
|
|
86
|
+
- **Offline drafts.** The `--silent` flag renders the whole film with placeholder narration and estimated word times.
|
|
87
|
+
- **Verified output.** DeckTalk catches a black or truncated recording before assembly. It stops the build when it cannot find a cue phrase. The `verify` command proves that each cue changed the picture.
|
|
88
|
+
- **Nothing to install by hand.** Chromium and ffmpeg arrive through Python packages, and `decktalk setup` fetches both.
|
|
89
|
+
|
|
90
|
+
## Straight answers
|
|
91
|
+
|
|
92
|
+
- **What does it cost?** A ten-minute narration is roughly 9,000 characters, which fits inside the smallest paid ElevenLabs tier. Because DeckTalk caches sections by text, you pay for the sentences you change rather than for every build.
|
|
93
|
+
- **Am I locked into ElevenLabs?** It is the only provider today because it returns word timestamps. The provider lives in one file, and anything that returns word times can take its place. The `--silent` flag needs no provider at all.
|
|
94
|
+
- **Why not record the screen?** You would record it again after every edit. Here, an edit rebuilds one section in the time it takes to synthesize one sentence.
|
|
95
|
+
- **How does the voice sound?** It sounds like you, because it is your voice, cloned. Stability, similarity, and speed are settings in `decktalk.toml`.
|
|
96
|
+
- **Do I have to use generated music?** No. The soundscape stays off until you configure it, and you can bring your own files.
|
|
97
|
+
|
|
98
|
+
## Docs
|
|
99
|
+
|
|
100
|
+
The rest lives at **[docs.decktalk.app](https://docs.decktalk.app)**: the project file, the
|
|
101
|
+
page contract, the CLI, configuration, and the Python API. If you want to work on DeckTalk
|
|
102
|
+
itself, start with [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
103
|
+
|
|
104
|
+
<p align="center">Apache-2.0. Made by <a href="https://github.com/jacobcbeaudin">Jacob Beaudin</a>.</p>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
DeckTalk is licensed under Apache-2.0 (see LICENSE). It depends on, downloads, or embeds
|
|
4
|
+
the following third-party software, each under its own license.
|
|
5
|
+
|
|
6
|
+
| Component | How DeckTalk uses it | License |
|
|
7
|
+
|---|---|---|
|
|
8
|
+
| [Playwright](https://playwright.dev/python/) | A Python dependency. It drives headless Chromium to record pages and take screenshots. | Apache-2.0 |
|
|
9
|
+
| Chromium (headless shell) | Downloaded by `decktalk setup` through Playwright. | BSD-3-Clause and the licenses of its components |
|
|
10
|
+
| [static-ffmpeg](https://github.com/zackees/static_ffmpeg) | A Python dependency. It fetches ffmpeg and ffprobe binaries on first use when none are on PATH. | BSD-3-Clause |
|
|
11
|
+
| [ffmpeg](https://ffmpeg.org/) | Run as a separate process to cut, mix, and analyze audio and video. The builds that static-ffmpeg fetches include libx264 and are therefore GPL builds. DeckTalk does not link against them. | GPL-2.0-or-later (those builds); LGPL-2.1-or-later (ffmpeg itself) |
|
|
12
|
+
| [Inter Tight](https://rsms.me/inter/) | A subset of the variable font is embedded in the README graphics under `assets/`. | SIL Open Font License 1.1 |
|
|
13
|
+
| [KaTeX](https://katex.org/) | The scaffold deck loads it from a CDN to typeset equations. It is not bundled. | MIT |
|
|
14
|
+
| [ElevenLabs](https://elevenlabs.io/) | A web API for speech, sound effects, and music, called with your own key under your own account terms. | ElevenLabs terms of service |
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "decktalk"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Narrated presentations, cut to the word: a markdown script, an ElevenLabs voice and HTML slides in; one mp4 out."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.12"
|
|
7
|
+
license = "Apache-2.0"
|
|
8
|
+
license-files = [
|
|
9
|
+
"LICENSE",
|
|
10
|
+
"NOTICE",
|
|
11
|
+
"THIRD_PARTY_NOTICES.md",
|
|
12
|
+
]
|
|
13
|
+
keywords = [
|
|
14
|
+
"presentation",
|
|
15
|
+
"narration",
|
|
16
|
+
"elevenlabs",
|
|
17
|
+
"video",
|
|
18
|
+
"slides",
|
|
19
|
+
"text-to-speech",
|
|
20
|
+
]
|
|
21
|
+
classifiers = [
|
|
22
|
+
"Development Status :: 3 - Alpha",
|
|
23
|
+
"Environment :: Console",
|
|
24
|
+
"Intended Audience :: Developers",
|
|
25
|
+
"Intended Audience :: Education",
|
|
26
|
+
"Programming Language :: Python :: 3",
|
|
27
|
+
"Programming Language :: Python :: 3.12",
|
|
28
|
+
"Programming Language :: Python :: 3.13",
|
|
29
|
+
"Programming Language :: Python :: 3.14",
|
|
30
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
31
|
+
"Operating System :: OS Independent",
|
|
32
|
+
"Typing :: Typed",
|
|
33
|
+
"Topic :: Multimedia :: Video",
|
|
34
|
+
"Topic :: Multimedia :: Sound/Audio :: Speech",
|
|
35
|
+
]
|
|
36
|
+
dependencies = [
|
|
37
|
+
"playwright>=1.50",
|
|
38
|
+
"static-ffmpeg>=2.7",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[[project.authors]]
|
|
42
|
+
name = "Jacob Beaudin"
|
|
43
|
+
|
|
44
|
+
[project.urls]
|
|
45
|
+
Homepage = "https://decktalk.app"
|
|
46
|
+
Repository = "https://github.com/jacobcbeaudin/decktalk"
|
|
47
|
+
Documentation = "https://docs.decktalk.app"
|
|
48
|
+
Issues = "https://github.com/jacobcbeaudin/decktalk/issues"
|
|
49
|
+
Changelog = "https://github.com/jacobcbeaudin/decktalk/blob/main/CHANGELOG.md"
|
|
50
|
+
|
|
51
|
+
[project.scripts]
|
|
52
|
+
decktalk = "decktalk.cli:main"
|
|
53
|
+
|
|
54
|
+
[build-system]
|
|
55
|
+
requires = ["uv_build>=0.8.0,<0.12.0"]
|
|
56
|
+
build-backend = "uv_build"
|
|
57
|
+
|
|
58
|
+
[dependency-groups]
|
|
59
|
+
dev = [
|
|
60
|
+
"pytest>=8",
|
|
61
|
+
"ruff>=0.11",
|
|
62
|
+
"ty>=0.0.1",
|
|
63
|
+
]
|
|
64
|
+
|
|
65
|
+
[tool.ruff]
|
|
66
|
+
line-length = 120
|
|
67
|
+
target-version = "py312"
|
|
68
|
+
|
|
69
|
+
[tool.ruff.lint]
|
|
70
|
+
select = [
|
|
71
|
+
"E",
|
|
72
|
+
"F",
|
|
73
|
+
"W",
|
|
74
|
+
"I",
|
|
75
|
+
"B",
|
|
76
|
+
"UP",
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
[tool.ruff.lint.per-file-ignores]
|
|
80
|
+
"scripts/*" = ["E501"]
|
|
81
|
+
|
|
82
|
+
[tool.ruff.format]
|
|
83
|
+
quote-style = "double"
|
|
84
|
+
|
|
85
|
+
[tool.ty.environment]
|
|
86
|
+
python-version = "3.12"
|
|
87
|
+
|
|
88
|
+
[tool.pytest.ini_options]
|
|
89
|
+
testpaths = ["tests"]
|
|
90
|
+
markers = ["browser: needs headless Chromium (run `decktalk setup` first)"]
|
|
91
|
+
addopts = "-m 'not browser'"
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "decktalk"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Narrated presentations, cut to the word: a markdown script, an ElevenLabs voice and HTML slides in; one mp4 out."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.12"
|
|
7
|
+
license = "Apache-2.0"
|
|
8
|
+
license-files = ["LICENSE", "NOTICE", "THIRD_PARTY_NOTICES.md"]
|
|
9
|
+
authors = [{ name = "Jacob Beaudin" }]
|
|
10
|
+
keywords = ["presentation", "narration", "elevenlabs", "video", "slides", "text-to-speech"]
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 3 - Alpha",
|
|
13
|
+
"Environment :: Console",
|
|
14
|
+
"Intended Audience :: Developers",
|
|
15
|
+
"Intended Audience :: Education",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3.12",
|
|
18
|
+
"Programming Language :: Python :: 3.13",
|
|
19
|
+
"Programming Language :: Python :: 3.14",
|
|
20
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
21
|
+
"Operating System :: OS Independent",
|
|
22
|
+
"Typing :: Typed",
|
|
23
|
+
"Topic :: Multimedia :: Video",
|
|
24
|
+
"Topic :: Multimedia :: Sound/Audio :: Speech",
|
|
25
|
+
]
|
|
26
|
+
dependencies = ["playwright>=1.50", "static-ffmpeg>=2.7"]
|
|
27
|
+
|
|
28
|
+
[project.urls]
|
|
29
|
+
Homepage = "https://decktalk.app"
|
|
30
|
+
Repository = "https://github.com/jacobcbeaudin/decktalk"
|
|
31
|
+
Documentation = "https://docs.decktalk.app"
|
|
32
|
+
Issues = "https://github.com/jacobcbeaudin/decktalk/issues"
|
|
33
|
+
Changelog = "https://github.com/jacobcbeaudin/decktalk/blob/main/CHANGELOG.md"
|
|
34
|
+
|
|
35
|
+
[project.scripts]
|
|
36
|
+
decktalk = "decktalk.cli:main"
|
|
37
|
+
|
|
38
|
+
[build-system]
|
|
39
|
+
requires = ["uv_build>=0.8.0,<0.12.0"]
|
|
40
|
+
build-backend = "uv_build"
|
|
41
|
+
|
|
42
|
+
[dependency-groups]
|
|
43
|
+
dev = ["pytest>=8", "ruff>=0.11", "ty>=0.0.1"]
|
|
44
|
+
|
|
45
|
+
[tool.ruff]
|
|
46
|
+
line-length = 120
|
|
47
|
+
target-version = "py312"
|
|
48
|
+
|
|
49
|
+
[tool.ruff.lint]
|
|
50
|
+
select = ["E", "F", "W", "I", "B", "UP"]
|
|
51
|
+
|
|
52
|
+
[tool.ruff.lint.per-file-ignores]
|
|
53
|
+
"scripts/*" = ["E501"] # generated CSS and SVG strings
|
|
54
|
+
|
|
55
|
+
[tool.ruff.format]
|
|
56
|
+
quote-style = "double"
|
|
57
|
+
|
|
58
|
+
[tool.ty.environment]
|
|
59
|
+
python-version = "3.12"
|
|
60
|
+
|
|
61
|
+
[tool.pytest.ini_options]
|
|
62
|
+
testpaths = ["tests"]
|
|
63
|
+
markers = ["browser: needs headless Chromium (run `decktalk setup` first)"]
|
|
64
|
+
addopts = "-m 'not browser'"
|