Have you ever needed to talk through an idea before you could write it down?
I do this a lot. Sometimes I need to explain a technical problem. Sometimes I'm preparing an article. Sometimes I need to get everything out of my head before deciding what matters.
That's why I built Braindump, a voice transcription application that I use almost every day.
The idea is straightforward: record your thoughts, get a transcript, and use AI to work with what you said. Organize it, rewrite it, or turn it into something you can share. Search through previous recordings when you need to revisit an idea.
Building this in 2026 means calling a few AI APIs. It also means handling slow jobs, sharing files between containers, updating the browser, and protecting API keys. Those parts still need somewhere to run.
Here's how the application grew, and how SymfonyCloud helped me add what I needed along the way.
Start with a Symfony application and PostgreSQL
The first version needs familiar things: users, recordings, settings, and somewhere to store transcripts.
I start with Symfony and PostgreSQL. EasyAdmin provides the back office, while Stimulus and Turbo handle browser interactions.
At this stage, the infrastructure is small. A PHP application serves requests, and a database stores the application's data.
SymfonyCloud keeps the deployment configuration alongside the code. Services, relationships, and build and deployment hooks live in YAML. Changes can be tested in isolated preview environments before reaching production.
That gives me somewhere to start. The interesting requirements arrive when I add transcription.
Transcription belongs in a worker
For hosted transcription, Braindump uses OpenAI's Whisper API through Symfony AI.
The transcription adapter takes an audio file and invokes the model:
1 2 3 4 5
use Symfony\AI\Platform\Message\Content\Audio;
$audio = Audio::fromFile($audioPath);
return $this->platform->invoke('whisper-1', $audio)->asText();
There's very little integration code here. Symfony AI provides the platform abstraction and audio content type.
But transcription takes time. Keeping an HTTP request open while an external service processes a recording occupies a PHP-FPM worker for the duration.
I'd rather have that worker available for the next request.
Symfony Messenger handles the handoff. The web application saves the recording, dispatches a message, and returns a response. A dedicated worker processes the transcription.
SymfonyCloud lets me declare that worker in the application configuration. Under applications.app, Braindump defines:
1 2 3 4
workers:
transcription:
commands:
start: php bin/console messenger:consume async --time-limit=3600 --memory-limit=256M
The web application and worker use the same application code, with separate processes doing different jobs. SymfonyCloud starts the worker and restarts it when its command exits.
PostgreSQL can handle the queue, too
I already have PostgreSQL. For this application's workload, I don't need another service to hold messages.
Messenger's Doctrine transport stores jobs in a database table. PostgreSQL's LISTEN/NOTIFY mechanism wakes the worker when new work arrives. The notification itself isn't persistent; the queued message is. Missing a notification doesn't remove the job from the table.
If queue traffic eventually warrants a dedicated broker, adding managed RabbitMQ takes a small configuration change. These additions to .upsun/config.yaml give the application access to a broker and enable PHP's AMQP extension:
1 2 3 4 5 6 7 8 9 10 11
applications:
app:
relationships:
rabbitmq: 'rabbitmq:rabbitmq'
runtime:
extensions:
- amqp
services:
rabbitmq:
type: rabbitmq:4.3
These are additions to the existing configuration, so I keep the other relationships and extensions in place.
Then I install Messenger's AMQP transport:
1
composer require symfony/amqp-messenger
The Symfony integration exposes the connection as RABBITMQ_URL, so the async transport can use it directly:
1 2 3 4 5
framework:
messenger:
transports:
async:
dsn: '%env(RABBITMQ_URL)%'
I remove the Doctrine-specific use_notify and check_delayed_interval options from that transport, keeping the existing routing and retry configuration.
Push the branch to a preview environment, and SymfonyCloud provisions the broker. The worker still consumes async, and the transcription handler stays the same. I can upload a recording there and verify the full flow before switching production, draining any pending jobs from the old transport first.
For now, PostgreSQL does the job. There's no prize for adding a message broker before you need one.
The audio file needs to reach the worker
The queue message contains a recording ID. It doesn't contain the audio.
The web application receives the upload, but the transcription worker runs in another container. Saving the file on the web container's private filesystem wouldn't make it available to the worker.
Braindump uses managed network storage, mounted at the same path in both containers. The service is declared once:
1 2 3
services:
audio-storage:
type: network-storage:1.0
Both the web application and transcription worker include this mount:
1 2 3 4 5
mounts:
'/storage/audio':
source: service
service: audio-storage
source_path: audio
The web application saves the audio there. The worker retrieves the file using the recording's stored path. Cleanup removes it after processing.
This keeps the responsibilities clear: the queue carries work references, and shared storage carries files.
Tell the browser when the transcript is ready
Moving transcription into a worker solves the request-handling problem. It creates another question: how does the browser know when the job finishes?
I want the interface to show that processing has started, then display the transcript as soon as it's available.
Braindump uses Mercure for that. It delivers updates to the browser over server-sent events, a persistent HTTP connection for server-to-client messages.
The worker publishes recording updates to the hub, including status, transcript, and title:
1 2 3 4 5 6 7 8 9 10
use Symfony\Component\Mercure\Update;
$this->hub->publish(new Update(
'recording/' . $recording->id,
json_encode([
'status' => $recording->status->value,
'transcription' => $recording->transcription,
'title' => $recording->title,
]),
));
The browser subscribes and updates the page when an event arrives.
Mercure is already part of the Symfony ecosystem, and SymfonyCloud provides a managed Mercure service. Braindump declares its hub in the deployment configuration:
1 2 3
services:
mercure:
type: mercure:0
The full configuration also connects the application to the hub and exposes its browser endpoint.
PHP handles application requests. The transcription worker handles the slow operation. Mercure maintains the browser's event connection.
Each part has a fairly ordinary job, which is exactly what I want.
Add a conversation around the transcript
A transcript captures what I said. It doesn't necessarily capture what I meant to write.
There are repetitions, unfinished sentences, and occasional detours that seemed relevant at the time. Talking through an idea is useful. Publishing the result verbatim is another matter.
The next feature is a chat attached to the recording. The transcript provides the starting context, and I can ask the model to organize it or help develop a particular point.
For chat, users bring their own provider credentials. That lets different users choose different providers without putting every conversation on my account.
Braindump supports Anthropic and several providers with OpenAI-compatible APIs. Symfony AI handles the hosted transcription integration; chat uses Symfony HttpClient with provider-specific adapters.
Those adapters expose a shared streamCompletion() method that yields text as it arrives. Mercure is already available, so I reuse it to deliver the developing response to the browser.
The following shortened example shows the connection between the provider stream and the hub. The full implementation also handles persistence, errors, and throttling updates:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use Symfony\Component\Mercure\Update;
[$client, $apiKey] = $this->chatClientFactory->forUser($user);
$buffer = '';
foreach ($client->streamCompletion($apiKey, $systemPrompt, $history) as $delta) {
$buffer .= $delta;
$this->hub->publish(new Update(
'ai-session/' . $sessionId,
json_encode([
'type' => 'snapshot',
'messageId' => $messageId,
'content' => $buffer,
]),
));
}
Each snapshot contains the response accumulated so far. A browser receiving a later snapshot can display the complete text without reconstructing every earlier fragment.
There's a useful distinction here: Mercure handles delivery to subscribers, but the current chat controller still waits for the provider's response. Moving that generation into a worker would be a separate change if concurrent usage calls for it.
Encrypt provider keys before storing them
Once users can save API keys, I need to decide how to store them.
Plaintext in the database doesn't appeal to me.
On SymfonyCloud, Braindump uses the managed Vault key management service for transit encryption. Vault performs encryption and decryption without storing the submitted application data.
The configuration creates an encryption key named api-keys and gives the application access to encrypt and decrypt operations:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
applications:
app:
relationships:
vault_kms: 'vault_kms:api-keys'
services:
vault_kms:
type: vault-kms:1.12
configuration:
endpoints:
api-keys:
- policy: encrypt
key: api-keys
type: encrypt
- policy: decrypt
key: api-keys
type: decrypt
The application reads the service address and access token from its relationship credentials. Inside the encryption adapter, the request looks like this:
1 2 3 4 5 6 7 8 9 10
$response = $this->httpClient->request(
'POST',
$this->baseUrl . '/v1/transit/encrypt/api-keys',
[
'headers' => ['X-Vault-Token' => $this->token],
'json' => ['plaintext' => base64_encode($plaintext)],
],
);
return $response->toArray()['data']['ciphertext'];
The base64 encoding is the API's input format. Vault performs the encryption and returns ciphertext, which Braindump stores in PostgreSQL.
When a conversation needs that credential, the application sends the ciphertext to Vault's decrypt endpoint and uses the returned plaintext to call the provider.
The encryption key stays with Vault. The provider credential necessarily becomes available to the application when it makes an authenticated request.
That gives me a useful separation: storing the database contents doesn't also mean storing the encryption key beside them.
SymfonyCloud runs the KMS service. My application handles when to encrypt, where to store the ciphertext, and who can use the credential.
Search starts with the database
After enough recordings, remembering which one contains a particular thought becomes its own problem.
PostgreSQL's full-text search is enough for my daily usage. Braindump searches recording titles and transcripts without requiring another deployed service.
A database trigger maintains the searchable representation whenever a recording is inserted or updated. It weights matches in the title above matches in the transcript:
1 2 3
NEW.search_vector :=
setweight(to_tsvector('english', coalesce(NEW.title, '')), 'A') ||
setweight(to_tsvector('english', coalesce(NEW.transcription, '')), 'B');
A GIN index makes that search vector efficient to query:
1 2
CREATE INDEX idx_recording_search
ON recording USING GIN(search_vector);
The search routine converts the input into a query, filters by the authenticated owner, and ranks matches by relevance. A shortened SQL equivalent looks like this, with bound parameters for the query and owner:
1 2 3 4 5 6 7
SELECT r.id, r.title, r.transcription
FROM recording AS r
CROSS JOIN websearch_to_tsquery('english', :query) AS q
WHERE r.owner_id = :owner_id
AND r.search_vector @@ q
ORDER BY ts_rank(r.search_vector, q) DESC, r.created_at DESC, r.id DESC
LIMIT 20;
The application supplies the owner from the authenticated session. Users can search their recordings without searching someone else's.
The code also includes an optional backend intended for managed OpenSearch. If search requirements grow, I can provision that service in a preview environment and validate client compatibility, indexing, and results there.
Existing transcripts would need indexing, too. Adding a search service doesn't automatically put historical data into it.
For now, PostgreSQL gives me search using infrastructure I already have. I can keep the deployment small and introduce a dedicated search engine when there's a reason.
Let the infrastructure grow with the application
Braindump now uses a PHP web application, a transcription worker, PostgreSQL, Mercure, shared network storage, and Vault KMS.
Each arrives because a feature needs it.
Transcription needs background processing. The worker needs access to uploaded files. The browser needs timely updates. User-provided credentials need encryption. Older recordings need search.
Symfony provides the components to build those features. SymfonyCloud manages the infrastructure that runs them, with a fully managed stack designed for Symfony developers.
I describe the services in YAML, push my changes, and test them in a preview environment. The platform takes care of provisioning and running the stack, while I work on the application's behavior.
That's what helps me move faster: I can add the next feature without taking on the operation of another infrastructure service.