Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
serving-clients【部署与运维】Deploy and integrate ASRT HTTP/gRPC serving clients once trained weights are available.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the ASRT service boundary is the active problem: starting an already prepared HTTP/gRPC server, constructing request payloads, calling the service, interpreting responses, or debugging deployment and client integration failures.
GET /, POST /, POST /speech, POST /language, and POST /all.Speech, Language, All, and Stream using the AsrtGrpcService contract.206000 and final status 200000.scripts/make_http_payload.py builds JSON request bodies from a user-provided WAV file or pinyin sequence without importing ASRT.scripts/asrt_http_client.py calls the ASRT HTTP service with only Python standard-library networking and WAV handling.Safe help checks:
python scripts/make_http_payload.py --help
python scripts/asrt_http_client.py --help
Example payload/client flow:
python scripts/make_http_payload.py --endpoint /all --wav sample.wav --pretty > all-payload.json
python scripts/asrt_http_client.py all --wav sample.wav --base-url http://127.0.0.1:20001
python scripts/asrt_http_client.py language --sequence-pinyin ni3 hao3 ya5
SpeechModel251BN, load save_models/SpeechModel251bn.model.h5, and load model_language at module import time before serving requests.waitress.serve for HTTP; grpc.server(...).start() plus an infinite sleep loop for gRPC). This generated runtime therefore bundles only client and payload helpers, not server copies.samples with matching sample_rate, channels, and byte_width metadata.sequence_pinyin as a JSON list of pinyin syllable strings.WavData.samples; gRPC language requests send repeated pinyins in LanguageRequest.This sub-skill was revised from the serving evidence in asrserver_http.py, asrserver_grpc.py, client_http.py, client_grpc.py, assets/asrt.proto, Dockerfile, README.md, README_EN.md, and utils/ops.py.
save_models/SpeechModel251bn.model.h5 is a model-preparation problem; stop server/client debugging and route to acoustic-model work./language or gRPC Language responses belongs to language-model work.