← Back to the train

Work — 2026

Retrato Hablado

A Spanish voice CLI that turns a spoken description into a generated portrait.

Role
Creator, design and development
Stack
  • Python
  • OpenAI API
  • Pydantic
  • sounddevice

A command-line tool that records your voice, transcribes it, and collects facial characteristics into a Pydantic schema. When fields are missing, it asks follow-up questions in Spanish through text-to-speech, and once the description is complete it generates a portrait image.

Each input passes a moderation check, and the tool tracks usage and estimated cost for transcription, text, speech, image generation and moderation. It is a small script of about 16 KB of Python. The README has a safety section, because the same flow could be used for witness-style portraits.