ASR server 直接 500 拒绝大文件 (15MB / ~15min 4.7s 即返回 500),不是 处理超时。改成:sidecar 装 ffmpeg → /transcribe endpoint 把音频切 60s 段 → 串行调外部 ASR → 拼接 transcript。notes 主容器 call_asr 改成 POST 到 sidecar /transcribe(timeout 1h 给长录音留余地)。 - feishu sidecar Dockerfile + ffmpeg + requests - server.py 加 TranscribeReq;fallback -c copy 失败时 re-encode AAC - main.rs 删除 asr_url/asr_token 字段(now sidecar concern) - k8s manifest: ASR_URL/ASR_TOKEN 从主容器移到 feishu sidecar env
This commit is contained in:
@@ -72,8 +72,6 @@ spec:
|
||||
value: /data/app.db
|
||||
- name: BLOBS_DIR
|
||||
value: /data/blobs
|
||||
- name: ASR_URL
|
||||
value: http://18.159.112.195:8848/v1/audio/transcriptions
|
||||
- name: LLM_GATEWAY
|
||||
value: http://3.135.65.204:8848/v1
|
||||
- name: LLM_MODEL
|
||||
@@ -83,11 +81,6 @@ spec:
|
||||
secretKeyRef:
|
||||
name: notes-creds
|
||||
key: passphrase
|
||||
- name: ASR_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: notes-creds
|
||||
key: asr_token
|
||||
- name: LLM_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
@@ -115,6 +108,14 @@ spec:
|
||||
ports:
|
||||
- containerPort: 8002
|
||||
name: feishu
|
||||
env:
|
||||
- name: ASR_URL
|
||||
value: http://18.159.112.195:8848/v1/audio/transcriptions
|
||||
- name: ASR_TOKEN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: notes-creds
|
||||
key: asr_token
|
||||
readinessProbe:
|
||||
httpGet: { path: /healthz, port: feishu }
|
||||
initialDelaySeconds: 3
|
||||
|
||||
Reference in New Issue
Block a user