A FastAPI backend service that processes audio data, converts speech to text using OpenAI Whisper, and calculates vector similarity between transcribed text and reference documents.
app/
├── __init__.py
├── main.py # FastAPI application entry point
├── core/
│ ├── __init__.py
│ └── config.py # Pydantic settings configuration
├── models/ # Data models and schemas
│ └── __init__.py
├── services/ # Business logic services
│ └── __init__.py
├── repositories/ # Data access layer
│ └── __init__.py
└── api/
├── __init__.py
└── v1/
├── __init__.py
├── router.py # Main API router
└── endpoints/ # API endpoint implementations
└── __init__.py
- Copy
.env.exampleto.envand fill in your configuration values - Install dependencies:
pip install -r requirements.txt - Run the application:
uvicorn app.main:app --reload
See .env.example for all required environment variables.
When running in debug mode, API documentation is available at:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc