The Voice Cap That Never Reset
On November 27, 2026, we deleted one line from convex/tts.ts:
const TTS_SESSION_CHAR_LIMIT = 50_000;
That line was the whole budget for the Game Master's voice. Every session got 50,000 characters of narration read aloud. Not 50,000 a day, and not 50,000 a month. 50,000 for the life of the session, with nothing that ever refilled it.
A single narration can run up to 2,000 characters. Do the division and a table that plays long hits the wall after 25 full-length narrations. After that the Game Master keeps writing and stops talking. The only notice was a line in a server log that read "TTS skipped: session cap exceeded". Players would have seen nothing. The voice would simply not come back, that night or any night after it.
The cap was a cost guard. Our own notes filed it under "capped to control API costs". It did that job. It would also have muted a long-running session for good, and that part was never the plan.
We could not agree with ourselves on the number
While pulling the cap out we found our own README describing it twice. One section said 50,000 characters. Another, further down, said 30,000. Scene art had the same problem: the README said 3 pictures per session and the code said 12.
Three places, three sets of numbers, and only one of them was the code. That is what a limit looks like when nobody has looked at it since the day it was typed.
What replaced it
The new limits reset every day at midnight UTC, and they live in one object, MEDIA_DAILY_LIMITS:
- Free tables: 4,000 characters of voice a day (about three or four typical turns) and 2 pieces of scene art.
- Paid tables: 200,000 characters of voice and 12 pieces of scene art.
- Portraits of heroes, people and places stay free on every plan. They have a daily backstop (40 free, 120 paid) that ordinary play should never touch.
The narration that crosses the line still gets read in full. We were not going to cut the Game Master off mid-sentence over a budget. The next one stays text, and the owner of a free table sees one line under it: "Voice continues with StoryRoll Plus."
Who pays for a voice five people hear
This was the real decision. One narration is heard by the whole table. One picture is seen by everyone. So whose budget does it come out of?
We charged the campaign owner. The plan of the person who made the table decides what the table gets. If a friend with a paid plan starts the campaign, everybody at it hears every turn, including the players who have never paid us anything. That felt right. The alternative was a table where the voice plays for two people and not the other three.
It has a cost we already know about. When the voice pauses on a free table, only the owner is told why. Everyone else just stops hearing it, and their settings still say "Voice narration: On". That one is on the list.
The bugs inside the fix
Review caught six things before this merged. Two of them were about money moving the wrong way. If a scene art request failed after the art provider had already billed us, we handed the player their credit back and ate the charge. And when an admin regenerated a portrait, the cost landed on the campaign owner's daily count, for a picture they never asked for.
Both are fixed. A failed voice call now returns its characters to the budget, and there is a test that checks the count goes back to exactly zero.
The part we guessed
Every number above is a first guess. We wrote that in the pull request in those words. We do not yet know how many tables play with voice on, or what a busy one spends in a day.
The 200,000 figure is the one that worries us. It is not really a limit. It is a backstop under a sentence on the upgrade page that says every turn is read aloud. We picked the sentence first and the number second, and a very busy paid table could cost us more in voice in a day than its plan earns.
We promised every turn read aloud, and we still don't know what that promise costs.
Written by StoryRoll
Founder of StoryRoll. Building AI-powered tabletop RPGs.
Related Posts
The Game Master Copied Our Example of Nothing
About 950 turns, zero healing potions that worked. The likely cause: three example replies in our own prompt, and all three said null.
The Game Master Kept Its Dashes
We told our AI Game Master to stop using long dashes. The next opener had two in 227 words. So we stopped asking and wrote a filter.
The Error That Was Our Error Tracker
85% of our error reports in a month were one message, and it came from the error tracker itself. Why we cut session replay instead of muting it.