Skip to content
~/caio.barilli
ENPT
← All projects
PHP · Laravel

PHParrot

Language practice by speaking. Speech is transcribed locally with Whisper, so audio never leaves the machine. A local model also drafts practice texts, which go live only after review.

Year
2026
Type
Personal project
Status
In development

01 · Problem

Language apps train reading and tapping, not speaking. Cloud speech APIs solve that, but they send every recording to a third party and bill per minute.

02 · Solution

A Laravel and Livewire app for speaking practice. Whisper runs locally in Docker to transcribe what you say, and the infrastructure is provisioned with Terraform. Practice texts come from a local model on Ollama through llm-gateway, a FastAPI gateway maintained as a separate project. It requires a token, accepts only allowed models, validates the output against a JSON Schema and logs metrics without storing any text. The app runs the gateway's published image, pinned by digest, and a contract test checks every new version before it goes in. Each generated text goes through the app's validation and reaches practice only after it is approved.

03 · Stack

  • Laravel 13
  • PHP 8.5
  • Livewire
  • Whisper (local)
  • llm-gateway (FastAPI)
  • Ollama (local)
  • Docker
  • Terraform
  • Pest

04 · Architecture decisions

The decisions that shaped the project.
  1. ADR 0001

    Stack

    Laravel 13, PHP 8.5, Livewire, SQLite.

  2. ADR 0004

    Voice and transcription

    Whisper runs locally; audio never leaves the server.

  3. ADR 0009

    CI for containers

    Hadolint, Trivy, SARIF and SBOM.

  4. ADR 0013

    AI gateway

    OpenAI-compatible API: swapping Ollama for another engine doesn't change the app.

  5. ADR 0014

    Gateway as an image

    The gateway comes from a published image pinned by digest; the app has no Python code.

05 · Screenshots

Speak: record, transcribe and compare word by word
Read: a text by level and theme, read aloud

06 · Links

Next projectUvalab →
PHParrot speaking screen with record and transcribe buttons
Speak: record, transcribe and compare word by word
1 / 2