transcript
本地 whisper.cpp(pywhispercpp)转写:CLI + 薄 HTTP。
PyPI 发行名 memshare-transcript;导入仍是 import transcript。
pip install memshare-transcript
transcript-serve # 默认端口 51025
依赖
- Python
>= 3.12 - uv
- 系统
ffmpeg/ffprobe(真实转写需要)
uv sync
CLI
uv run transcript samples/ja_test.mp3 --model tiny --language ja
HTTP(端口写死 51025)
# 联调默认 mock,不下载 ggml
TRANSCRIPT_MOCK=1 uv run transcript-serve
| 端点 | 说明 |
|---|---|
GET /health |
{ status, mock } |
POST /transcribe |
multipart file + form language / model / chunk_sec |
POST /detect-language |
multipart file;mock 固定返回 ja |
真实模式默认模型(与原 caption 一致):
$HOME/.cache/whisper-cpp/models/ggml-large-v3-turbo.bin
TRANSCRIPT_MOCK=0 uv run transcript-serve
PM2(从 memshare 仓)
cd ../memshare
pm2 start ecosystem.config.cjs --only memshare-transcript
pm2 logs memshare-transcript
健康检查:curl -s http://127.0.0.1:51025/health
Docker
docker build -t memshare-transcript .
docker run --rm -p 51025:51025 -e TRANSCRIPT_MOCK=1 memshare-transcript
Metadata
Release files for memshare-transcript 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 |
|---|---|---|---|---|
| memshare_transcript-0.1.0.tar.gz | 6.0 kB | With provenance | Details for memshare_transcript-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| memshare_transcript-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for memshare_transcript-0.1.0-py3-none-any.whl |
Total release size: 13.2 kB
Security for memshare-transcript 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.
Full provenance
Both files in this release have been 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.