Storyteller's Shane Friedman 解释了沉浸式阅读背后的 CTC aligner

Storyteller 将用户拥有的电子书和有声书对齐,然后将时序写入 EPUB 3 Media Overlays。

By · Published

Primary source: smoores.dev

为何重要

Audible 和 Spotify 提供的功能,可以在其服务内将阅读与有声书播放连接起来。Storyteller 则将同步数据写入开放的 EPUB 文件,读者可以保留、复制并在兼容的软件中使用这些文件。

An intricate vintage engraving showing a sound wave graphic aligning precisely with text on the open pages of a digital book.

Shane Friedman 详细介绍了 Storyteller 背后基于 CTC 的强制对齐系统,Storyteller 是他用于同步用户提供的电子书和有声书的自托管阅读平台。

Friedman 在一篇 8 月 30 日的技术文章 中发布了该说明。Storyteller is testing v3 releases,而对齐算法仍然是该项目的技术核心。

这项工作源自 Friedman 作为读者时遇到的一个问题。他希望在通勤时听书,之后再阅读同一本书,并在不同格式之间保持进度。他的解决方案最初是一个 Python 脚本,接受一本有声书和一本电子书,然后生成一个包含同步音频元数据的 EPUB。Friedman 写道,他在不自知的情况下进入了强制对齐领域,当时手里只有他现在描述为“笨拙的嵌套 while 循环”的代码。…

When you purchase through links in our articles, we may earn a small commission. This doesn’t affect our editorial independence.

Reader comments

Conversation for this story loads after sign-in.