Files
mediaplayer/sentence_api/.env.example
2026-10-25 11:31:32 +08:00

38 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
ORAL_TRAINER_DATA_DIR=/app/sentence_api/data
# API 监听地址:默认 127.0.0.1(仅本机/nginx 回源)。需要内网直连 8000 端口时改为 0.0.0.0。
# ORAL_TRAINER_BIND_HOST=0.0.0.0
PUBLIC_BASE_URL=https://videoservice.d1kt.cn
ADMIN_API_KEY=replace-with-a-long-random-secret
CLIENT_API_KEY=replace-with-a-separate-client-secret
MAX_VIDEO_UPLOAD_BYTES=12884901888
MAX_ATTEMPT_UPLOAD_BYTES=52428800
KEEP_ATTEMPT_AUDIO=false
ASSESSMENT_PASS_SCORE=70
LOG_LEVEL=INFO
MOSS_TRANSCRIBE_URL=http://127.0.0.1:8001/v1/audio/transcriptions
MOSS_MODEL=OpenMOSS-Team/MOSS-Transcribe-Diarize
MOSS_TIMEOUT_SECONDS=1800
MOSS_MAX_NEW_TOKENS=65536
# 每句结束时间向后顺延的毫秒数,避免句子末尾发音被切掉;按需在 200-500 之间调整
MOSS_END_PADDING_MS=300
# AI sentence explanation (OpenAI-compatible chat endpoint). A base URL ending
# in /v1 is also accepted and will automatically use /v1/chat/completions.
# The URL and key stay on the server; mobile clients only send the sentence text.
AI_API_URL=https://api.example.com/v1/chat/completions
AI_API_KEY=replace-with-your-ai-api-key
AI_MODEL=gpt-4o-mini
AI_TIMEOUT_SECONDS=45
# 火山引擎对象存储(TOS / 火山 OSS)。桶请设置为公共读,或把下方地址配置为可公开访问的 CDN 域名。
VOLCANO_OSS_ACCESS_KEY=replace-with-volcano-access-key
VOLCANO_OSS_SECRET_KEY=replace-with-volcano-secret-key
VOLCANO_OSS_BUCKET=your-course-videos
VOLCANO_OSS_ENDPOINT=tos-cn-beijing.volces.com
VOLCANO_OSS_REGION=cn-beijing
VOLCANO_OSS_KEY_PREFIX=videos/
# 可选:绑定自定义域名或 CDN 后填写,例如 https://media.example.com
# VOLCANO_OSS_PUBLIC_BASE_URL=https://media.example.com