<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: eyeguide-dev</title>
    <description>The latest articles on DEV Community by eyeguide-dev (@eyeguidedev).</description>
    <link>https://dev.to/eyeguidedev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4171211%2Fc139b4ee-9bc8-474d-a1ad-26063c467247.png</url>
      <title>DEV Community: eyeguide-dev</title>
      <link>https://dev.to/eyeguidedev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eyeguidedev"/>
    <language>en</language>
    <item>
      <title>If you forward your calls to an AI agent, what happens to texts and voicemail?</title>
      <dc:creator>eyeguide-dev</dc:creator>
      <pubDate>Sun, 22 Nov 2026 08:21:58 +0000</pubDate>
      <link>https://dev.to/eyeguidedev/if-you-forward-your-calls-to-an-ai-agent-what-happens-to-texts-and-voicemail-2fi0</link>
      <guid>https://dev.to/eyeguidedev/if-you-forward-your-calls-to-an-ai-agent-what-happens-to-texts-and-voicemail-2fi0</guid>
      <description>&lt;p&gt;I make Speakvora, an agent that small businesses run on their own computer, so I hear one question constantly: "I do not want to change my number. Can I just forward calls?" The short answer is yes for calls and no for everything else, and the details are where people lose an afternoon.&lt;/p&gt;

&lt;h2&gt;
  
  
  What forwarding actually moves
&lt;/h2&gt;

&lt;p&gt;Carrier call forwarding is a switch at your carrier. When it is on, the carrier sends the call to another number you choose, either all calls or only those that are unanswered, busy or unreachable. Customers still dial the number they know. That is all it moves. Texts keep going to your phone, because forwarding was never defined for them.&lt;/p&gt;

&lt;p&gt;Mobile carriers such as T-Mobile, AT&amp;amp;T and Verizon also give outside software no way to receive a mobile line's calls or texts from the number alone. That one fact is why only three real options exist: forward the calls, port the number to a provider, or hand customers a new number.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three options, with the trade-offs
&lt;/h2&gt;

&lt;p&gt;Forwarding keeps the number at your carrier, covers calls only, and takes minutes. You still need something for the call to land on: a number from a provider such as Twilio, SignalWire or Telnyx, or an extension on a phone system you already have.&lt;/p&gt;

&lt;p&gt;Porting the number to a provider moves calls and texts together. It takes days, typically 5 to 15 for Twilio and longer if the request is rejected, so keep your old plan running until it completes.&lt;/p&gt;

&lt;p&gt;A new business number is the quickest start for both calls and texts, but US texting needs carrier registration, which can take days, and customers have to learn the new number.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways forwarded calls go wrong
&lt;/h2&gt;

&lt;p&gt;First, your carrier's voicemail can answer before the forward does. Set the ring time before the forward kicks in, or turn voicemail off for the forwarded line, then test with a call from another phone.&lt;/p&gt;

&lt;p&gt;Second, your carrier may bill airtime for forwarded calls. Read the plan before you decide it is free.&lt;/p&gt;

&lt;p&gt;Third, the dial codes differ by carrier and change. Our agent's setup screen shows codes for the major US carriers, each with the carrier page it was read from and the date, and shows any it could not confirm as "not confirmed" rather than as working. I would still dial one yourself and listen for the confirmation tone.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the agent can do on each provider
&lt;/h2&gt;

&lt;p&gt;Live-audio calls and the AI conversation mode work on Twilio only today. On SignalWire and Telnyx the agent plays recorded lines and takes keypad and speech input. That is a real limit, and it should decide which provider you pick before you port anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  A sensible order
&lt;/h2&gt;

&lt;p&gt;Start with practice mode, where the agent records what it would do and sends nothing. Forward calls to a provider number. Call yourself from another phone and listen to what a customer would hear. Only then turn real forwarding on. If texts matter, decide separately: an Android phone as a gateway, a ported number, or a new one.&lt;/p&gt;

&lt;p&gt;The page I keep this up to date on, with the carrier notes and the dial-code rules, is &lt;a href="https://speakvora.com/keep-your-number-forward-calls-ai-agent" rel="noopener noreferrer"&gt;https://speakvora.com/keep-your-number-forward-calls-ai-agent&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>voice</category>
      <category>telephony</category>
      <category>smallbusiness</category>
      <category>automation</category>
    </item>
    <item>
      <title>The Weekend Special Changes Every Week. What Does the Agent Do?</title>
      <dc:creator>eyeguide-dev</dc:creator>
      <pubDate>Sun, 22 Nov 2026 05:32:27 +0000</pubDate>
      <link>https://dev.to/eyeguidedev/the-weekend-special-changes-every-week-what-does-the-agent-do-25i2</link>
      <guid>https://dev.to/eyeguidedev/the-weekend-special-changes-every-week-what-does-the-agent-do-25i2</guid>
      <description>&lt;p&gt;Picture a small restaurant, invented for this example. On Thursday the kitchen decides the weekend special will be braised short ribs. On Friday morning the owner updates the fact in the agent: "Weekend special: braised short ribs with polenta, 24 dollars." On Friday at noon the first caller dials in and asks, "Do you have a special this weekend?"&lt;/p&gt;

&lt;p&gt;Everything below is an illustration of how the Speakvora pay-once agent is built to behave, with invented numbers. The arithmetic is mine; the mechanics are from the agent's code.&lt;/p&gt;

&lt;h2&gt;
  
  
  The first time
&lt;/h2&gt;

&lt;p&gt;The agent has recorded lines for the things a restaurant says every day: the greeting, hours, how to book. None of those is the special. So the answer to this caller is a new sentence, written from the owner's facts by the connected AI, say: "This weekend we have braised short ribs with polenta for 24 dollars." I counted that: 66 characters.&lt;/p&gt;

&lt;p&gt;The agent checks the store for those exact words and finds nothing. If voicing is allowed, it sends the sentence to the voice engine, stores the audio under a name derived from the exact text, and plays it. In some paths, such as the greeting, a line that is not ready yet is covered by the phone carrier's built-in voice while it is voiced in the background, so the next caller gets the recording. That is the honest first-time cost: a caller may hear a different voice for that sentence, and the agent logs when it falls back.&lt;/p&gt;

&lt;p&gt;Cost, in the default cloud mode: 66 characters. At Speakvora's $3 per 1M characters that is 66 / 1,000,000 x $3, about $0.0002. The agent's guard counts those 66 against its monthly budget of 100,000 characters, which is 0.066 percent. (Per Speakvora's changelog of 21 November 2026, speech made by a pay-once agent is not billed per character; the budget is a safety limit, not a meter.)&lt;/p&gt;

&lt;h2&gt;
  
  
  The second through fiftieth time
&lt;/h2&gt;

&lt;p&gt;By Saturday evening, say fifty callers have asked. Caller two asks the same thing, and the AI produces the same sentence. Same words, same key, found in the store: the stored clip plays, with no voicing and no characters spent. The agent refreshes that line's last-used time each time it plays. Callers three to fifty are the same. Total cost for fifty callers: still 66 characters. If you had voiced each reply live, it would be 50 x 66 = 3,300 characters.&lt;/p&gt;

&lt;p&gt;Honesty about "the same words": this works only when the AI's sentence is identical. If it produces "This weekend's special is braised short ribs with polenta, 24 dollars" on call seven, that is a different string, so it is a new line, voiced once, costing about 70 characters. The agent has a learning feature that counts repeated customer-facing lines and, at the repeat count the owner sets (default 3), turns a repeated line into a library entry, but it only learns generic lines. Anything with digits is skipped, and this sentence has a 24 in it. So this special would not be learned into the library; it relies on the cache of recently voiced lines, which is exactly what the cache is for. In practice a few wording variants will exist by Sunday, each voiced once. Say five variants: 5 x 70 = 350 characters for the whole weekend.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the special changes
&lt;/h2&gt;

&lt;p&gt;The next Friday the owner types a new special. Last week's sentences are still in the store, and nobody asks for them. Ordinary voiced lines are kept for 30 days since their last play, so they expire on their own around a month later. Nothing for the owner to clean up, and no stale audio plays, because the key is the words and the new special has new words.&lt;/p&gt;

&lt;p&gt;Over a year, with a new special every week and, generously, five wording variants a week at 70 characters, the cost is 52 x 5 x 70 = 18,200 characters. That is 18.2 percent of one month's free allowance, spread across twelve months. Even if the owner announces a second offer every week, you are around 36,000 characters a year.&lt;/p&gt;

&lt;h2&gt;
  
  
  What would change this
&lt;/h2&gt;

&lt;p&gt;A busier restaurant changes nothing about the arithmetic, since callers add plays, not characters. What does change it: a long, wordy special description (a 300-character sentence costs four and a half times as much to voice once), a language model that rewords freely (more variants), or a budget that is already used up when the new special arrives, in which case the carrier's voice covers it until the budget renews, and the log says so. If the restaurant would rather never hear the carrier voice on the special, the answer is to keep a spare budget, or to pre-voice the special on Friday morning before the first caller. In the agent's dashboard, lines that are added or edited are voiced right away, with the code noting that a call then plays them instantly.&lt;/p&gt;

&lt;p&gt;The practical advice for the owner is short. Put the special in the facts when you decide it, test-call once on Friday so the first real caller does not become the person who triggers the voicing, and let the agent forget last week's.&lt;/p&gt;

&lt;p&gt;For more on how the pay-once agent works for restaurants, see &lt;a href="https://speakvora.com" rel="noopener noreferrer"&gt;speakvora.com&lt;/a&gt;; it covers what is included and what the optional support plan costs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method and sources
&lt;/h2&gt;

&lt;p&gt;All numbers are for an invented restaurant and are labelled illustrative. Character counts (66, and about 70 for variants) were counted by me. The $3 per 1M characters price and the 100,000-character free allowance are from the Speakvora pricing page, 22 November 2026. The not-billed-per-character statement is from the Speakvora changelog of 21 November 2026. Behavior (cache keyed by exact words, 30-day retention with refresh on use, background voicing with carrier-voice fallback and logging, default 100,000-character budget, learning at a default repeat count of 3 that skips lines with digits, voicing of added or edited lines from the dashboard) is from the agent source files audio.py, engine.py, learned.py, guardrails.py and dashboard.py, read on 22 November 2026.&lt;/p&gt;

</description>
      <category>voiceagents</category>
      <category>restaurants</category>
      <category>smallbusiness</category>
      <category>texttospeech</category>
    </item>
    <item>
      <title>What 100,000 Free Characters a Month Covers for a Small Business</title>
      <dc:creator>eyeguide-dev</dc:creator>
      <pubDate>Sun, 22 Nov 2026 05:31:57 +0000</pubDate>
      <link>https://dev.to/eyeguidedev/what-100000-free-characters-a-month-covers-for-a-small-business-2jo6</link>
      <guid>https://dev.to/eyeguidedev/what-100000-free-characters-a-month-covers-for-a-small-business-2jo6</guid>
      <description>&lt;p&gt;"100,000 free characters" sounds generous until you try to picture it. A character is not a word, and nobody thinks in characters when they plan a phone greeting. So here is the arithmetic, done the slow way, for a small business that wants an agent that speaks in a good voice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Converting characters into things you say
&lt;/h2&gt;

&lt;p&gt;Speakvora gives every account 100,000 characters of speech free each calendar month, renewing on the 1st, with no card required. That figure comes from the pricing page and the 21 November 2026 changelog. Everything over it is billed at $3 per 1M characters.&lt;/p&gt;

&lt;p&gt;Now divide. Spaces and punctuation count as characters, so a sentence's length is just its length. Take three typical lengths:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Typical line&lt;/th&gt;
&lt;th&gt;Characters&lt;/th&gt;
&lt;th&gt;New lines per month in 100,000&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Short answer ("Yes, we are open until nine tonight.")&lt;/td&gt;
&lt;td&gt;36&lt;/td&gt;
&lt;td&gt;2,777&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Medium sentence&lt;/td&gt;
&lt;td&gt;120&lt;/td&gt;
&lt;td&gt;833&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Long, two-clause answer&lt;/td&gt;
&lt;td&gt;200&lt;/td&gt;
&lt;td&gt;500&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first row is a real sentence I counted; the other two are round lengths. The point is the shape: even at 200 characters a line, the free amount voices about 500 different sentences every month. A bakery or a dental office does not have 500 different things to say in a month. It has a few dozen answers, repeated.&lt;/p&gt;

&lt;p&gt;The important word is "different". The free amount is not consumed by calls; it is consumed by new sentences. In Speakvora's speech API, the same text in the same voice returns the stored clip and is not billed or counted (a setting turns that off). In the pay-once agent, a sentence is voiced once and stored by its exact words, then played from disk on every later call. So 10,000 callers hearing "We are open nine to five" cost the same characters as one caller.&lt;/p&gt;

&lt;h2&gt;
  
  
  The promotion scenario
&lt;/h2&gt;

&lt;p&gt;This is an illustrative example, not customer data. A shop decides on Friday to announce: "We have 20 percent off all pizzas this weekend only, Saturday and Sunday." I counted it: 73 characters.&lt;/p&gt;

&lt;p&gt;The first caller who asks about deals makes the agent produce that sentence. It is new, so it is voiced once, which spends 73 characters. The stored audio is kept, and every later caller who gets that same sentence hears the stored recording: zero further characters. Whether 5 callers ask or 500, the promotion cost 73 characters, or 73 / 1,000,000 x $3 = $0.0002 had it not been inside the free amount. Against 100,000 free characters that is 0.073 percent of the month.&lt;/p&gt;

&lt;p&gt;There are two honest caveats. First, "that same sentence" means the same words. If your agent's language model words the offer differently on each call, each variant is a new line and is voiced separately. The agent can learn repeated answers and keep the best wording, which pushes callers toward a single version, but it does not rewrite on its own for you. Second, the first caller may hear the phone provider's built-in voice if the new line is not ready in time; in the agent's greeting path the line is voiced in the background so the next call hears the recording. Voice engines are fast, but "once" still has to happen at some point, and a caller is sometimes the one who triggers it.&lt;/p&gt;

&lt;p&gt;Even a restaurant that changes five offers a week, each around 100 characters, spends about 500 characters a week, or roughly 2,000 a month. That is 2 percent of the free amount.&lt;/p&gt;

&lt;h2&gt;
  
  
  When you would pass it
&lt;/h2&gt;

&lt;p&gt;You pass 100,000 characters when you voice a lot of text that does not repeat: personalized messages, long dynamic answers, many languages, or a big library of recordings generated at once. A single 2,900-character page of text is about 3 percent of the month on its own, so reading long documents aloud uses the allowance in a way short phone answers never do. Another way is high volume on the text-to-speech API itself, where every request is new text.&lt;/p&gt;

&lt;p&gt;When you do pass it, nothing dramatic happens to the price. Suppose a month of 150,000 characters: the extra 50,000 costs 50,000 / 1,000,000 x $3 = $0.15. A month of 1,000,000 characters costs 900,000 x $3 / 1,000,000 = $2.70 after the free amount. There is no minimum and no monthly fee on the API.&lt;/p&gt;

&lt;p&gt;The agent has its own guard, which is not the same thing as the free allowance. New lines it voices in a month are capped at 100,000 characters by default (the guardrail is called talk_chars_per_month, and its fixed ceiling is 200,000), matching the free amount. If that budget is used up, the caller hears the phone provider's voice for that sentence and the agent logs it. Separately, Speakvora's 21 November 2026 changelog says speech made by a pay-once agent is not billed per character, so the cap works as a safety limit on live voicing rather than as a meter. If you run a local voice engine for new lines, those lines use none of your Speakvora characters, at the price of sounding like a different speaker than your recorded lines.&lt;/p&gt;

&lt;h2&gt;
  
  
  The takeaway
&lt;/h2&gt;

&lt;p&gt;Think of the free amount as a budget for new sentences, not for calls. For most small businesses that means hundreds of distinct lines a month, which is far more than the business actually changes. Count your own lines once: take your twenty most common answers, add their lengths, and you will find the answer is a few thousand characters, not a hundred thousand.&lt;/p&gt;

&lt;p&gt;You can check the current allowance and the $3 per 1M price on the &lt;a href="https://speakvora.com" rel="noopener noreferrer"&gt;Speakvora pricing page&lt;/a&gt;, and read how the agent stores and reuses lines on the same site.&lt;/p&gt;

&lt;h2&gt;
  
  
  Method and sources
&lt;/h2&gt;

&lt;p&gt;The free 100,000 characters per month, no card, $3 per 1M beyond it, and no minimum or monthly fee come from the Speakvora pricing page and changelog (21 November 2026), read 22 November 2026. The agent cap (default 100,000, ceiling 200,000), the provider-voice fallback with logging, local-engine behavior and background voicing of the greeting line come from the agent source files guardrails.py, engine.py and localvoice.py, read the same day. The sentence lengths (36 and 73 characters) were counted by me; the 120 and 200 character rows, the restaurant offers and the 150,000 and 1,000,000 character months are round assumptions used for arithmetic. The 2,900-character page length is from Speakvora's own 2026-11-21 benchmark notes.&lt;/p&gt;

</description>
      <category>texttospeech</category>
      <category>smallbusiness</category>
      <category>pricing</category>
      <category>voiceagents</category>
    </item>
    <item>
      <title>Text to speech API speed test: Speakvora vs Amazon Polly vs Google (November 2026)</title>
      <dc:creator>eyeguide-dev</dc:creator>
      <pubDate>Thu, 12 Nov 2026 02:02:57 +0000</pubDate>
      <link>https://dev.to/eyeguidedev/text-to-speech-api-speed-test-speakvora-vs-amazon-polly-vs-google-november-2026-28dj</link>
      <guid>https://dev.to/eyeguidedev/text-to-speech-api-speed-test-speakvora-vs-amazon-polly-vs-google-november-2026-28dj</guid>
      <description>&lt;p&gt;&lt;em&gt;Disclosure: I run Speakvora. This is our own test, run from one MacBook with the same code for every voice. The Speakvora voices ran on our Mac mini; Polly and Google were reached over the internet, so part of our lead is distance. Details and caveats are below.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you are building a voice agent, two numbers matter first: how long until the first sound plays, and how bad the slow end is (the 95th percentile). We measured both, for one caller and for four callers at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;p&gt;Time to the first audible sound, in milliseconds. Lower is better.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Voice&lt;/th&gt;
&lt;th&gt;1 caller, median&lt;/th&gt;
&lt;th&gt;1 caller, 95th&lt;/th&gt;
&lt;th&gt;4 callers, median&lt;/th&gt;
&lt;th&gt;4 callers, 95th&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Speakvora Phonon&lt;/td&gt;
&lt;td&gt;41&lt;/td&gt;
&lt;td&gt;51&lt;/td&gt;
&lt;td&gt;42&lt;/td&gt;
&lt;td&gt;52&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Speakvora Pocket&lt;/td&gt;
&lt;td&gt;79&lt;/td&gt;
&lt;td&gt;89&lt;/td&gt;
&lt;td&gt;104&lt;/td&gt;
&lt;td&gt;118&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amazon Polly Standard&lt;/td&gt;
&lt;td&gt;83&lt;/td&gt;
&lt;td&gt;103&lt;/td&gt;
&lt;td&gt;73&lt;/td&gt;
&lt;td&gt;97&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amazon Polly Generative&lt;/td&gt;
&lt;td&gt;203&lt;/td&gt;
&lt;td&gt;222&lt;/td&gt;
&lt;td&gt;205&lt;/td&gt;
&lt;td&gt;227&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google Standard&lt;/td&gt;
&lt;td&gt;352&lt;/td&gt;
&lt;td&gt;434&lt;/td&gt;
&lt;td&gt;339&lt;/td&gt;
&lt;td&gt;476&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google Chirp 3 HD&lt;/td&gt;
&lt;td&gt;1,055&lt;/td&gt;
&lt;td&gt;1,558&lt;/td&gt;
&lt;td&gt;1,064&lt;/td&gt;
&lt;td&gt;1,530&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How we measured
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One MacBook, one program, the same five sentences for every voice. Each caller kept one connection open, as an app would, after two untimed warm-up requests.&lt;/li&gt;
&lt;li&gt;Every request counted. No errors, refusals or timeouts happened in any row.&lt;/li&gt;
&lt;li&gt;First sound means the first audio bytes plus any silence at the start of the audio, the way Coval defines time to first audio. It is our own implementation of their description.&lt;/li&gt;
&lt;li&gt;One caller made 20 requests and four callers made 10 each. These are small samples, so read the 95th percentile as approximate.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What this does not show
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Our voices ran on a Mac mini on the same network as the test computer, over Wi-Fi through an encrypted tunnel. Polly and Google were reached over the internet. We expect our times to change a little on a wired connection and will update.&lt;/li&gt;
&lt;li&gt;Google's text to speech returns the whole clip at once, so its number is the time for the entire sentence, not a streaming start.&lt;/li&gt;
&lt;li&gt;Voice quality is not part of this test. Listen before you choose.&lt;/li&gt;
&lt;li&gt;Our voices come from a smaller catalog than the big providers, and there is no uptime guarantee yet.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Full table and method
&lt;/h2&gt;

&lt;p&gt;The whole table, the method, and a ten-minute capacity test (25 + 10 + 2 live callers on one Mac mini with no errors) are on our speed page: &lt;a href="https://speakvora.com/performance" rel="noopener noreferrer"&gt;https://speakvora.com/performance&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The API itself costs $3 per million characters, with 100,000 characters free: &lt;a href="https://speakvora.com/text-to-speech" rel="noopener noreferrer"&gt;https://speakvora.com/text-to-speech&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://speakvora.hashnode.dev/text-to-speech-api-speed-test-speakvora-vs-amazon-polly-vs-google-november-2026" rel="noopener noreferrer"&gt;https://speakvora.hashnode.dev/text-to-speech-api-speed-test-speakvora-vs-amazon-polly-vs-google-november-2026&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>tts</category>
      <category>api</category>
      <category>performance</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Why "time to first byte" lies about voice latency (and how to get a lower number)</title>
      <dc:creator>eyeguide-dev</dc:creator>
      <pubDate>Sun, 08 Nov 2026 11:02:50 +0000</pubDate>
      <link>https://dev.to/eyeguidedev/why-time-to-first-byte-lies-about-voice-latency-and-how-to-get-a-lower-number-5g23</link>
      <guid>https://dev.to/eyeguidedev/why-time-to-first-byte-lies-about-voice-latency-and-how-to-get-a-lower-number-5g23</guid>
      <description>&lt;p&gt;Voice API pages love one number: how fast the first audio arrives. The trouble is that "first audio" can mean at least four different things, and they differ by hundreds of milliseconds. Here is what we found when we measured our own speech API properly, including one speed claim we had to take back.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I run Speakvora, a speech API. Every number below is from our own tests, with dates, and I say where they are not comparable to anyone else's.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The first byte is not the first sound
&lt;/h2&gt;

&lt;p&gt;A streaming text-to-speech response can begin with audio that is silent. The first chunk arrives quickly, your timer stops, and the caller still hears nothing for another 100 to 400 ms. What a person experiences is the arrival of the first chunk &lt;strong&gt;plus&lt;/strong&gt; the silence before the first audible sample.&lt;/p&gt;

&lt;p&gt;That is also how Coval's published TTS benchmark defines it: first chunk arrival plus leading silence, where "audible" is the first 10 ms window with RMS above 0.01 on a -1 to 1 scale (&lt;a href="https://www.coval.ai/blog/time-to-first-audio-ttfa-benchmark/" rel="noopener noreferrer"&gt;their method&lt;/a&gt;). We implemented that description ourselves; we did not run Coval's own harness. On 30 October 2026 we measured our Phonon voices that way, on a test server of ours over plain HTTP, next to Amazon Polly from the same client in the same run:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Voice&lt;/th&gt;
&lt;th&gt;Time to first sound (median)&lt;/th&gt;
&lt;th&gt;Of which: chunk arrival + leading silence&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Phonon, before we trimmed the opening silence&lt;/td&gt;
&lt;td&gt;148 ms&lt;/td&gt;
&lt;td&gt;25 ms + 123 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Phonon, after the trim&lt;/td&gt;
&lt;td&gt;70 ms&lt;/td&gt;
&lt;td&gt;57 ms + 13 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amazon Polly Neural&lt;/td&gt;
&lt;td&gt;143 ms&lt;/td&gt;
&lt;td&gt;37 ms + 107 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Amazon Polly Standard&lt;/td&gt;
&lt;td&gt;42 ms&lt;/td&gt;
&lt;td&gt;31 ms + 9 ms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Our voice produced its first chunk in 25 ms and then spent 123 ms saying nothing. The early "fast" figure was true as a first-byte time and misleading as a description of what a caller hears. Other engines show the same gap. A stock Pocket TTS voice (Kyutai's model, on a CPU) delivered its first chunk in 125 to 173 ms, then added 210 to 240 ms of leading silence. A local Qwen3-TTS model on my Mac sent its first chunk at about 100 ms and became audible at about 210 ms.&lt;/p&gt;

&lt;p&gt;When you compare vendors, ask which of the two numbers they are quoting.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Where you measure changes the answer
&lt;/h2&gt;

&lt;p&gt;The same Phonon voice, on a test server of ours, measured in October 2026 (these are first-byte times, taken before we started counting the silence):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On the server itself (loopback, no network): &lt;strong&gt;24 to 28 ms&lt;/strong&gt; for a short line.&lt;/li&gt;
&lt;li&gt;From my laptop over the internet, with a 16.5 ms round trip: &lt;strong&gt;57 to 62 ms&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The same laptop with a kept-alive connection and the text split at the first clause: &lt;strong&gt;42 to 45 ms&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;From a cloud VM in the same region: &lt;strong&gt;25 to 27 ms&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A number measured "on the box" tells you about the model. Your app lives somewhere else, so measure there.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Setting up a connection is part of your latency
&lt;/h2&gt;

&lt;p&gt;On 5 November 2026 we measured time to first audio bytes for a Phonon voice through our API, five runs, medians, same voice and server:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;43 ms&lt;/strong&gt; when the connection and the stream session were already open.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;101 ms&lt;/strong&gt; when a new session was requested for every line over a reused connection.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;207 ms&lt;/strong&gt; (range 152 to 310) for a brand-new visitor with new connections.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is nearly a five-fold spread from setup alone, with no change to the model.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Fast and wrong is not fast
&lt;/h2&gt;

&lt;p&gt;One more lesson. We once compiled a speech model for speed and its first-byte time dropped into the 40 to 47 ms range. Then we ran an accuracy check: Whisper transcribed the compiled model's output with a word error rate of 0.27, against 0.023 for the uncompiled model. It was fast and it was wrong. We withdrew every speed figure from that path and corrected our pages. Always listen to (or transcribe) the audio, not just read the clock.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure it yourself
&lt;/h2&gt;

&lt;p&gt;This function returns milliseconds from just before your request until the first audible sound. It takes any iterator of raw 16-bit mono PCM chunks:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;first_audible_ms&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;chunks&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;started&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sr&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;24000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;thresh&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mf"&gt;0.01&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="s2"&gt;"""ms from `started` (time.perf_counter() just before the request) to the first audible sound.
    Audible = a 10 ms window (1 ms step) with RMS above `thresh` on a -1..1 scale."""&lt;/span&gt;
    &lt;span class="n"&gt;win&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;step&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;sr&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sr&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;
    &lt;span class="n"&gt;pcm&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;rest&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;pos&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t_first&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;zeros&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dtype&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;float32&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;chunk&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;chunks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;t_first&lt;/span&gt; &lt;span class="k"&gt;is&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;t_first&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;perf_counter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                       &lt;span class="c1"&gt;# arrival of the first chunk&lt;/span&gt;
        &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rest&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;chunk&lt;/span&gt;
        &lt;span class="n"&gt;rest&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;                        &lt;span class="c1"&gt;# keep a split sample for next time&lt;/span&gt;
        &lt;span class="n"&gt;pcm&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;concatenate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;pcm&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;frombuffer&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;dtype&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;i2"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;astype&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;float32&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mf"&gt;32768.0&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="n"&gt;pos&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;win&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;pcm&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="n"&gt;w&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;pcm&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;pos&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="n"&gt;pos&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;win&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sqrt&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;**&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;thresh&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;t_first&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;started&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;pos&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;sr&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;     &lt;span class="c1"&gt;# arrival + the silence before the sound&lt;/span&gt;
            &lt;span class="n"&gt;pos&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;step&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use it with any streaming HTTP client, for example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;
&lt;span class="n"&gt;t0&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;time&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;perf_counter&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;requests&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="no"&gt;STREAM_URL&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Bearer {TOKEN}"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="no"&gt;BODY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;stream&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;first_audible_ms&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;iter_content&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4096&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;t0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it 20 times, from where your app runs, and look at the median and the 95th percentile, not the best run. (I tested the function against synthetic audio with a known 150 ms of silence; it reported 176 ms for a 30 ms arrival, within a few milliseconds of the expected 180, because the window sees the sound a little before its midpoint.)&lt;/p&gt;

&lt;h2&gt;
  
  
  How to get a lower number in your app
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Measure first audible sound, from your own machine or region.&lt;/strong&gt; Use the function above, not a vendor's headline.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run your calling code near the API.&lt;/strong&gt; Our servers are in AWS us-east-1. A 16.5 ms round trip is paid more than once on a cold request: for the TCP connection, the TLS handshake and the request itself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reuse connections.&lt;/strong&gt; Keep one pooled HTTP client alive instead of creating a client per request. In our numbers above, the case with brand-new connections was the slowest.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ask for the stream ahead of time.&lt;/strong&gt; Our streaming flow is two calls: ask for a stream (you get a one-use URL and token), then open it. The first call adds roughly 100 to 150 ms, once, so make it before you need the audio: when a field gets focus, on hover, or when the user starts typing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Take out hops.&lt;/strong&gt; Every proxy between the audio and the listener adds its own connection and its own delay. Where you can, give the browser the one-use stream URL and token so the audio goes straight to it, instead of relaying audio through your server. Keep your API key on your server; never put it in a page.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Start playing at the first chunk.&lt;/strong&gt; A player that waits for a full second of audio, or a whole sentence, throws away everything above. Check the buffer settings in your audio element or worklet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Look at the leading silence.&lt;/strong&gt; Two voices with the same first-byte time can differ by 100 ms or more of dead air before the sound. Compare voices by first audible sound.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pre-generate lines that never change.&lt;/strong&gt; Greetings, confirmations and menu prompts can be generated once and played from your own storage, with no generation delay at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Warm up.&lt;/strong&gt; The first request after a quiet period can be slow. On one path we saw a 95th-percentile cold tail of 4.8 seconds, so send a tiny request when your app starts rather than letting your first real caller pay for it.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What these numbers are not
&lt;/h2&gt;

&lt;p&gt;They are our own tests, in our own setup, on specific days. They are not a third-party benchmark and not a ranking, and your network will give you different numbers, which is exactly the point. If you try the function and get a result that disagrees with ours, I would like to hear about it.&lt;/p&gt;

&lt;p&gt;More detail, with the method: &lt;a href="https://speakvora.com/text-to-speech-latency" rel="noopener noreferrer"&gt;Speakvora's latency page&lt;/a&gt; and the &lt;a href="https://speakvora.com/docs" rel="noopener noreferrer"&gt;streaming docs&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://speakvora.hashnode.dev/why-time-to-first-byte-lies-about-voice-latency-and-how-to-get-a-lower-number" rel="noopener noreferrer"&gt;https://speakvora.hashnode.dev/why-time-to-first-byte-lies-about-voice-latency-and-how-to-get-a-lower-number&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Related
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Our November 2026 head-to-head with numbers for Speakvora, Amazon Polly and Google: &lt;a href="https://dev.to/eyeguidedev/text-to-speech-api-speed-test-speakvora-vs-amazon-polly-vs-google-november-2026-28dj"&gt;https://dev.to/eyeguidedev/text-to-speech-api-speed-test-speakvora-vs-amazon-polly-vs-google-november-2026-28dj&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Speed page with the full table and method: &lt;a href="https://speakvora.com/performance" rel="noopener noreferrer"&gt;https://speakvora.com/performance&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Text to speech API overview and pricing ($3 per million characters, 100,000 free): &lt;a href="https://speakvora.com/text-to-speech" rel="noopener noreferrer"&gt;https://speakvora.com/text-to-speech&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>api</category>
      <category>performance</category>
      <category>python</category>
      <category>webdev</category>
    </item>
    <item>
      <title>I looked up what nine speech APIs charge per million characters. Here is what repeated lines really cost.</title>
      <dc:creator>eyeguide-dev</dc:creator>
      <pubDate>Thu, 29 Oct 2026 03:17:00 +0000</pubDate>
      <link>https://dev.to/eyeguidedev/i-looked-up-what-nine-speech-apis-charge-per-million-characters-here-is-what-repeated-lines-really-mmg</link>
      <guid>https://dev.to/eyeguidedev/i-looked-up-what-nine-speech-apis-charge-per-million-characters-here-is-what-repeated-lines-really-mmg</guid>
      <description>&lt;p&gt;I make &lt;a href="https://speakvora.com" rel="noopener noreferrer"&gt;Speakvora&lt;/a&gt;, a speech API with offline voice bundles, so read this with that in mind. I tried to keep it fair.&lt;/p&gt;

&lt;p&gt;I wanted to know what text to speech costs at the price-list level, so I read the pricing pages of nine providers on October 8, 2026. All numbers below are list prices per million characters. They change, so check them before you decide.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Provider and model&lt;/th&gt;
&lt;th&gt;Per 1M characters&lt;/th&gt;
&lt;th&gt;At 10M characters&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Amazon Polly Standard, Google Cloud Standard&lt;/td&gt;
&lt;td&gt;$4&lt;/td&gt;
&lt;td&gt;$40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI tts-1, Deepgram Aura-1, Fish Audio, Inworld Flash&lt;/td&gt;
&lt;td&gt;$15&lt;/td&gt;
&lt;td&gt;$150&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI tts-1-hd, Rime Mist v3&lt;/td&gt;
&lt;td&gt;$30&lt;/td&gt;
&lt;td&gt;$300&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ElevenLabs Flash / Turbo&lt;/td&gt;
&lt;td&gt;$40&lt;/td&gt;
&lt;td&gt;$400&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ElevenLabs v2 and v3&lt;/td&gt;
&lt;td&gt;$80&lt;/td&gt;
&lt;td&gt;$800&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;At 10 million characters a month that is $40 at the cheap end and $800 at the expensive one. These models do not sound the same, so this is cost only.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part price lists hide
&lt;/h2&gt;

&lt;p&gt;Most apps say the same lines again and again: greetings, confirmations, error prompts. If you generate each line once and keep the file, you are not paying per play at all. A million characters is very roughly 15 to 20 hours of speech, so even at ElevenLabs v3 prices, 300 distinct 60-character prompts is 18,000 characters, about a dollar and a half.&lt;/p&gt;

&lt;p&gt;Where per-character billing really hurts is when the text is different every time, or when your code calls the API on every request instead of caching. If that is you, fix the caching before you switch providers.&lt;/p&gt;

&lt;h2&gt;
  
  
  When pay-once makes sense
&lt;/h2&gt;

&lt;p&gt;The other case is where you need audio to work with no internet, or you want a fixed price for a standard set of lines for one industry. That is what our one-time bundles are for (audio from $14). It is the only part where I would say we sell something the big providers do not.&lt;/p&gt;

&lt;p&gt;I put the full table, with the source link and the date I read each page, here: &lt;a href="https://speakvora.com/cheapest-text-to-speech-api" rel="noopener noreferrer"&gt;https://speakvora.com/cheapest-text-to-speech-api&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I would not claim
&lt;/h2&gt;

&lt;p&gt;Our voices are AI-generated and we are smaller than the big names, with fewer models and languages. Listen to samples before you pick on price.&lt;/p&gt;

&lt;p&gt;What do you pay per million characters today, and do you cache the audio?&lt;/p&gt;

&lt;h2&gt;
  
  
  Related
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Speed numbers for Speakvora, Amazon Polly and Google (November 2026): &lt;a href="https://dev.to/eyeguidedev/text-to-speech-api-speed-test-speakvora-vs-amazon-polly-vs-google-november-2026-28dj"&gt;https://dev.to/eyeguidedev/text-to-speech-api-speed-test-speakvora-vs-amazon-polly-vs-google-november-2026-28dj&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Current Speakvora prices and what each plan buys: &lt;a href="https://speakvora.com/pricing" rel="noopener noreferrer"&gt;https://speakvora.com/pricing&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Text to speech API overview ($3 per million characters, 100,000 free): &lt;a href="https://speakvora.com/text-to-speech" rel="noopener noreferrer"&gt;https://speakvora.com/text-to-speech&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>api</category>
      <category>webdev</category>
      <category>ai</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Add spoken status messages to a web app without exposing your API key</title>
      <dc:creator>eyeguide-dev</dc:creator>
      <pubDate>Thu, 08 Oct 2026 11:48:18 +0000</pubDate>
      <link>https://dev.to/eyeguidedev/add-spoken-status-messages-to-a-web-app-without-exposing-your-api-key-2bkh</link>
      <guid>https://dev.to/eyeguidedev/add-spoken-status-messages-to-a-web-app-without-exposing-your-api-key-2bkh</guid>
      <description>&lt;p&gt;Spoken confirmations ("Your order is ready for pickup") are easy to add, and easy to get wrong by shipping an API key in front-end code. Here is a small pattern that keeps the key on your server.&lt;/p&gt;

&lt;p&gt;I work on &lt;a href="https://speakvora.com/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=tutorial-add-speech-home" rel="noopener noreferrer"&gt;Speakvora&lt;/a&gt;, a speech API. It is in early access (free allowance first, then pay as you go), and this post is mainly about the pattern; the same shape works with any text-to-speech API that returns an audio link.&lt;/p&gt;

&lt;h2&gt;
  
  
  The idea
&lt;/h2&gt;

&lt;p&gt;The browser never talks to the speech API. It asks your server to speak a sentence; your server calls the API with the key and sends back only the audio URL.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Server route (Node 18+, Express)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;express&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="s2"&gt;"express"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;express&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;use&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;express&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;post&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/api/speak"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"https://speakvora.com/api/v1/speak"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"x-api-key"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;process&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;env&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="no"&gt;SPEAKVORA_KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content-type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;voice&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"af_heart"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"en"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;status&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;status&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;listen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Browser
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;say&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"/api/speak"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="s2"&gt;"content-type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;j&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;json&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nb"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;error&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;error&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;Audio&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;j&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;play&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// must follow a user gesture such as a click&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"#go"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;onclick&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;say&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Welcome back."&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. The errors worth handling
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;402 free_allowance_used&lt;/code&gt;: the free allowance is spent.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;429 rate_limited&lt;/code&gt;: wait &lt;code&gt;retry_after_seconds&lt;/code&gt; and retry.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;404 not_in_library&lt;/code&gt;: that voice only plays pre-recorded library lines; pick a live voice.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Things I would do next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Show a loading state. Phrases already in the library come back almost instantly; a brand-new sentence is generated and takes longer.&lt;/li&gt;
&lt;li&gt;Keep the returned URL and reuse it rather than asking for the same sentence again.&lt;/li&gt;
&lt;li&gt;Put a length limit and a rate limit on your own &lt;code&gt;/api/speak&lt;/code&gt; route, because it spends your quota.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Full version with the Python and cURL variants: &lt;a href="https://speakvora.com/guides/add-speech-to-a-web-app?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=tutorial-add-speech" rel="noopener noreferrer"&gt;https://speakvora.com/guides/add-speech-to-a-web-app?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=tutorial-add-speech&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Free key (no card): &lt;a href="https://speakvora.com/dashboard" rel="noopener noreferrer"&gt;https://speakvora.com/dashboard&lt;/a&gt;. Questions: &lt;a href="mailto:support@eyeguide.ai"&gt;support@eyeguide.ai&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Related
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Text to speech API overview and pricing ($3 per million characters, 100,000 free, no card): &lt;a href="https://speakvora.com/text-to-speech" rel="noopener noreferrer"&gt;https://speakvora.com/text-to-speech&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;API docs: &lt;a href="https://speakvora.com/docs" rel="noopener noreferrer"&gt;https://speakvora.com/docs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Speed numbers for Speakvora, Amazon Polly and Google (November 2026): &lt;a href="https://dev.to/eyeguidedev/text-to-speech-api-speed-test-speakvora-vs-amazon-polly-vs-google-november-2026-28dj"&gt;https://dev.to/eyeguidedev/text-to-speech-api-speed-test-speakvora-vs-amazon-polly-vs-google-november-2026-28dj&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>api</category>
      <category>javascript</category>
      <category>node</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
