voicekit
把一个人的文风变成能数出来的判据,然后拿这些判据去体检稿子、按他的腔起稿。
不是"AI 替你写"。是起稿机 + 挑刺器:先给你一个像他的草稿,再逐条告诉你哪里不像。 放不放行永远是作者签字,不是分数。
装
pip install writer-voice # 发行名是 writer-voice,装完命令叫 voicekit
装用 PyPI 包名 writer-voice;模块名和命令名都是 voicekit。以后选名字时这点说清楚省得找错。
本地开发:
py -3.10 -m pip install -e .
只依赖标准库 + PyYAML。lint / report 不花钱(不调模型)。build 只在 style_distill 环节要模型;
draft 要模型。
三条命令
# 1. 体检一篇稿子(0 元)
voicekit lint 我的稿子.md --pack voices/panchen-voice
# 2. 一页 HTML 报告:结论 3 行 + 先改这三条 + 全部 42 条(0 元)
voicekit report 我的稿子.md --pack voices/panchen-voice
# 3. 从一个语料目录提炼作者 profile(一篇一个 .md)
voicekit build --corpus 语料/ --out voices/某人-voice --slug 某人 --author 某人
# 4. 按作者的腔起稿(要 key)
set DEEPSEEK_API_KEY=... # PowerShell: $env:DEEPSEEK_API_KEY="..."
voicekit draft --material 材料.md --dry-run # 先看提示词,0 元
voicekit draft --material 材料.md --out 初稿.md
lint 退出码:0 全过,1 有不过的条目,2 读不了/太短(<200 汉字不给稳定分数)。
作者包长什么样
一个目录,一个作者:
voices/panchen-voice/
pack.json # schema / slug / author / 语料与 profile 的相对路径
profile.json # build 算出来的 42 条基线
corpus/*.md # 语料,一篇一个文件
judge_baseline.json # 可选:判官基线
exemplar_baseline.json # 可选:样例基线
查找顺序:--pack → 环境变量 VOICEKIT_PACK → ./voices/*/pack.json。
它诚实的地方
- 42 条属性都从语料里数出来,不是拍脑袋定的。但也只覆盖"可数的"那一层。
- 分数不是及格线。作者签过字的老稿也常掉分;论文、说理、公号这些语料里没有的体裁,低分是预期的,不是稿子差。
- 不许拿分数当放行标准。判据只作诊断,签字由人。
- 生成这一层我们试过微调 3B 模型、各种配方:10 篇里 0 篇过关。它现在的定位不是替身。
judge.py的"同人判定"是 LLM 判官,比人不可靠(同一条判定重复跑四次,21/21 和 19/21 各两次)。 证据层级:作者亲手判 > 可量数字 > LLM 判官。
换模型
默认 deepseek。也可以 openai、moonshot,或用环境变量接任何 OpenAI 兼容接口:
set VOICEKIT_BASE_URL=https://my-endpoint/v1
set VOICEKIT_API_KEY=...
set VOICEKIT_MODEL=my-model
开发
py -3.10 -m pytest tests -q
set VOICEKIT_TEST_PACK=voices/panchen-voice # 让真包集成测试也跑
协议
MIT,见 LICENSE。
Metadata
Release files for writer-voice 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| writer_voice-0.1.0.tar.gz | 302.5 kB | Without provenance | Details for writer_voice-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| writer_voice-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for writer_voice-0.1.0-py3-none-any.whl |
Total release size: 663.1 kB
Release files / writer_voice-0.1.0.tar.gz
| Download URL | writer_voice-0.1.0.tar.gz |
|---|---|
| Size | 302.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a22e3b355183eeee01314c3574d98288396564677de775e6295a8c9eab47f2ab
|
|
BLAKE2b-256 checksum How to use checksums |
ea632be2401bb7fd7dfd9d1b20733ee826b41c2240f7e1166ed1dc9d5223e807
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|
Release files / writer_voice-0.1.0-py3-none-any.whl
| Download URL | writer_voice-0.1.0-py3-none-any.whl |
|---|---|
| Size | 360.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bce134807ee384dfb6e7d38d7f1ca5fdfee09f7f8d413ccb2ae4b164a12c1bb
|
|
BLAKE2b-256 checksum How to use checksums |
938d068080835e6a00466a60d4d6f7cf37b9650d0eda940f888a281b363d47f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|
Security for writer-voice 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.