Skip to content
Samuel Bourguignonhytechso
All projects

Personal project

AI Audio Text QA

Real-time audio transcription with an AI agent that answers the questions detected in the conversation. Fully local AI, on web and mobile.

Stack
.NET AspireReactExpowhisper.cppOllamaQdrantMCPKeycloak

Context

AI Audio Text QA is a personal project: a real-time audio transcription service paired with an AI agent. You speak into a microphone, your words are transcribed instantly, and the agent answers the questions it detects in the conversation, drawing on what has already been said.

Challenges

  • Streaming raw audio from the browser with low latency, without flooding the network
  • Running all the AI locally: transcription, embeddings, LLM and vector search
  • Keeping the server responsive during inference, and the agent robust when a tool is unavailable
  • Sharing code between the web app and the mobile app

Solution

  • Audio capture: an AudioWorkletProcessor converts the microphone signal to 16 kHz PCM and sends 200 ms frames over an authenticated WebSocket.
  • Server pipeline (.NET): whisper.cpp transcribes each segment, Ollama embeds it and Qdrant stores it per conversation. A bounded Channel decouples network reception from inference.
  • AI agent: a tool-calling loop (Qwen 2.5 via Ollama) relies on a dedicated MCP server, falling back to a direct answer if that server is unavailable.
  • Platform: .NET Aspire orchestration, Keycloak authentication with PKCE, a React + Vite frontend and an Expo mobile app that share types and the API client through the monorepo.

Outcome

A complete service that runs entirely locally: live transcription, answers to questions about the content, conversation history grouped by date and PDF export on the web, browsing and sharing on mobile. Next step: real-time transcription on mobile.

Read the full write-up →

Have a project in mind?

Let's talk about your goals. I'll get back to you quickly with a first analysis and next steps.