跳到内容
当前位置:首页>电子书资讯>把电子书变成有声书,一分钱不花

把电子书变成有声书,一分钱不花

  • 2026-11-04 11:37:29
把电子书变成有声书,一分钱不花

晚上十一点,眼睛已经不想睁了。

书还在手机里,是一本 epub。白天下的,想着晚上看两章,结果一整天盯着屏幕,再看字就发酸。

这时候要是有人念给我听就好了。

可想听的那本,喜马拉雅上没有。有的那几本,要会员。剩下那些冷门的、自己下的、朋友传的,平台根本不会给你念。

卡住的地方其实很具体:不是没人会念,是没有一个东西愿意免费、离线、把手上这本破 epub 从头念到尾。

直到有人把这几件事合到了一起。

它是什么

Audiblez。作者 Claudio Santini,MIT 协议开源,GitHub 上 8789 个 star。

一句话:epub 进去,m4b 出来。

m4b 是有声书的文件格式,iPhone 的 Books、安卓的 VLC 都能放,有章节、能断点续播,和正版有声书一样用。

全程跑在你自己的电脑上。不上传、不按字数收费,断网也照转。

截图来源:audiblez 官方仓库

它只吃 epub

这点得先说,免得白折腾。

pdf、mobi、azw3、txt,它都不收。手上要是这些格式,得先过一道 Calibre。

Calibre 是个免费的电子书管理器,出来十几年了,几乎什么格式都能打开,也能互相转。Windows、Mac、Linux 都有,官网 calibre-ebook.com。

装好以后,打开 Calibre,把书拖进窗口,点"转换书籍",输出格式选 EPUB,确定。转完的书在右边,右键就能看到文件在哪。

什么时候用它,什么时候别用

用得上的:囤了一堆 epub 一直没打开;想听的书平台上搜不到;晚上眼睛撑不住;给孩子做听力材料,它能调语速。

别指望的:播音腔、抑扬顿挫的表演。它念得清楚,但没有演员那口气。想要那个味道,还得真人来。

另外 M 系列的 Mac 现在只能跑 CPU。作者说 MLX 实现还没做,显卡用不上。

声音、速度,和先去听一耳朵

9 种语言,54 个音色。中文 8 个,4 女 4 男。规律好记:开头的 z 是中文,第二个字母 f 是女声、m 是男声。

作者的实测:16 万字,T4 显卡 5 分钟,M2 笔记本纯 CPU 1 小时。普通笔记本的 CPU 在中间。想省事就睡前挂着跑,早上起来收。

至于好不好听,我说了不算。点文末的"阅读原文",是作者的博客,上面有 13 段试听,美式英语、英式英语、西班牙语、法语、意大利语、日语,一段 20 秒。

中文的 8 个没放,想听中文,只能自己转一章试试,加个 -p,几分钟的事。

顺便说清它和豆包、微软那些云端 TTS 的差别。云端那几家成品度更高、声音更稳,但要联网、按字数计费、整本书得先传上去。Audiblez 反过来,离线、免费、音色少一些、没有播音腔。

哪个入耳,你自己判断。

怎么用

两条命令,都能直接复制。

安装:

brew install ffmpeg espeak-ng && pip3 install audiblez

Windows 用这条:

winget install ffmpeg ; pip install audiblez

转:

audiblez 我的书.epub -v zf_xiaoxiao

跑完,同一个文件夹里多出一个 我的书.m4b,还有一堆 chapter_1.wav,那是临时文件,可以删。

想先听一章再整本跑,加个 -p,它会列出章节让你勾:

audiblez 我的书.epub -p -v zf_xiaoxiao

三个坑,先说

Python 要在 3.9 到 3.12 之间。3.13 装不上,这是最常见的一种死法。

ffmpeg 没装好,最后只会得到一堆 wav,不会有 m4b。

中文音色必须 zf_ 或 zm_ 开头。拿英文音色念中文,念出来是怪声。

其他的报错,别硬扛。把屏幕上那段红字整段复制给 AI,说"我按这个步骤装 audiblez,卡在这里了",它带你走比我列清单快。

想要个窗口

不想碰命令行,还有界面版。先装两个包:

pip install pillow wxpython

再运行:

audiblez-ui

弹出一个窗口,左边勾章节,右边选音色,点按钮开始。Windows 上 wxpython 有时装不上,装不上就用命令行版,功能一模一样。

谢谢作者

这项目是 Claudio Santini 一个人写的,MIT 协议,代码全公开,现在还在更新。没团队、没融资,就是一个人把一件小事做完了。

用过觉得行,去点个 star,是最实在的谢谢。

GitHub:github.com/santinic/audiblez

作者博客:claudio.uk

总结

能干:把 epub 变成 m4b,本地跑,免费,离线。

不能干:吃别的格式,念出播音腔。

怎么用:装一条命令,转一条命令。

值不值:你要是囤着几本 epub 一直没看,值。

它解决的是个很小的需求:你想听的那本书,没人给你念。

现在,让你自己的电脑念。

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-11-08 04:51:46 HTTP/1.1 GET : http://g.15386.cn/a/476007.html
  2. 运行时间 : 0.048493s [ 吞吐率:20.62req/s ] 内存消耗:4,474.44kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=0703674508debb427384055bfc9fea17
  1. /www/wwwroot/g.15386.cn/public/index.php ( 0.79 KB )
  2. /www/wwwroot/g.15386.cn/vendor/autoload.php ( 0.17 KB )
  3. /www/wwwroot/g.15386.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /www/wwwroot/g.15386.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /www/wwwroot/g.15386.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /www/wwwroot/g.15386.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /www/wwwroot/g.15386.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /www/wwwroot/g.15386.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /www/wwwroot/g.15386.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /www/wwwroot/g.15386.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /www/wwwroot/g.15386.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /www/wwwroot/g.15386.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /www/wwwroot/g.15386.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /www/wwwroot/g.15386.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /www/wwwroot/g.15386.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /www/wwwroot/g.15386.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /www/wwwroot/g.15386.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /www/wwwroot/g.15386.cn/app/provider.php ( 0.19 KB )
  23. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /www/wwwroot/g.15386.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /www/wwwroot/g.15386.cn/app/common.php ( 0.03 KB )
  27. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /www/wwwroot/g.15386.cn/config/app.php ( 0.95 KB )
  30. /www/wwwroot/g.15386.cn/config/cache.php ( 0.78 KB )
  31. /www/wwwroot/g.15386.cn/config/console.php ( 0.23 KB )
  32. /www/wwwroot/g.15386.cn/config/cookie.php ( 0.56 KB )
  33. /www/wwwroot/g.15386.cn/config/database.php ( 2.48 KB )
  34. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /www/wwwroot/g.15386.cn/config/filesystem.php ( 0.61 KB )
  36. /www/wwwroot/g.15386.cn/config/lang.php ( 0.91 KB )
  37. /www/wwwroot/g.15386.cn/config/log.php ( 1.35 KB )
  38. /www/wwwroot/g.15386.cn/config/middleware.php ( 0.19 KB )
  39. /www/wwwroot/g.15386.cn/config/route.php ( 1.89 KB )
  40. /www/wwwroot/g.15386.cn/config/session.php ( 0.57 KB )
  41. /www/wwwroot/g.15386.cn/config/trace.php ( 0.34 KB )
  42. /www/wwwroot/g.15386.cn/config/view.php ( 0.82 KB )
  43. /www/wwwroot/g.15386.cn/app/event.php ( 0.25 KB )
  44. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /www/wwwroot/g.15386.cn/app/service.php ( 0.13 KB )
  46. /www/wwwroot/g.15386.cn/app/AppService.php ( 0.26 KB )
  47. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /www/wwwroot/g.15386.cn/vendor/services.php ( 0.14 KB )
  53. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /www/wwwroot/g.15386.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /www/wwwroot/g.15386.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /www/wwwroot/g.15386.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /www/wwwroot/g.15386.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /www/wwwroot/g.15386.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /www/wwwroot/g.15386.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /www/wwwroot/g.15386.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /www/wwwroot/g.15386.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /www/wwwroot/g.15386.cn/app/Request.php ( 0.09 KB )
  84. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /www/wwwroot/g.15386.cn/app/middleware.php ( 0.25 KB )
  86. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /www/wwwroot/g.15386.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /www/wwwroot/g.15386.cn/route/app.php ( 1.72 KB )
  100. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /www/wwwroot/g.15386.cn/app/controller/Index.php ( 4.81 KB )
  104. /www/wwwroot/g.15386.cn/app/BaseController.php ( 2.05 KB )
  105. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /www/wwwroot/g.15386.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /www/wwwroot/g.15386.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /www/wwwroot/g.15386.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /www/wwwroot/g.15386.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /www/wwwroot/g.15386.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /www/wwwroot/g.15386.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /www/wwwroot/g.15386.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /www/wwwroot/g.15386.cn/runtime/temp/fd050d5bc34eb608e84a078b5af10b7a.php ( 8.21 KB )
  140. /www/wwwroot/g.15386.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000567s ] mysql:host=172.18.0.4;port=3306;dbname=g_15386;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000886s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.000422s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000390s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000606s ]
  6. SELECT * FROM `set` [ RunTime:0.000304s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000597s ]
  8. SELECT * FROM `article` WHERE `id` = 476007 LIMIT 1 [ RunTime:0.000443s ]
  9. UPDATE `article` SET `lasttime` = 1794084706 WHERE `id` = 476007 [ RunTime:0.001665s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 66 LIMIT 1 [ RunTime:0.000324s ]
  11. SELECT * FROM `article` WHERE `id` < 476007 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000452s ]
  12. SELECT * FROM `article` WHERE `id` > 476007 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.000411s ]
  13. SELECT * FROM `article` WHERE `id` < 476007 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.000662s ]
  14. SELECT * FROM `article` WHERE `id` < 476007 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.000622s ]
  15. SELECT * FROM `article` WHERE `id` < 476007 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.000839s ]
0.049990s