The Floor 是一个无需付费 API 的 AI 辩论对手 MVP:选择类别、转动话题轮盘、表明立场,与 AI 并行调研 5 分钟后,通过语音和会说话的头像进行实时辩论。

Stars

6

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

暂无数据

最近更新

2026-07-30

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它用免费 Groq API key、无需 key 的 DuckDuckGo 搜索、浏览器自带语音能力和自绘 SVG 头像,搭建了完整的语音辩论体验,并包含 FastAPI 后端、无构建静态前端、预生成研究简报和评分卡,是低成本的 AI 语音交互 MVP 参考。

适合谁使用

  • 对 AI 语音或辩论原型感兴趣的开发者
  • 需要免费技术栈构建黑客松项目的开发者
  • 想练习辩论和论证表达的学习者
  • 评估 FastAPI、Groq 与浏览器语音 API 集成的技术负责人

典型使用场景

  • 与 AI 对手进行口语辩论练习
  • 快速搭建带并行研究简报和实时反驳的语音 AI 原型
  • 演示如何用免费或免 key 服务组合实现语音交互应用
  • 体验 FastAPI 后端与静态前端分离部署的流程

项目优势

  • 无需付费 API:只用免费 Groq key、DuckDuckGo 搜索和浏览器内置语音 API
  • 并行研究简报让 AI 在辩论中引用预生成的论点与反驳,而不是临时从零推理
  • 架构简单:FastAPI 后端 + 无构建步骤的纯 HTML/JS/CSS 前端
  • 内置评分卡能回顾完整对话、指出薄弱论点并给出改进建议

使用前须知

  • STT 为按住说话,非连续/流式,暂不支持打断和实时插话
  • 由于只有研究简报是预计算,延迟会比生产级版本更高
  • 会话存储在内存中,不适合多用户;头像口型是随机动画,不是真正的 viseme 口型同步

README 快速开始

The Floor — AI Debater (MVP)

https://ai-debater-seven.vercel.app/ check this out

A local, no-paid-API-required AI debate opponent: pick a category, spin for a topic, take a stance, research for 5 minutes while the AI researches in parallel, then debate live by voice with a talking avatar.

What it uses (all free)

  • LLM: Groq — free API key, generous free tier, very fast inference (needed for real-time debate to feel natural).
  • Web search: DuckDuckGo via duckduckgo-search — no key required.
  • Speech-to-text: your browser's built-in Web Speech API (Chrome/Edge). No key, no server round-trip.
  • Text-to-speech: your browser's built-in speechSynthesis. No key.
  • Avatar: a custom animated SVG face (no avatar API), mouth-synced to when the AI is speaking.

1. Get a free Groq API key

  1. Go to https://console.groq.com and sign up (free).
  2. Create an API key.
  3. In backend/, create a file called .env:
GROQ_API_KEY=your_key_here

(Optional: set GROQ_MODEL=llama-3.3-70b-versatile or another Groq-hosted model — see https://console.groq.com/docs/models for current free models.)

2. Run the backend

cd backend
python3 -m venv venv
source venv/bin/activate        # Windows: venv\Scripts\activate
pip install -r requirements.txt
uvicorn main:app --reload --port 8000

Check it's alive: open http://localhost:8000/api/health — you should see "groq_key_set": true.

3. Run the frontend

The frontend is plain HTML/JS, no build step. Simplest option:

cd frontend
python3 -m http.server 5500

Then open http://localhost:5500 in Chrome (Web Speech API support is best there). Allow camera access when prompted.

How it works

  1. Welcome → category → wheel: topics come from a curated bank per category in backend/topics.py (edit freely to add your own).
  2. Stance: you pick for/against, the AI automatically takes the other side.
  3. Research (5 min, adjustable): on stance selection, the backend fires off build_research_brief() — DuckDuckGo search for both sides of the topic, summarized by Groq into a compact brief (key arguments, likely opponent points, pre-drafted rebuttals). This brief is what the AI draws on live, so it isn't reasoning from scratch mid-debate. Meanwhile you get a notes panel to do your own research in.
  4. **Live

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

jamesob
精选
jamesob GitHub avatar

local-llm

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.

AI 与机器学习大语言模型
1,660
slvDev
精选
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI 与机器学习大语言模型
1,960
gavamedia
精选
gavamedia GitHub avatar

deltafin

Deltafin is a research project that runs the 2.8-trillion-parameter Mixture-of-Experts model Kimi K3 on a single Apple Silicon Mac (e.g., M1 Max with 64 GB) at about 16 seconds per token, using exact, reproducible inference with local or streaming expert loading.

AI 与机器学习大语言模型
304