Files
smartDriveEE/src/main/resources/application-audio.yml

170 lines
1.9 KiB
YAML
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.

# 音频文件上传配置
app:
audio:
# 音频文件上传路径
upload:
path: uploads/audio
# 文件上传保存路径(用于接收文件上传请求时)
yihangyi:
path: /usr/local/tomcat/webapps/yihangyi
# 外部 ASR 写入的转写文本目录(与 AudioStatisticsScheduler.syncYihangyiTranscriptTextFiles 一致)
txt-scan-dir: /home/lizh/java_env/AIDriverEEBackend/audio/yihangyi_txt
txt-finish-dir: /home/lizh/java_env/AIDriverEEBackend/audio/yihangyi_txt_finish
# 内置 Java 轮询 ASR对应 Python audio_toText_qwen3_asr_17b_vllm_interface.py默认关闭
asr:
enabled: false
watch-dir: /home/lizh/java_env/AIDriverEEBackend/audio/yihangyi
done-dir: /home/lizh/java_env/AIDriverEEBackend/audio/yihangyi_finish
txt-dir: /home/lizh/java_env/AIDriverEEBackend/audio/yihangyi_txt
base-url: http://101.35.52.237:17001/v1
api-key: ${OPENAI_API_KEY:EMPTY}
model: Qwen3-ASR-1.7B
poll-interval-ms: 5000
max-batch: 5
# SINGLE每批内单线程顺序POOL固定线程池并行处理本批
executor-mode: SINGLE
pool-size: 4
skip-on-windows: true
# 音频文件访问URL前缀
access:
url: /api/audio/
# 最大文件大小
max:
size: 100MB
# 支持的音频格式
supported-formats:
- mp3
- wav
- m4a
- aac
- ogg
- flac
- wma
# 文件上传配置
spring:
servlet:
multipart:
# 启用文件上传
enabled: true
# 最大文件大小
max-file-size: 100MB
# 最大请求大小
max-request-size: 100MB
# 文件写入磁盘的阈值
file-size-threshold: 2KB
# 文件写入磁盘的位置
location: ${java.io.tmpdir}