voice_automatic_fill_sys:基于 FastAPI 与 Vue 3 的建筑施工质量检查语音自动填报系统

基于语音自动录入填报系统

Branch1Tags0
FilesLast commitLast update
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago

建筑施工现场质量检查语音自动填报系统

基于语音识别 + 大模型修复 + 标准检查项匹配的建筑领域施工质量检查系统。

技术栈

  • 后端: FastAPI (Python)
  • 前端: Vue 3 (CDN)
  • ASR: 火山引擎 豆包语音文件转文字 (volc.seedasr.auc)
  • LLM: DeepSeek API
  • 向量检索: ChromaDB + text2vec-base-chinese
  • 关键词: jieba 分词
  • 数据库: SQLite

快速开始

1. 安装依赖

pip install -r requirements.txt

2. 配置 API 密钥

cp config.yaml.example config.yaml

编辑 config.yaml,填入你的 API 密钥:

asr:
  api_key: "你的火山引擎APP Key"

llm:
  api_key: "你的DeepSeek API Key"

3. 启动服务

python -m app.main

4. 打开浏览器

访问 http://127.0.0.1:8000

使用流程

  1. 选择或创建项目
  2. 按"地点 → 问题项 → 问题表征"模板连续口述
  3. 点击停止,系统自动分析
  4. 查看识别结果,编辑修正
  5. 选择匹配的检查项,确认提交
  6. 系统自动从三版本文本中提取混淆对,持续优化

项目结构

voice_automatic_fill_sys/
├── app/
│   ├── main.py           # 应用入口
│   ├── config.py          # 配置管理
│   ├── api/               # API 路由
│   ├── services/          # 业务服务
│   ├── models/            # 数据模型
│   ├── data/              # 种子数据
│   └── templates/         # 前端页面
├── config.yaml            # 配置文件(不提交)
├── config.yaml.example    # 配置模板
└── requirements.txt

运行测试

python -m pytest tests/ -v

注意:test_embedding.py 和 test_retriever.py 需要下载 text2vec-base-chinese 模型(~400MB),首次运行可能较慢。

Introduction

基于语音自动录入填报系统

Customize your domain