<?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: ivyjsu</title>
    <description>The latest articles on DEV Community by ivyjsu (@ivyjsu).</description>
    <link>https://dev.to/ivyjsu</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%2F4046036%2F99a3c25f-0999-4ad3-bb21-7daa38dd5328.png</url>
      <title>DEV Community: ivyjsu</title>
      <link>https://dev.to/ivyjsu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ivyjsu"/>
    <language>en</language>
    <item>
      <title>Making Two TTS Voices Sound Like an Actual Conversation</title>
      <dc:creator>ivyjsu</dc:creator>
      <pubDate>Fri, 24 Jul 2026 19:20:55 +0000</pubDate>
      <link>https://dev.to/ivyjsu/making-two-tts-voices-sound-like-an-actual-conversation-3hn7</link>
      <guid>https://dev.to/ivyjsu/making-two-tts-voices-sound-like-an-actual-conversation-3hn7</guid>
      <description>&lt;p&gt;Rendering a document as a two-host podcast is not just alternating two TTS voices line by line. Do that and you get something that sounds like two people reading unrelated scripts in the same room.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem is prosody, not voices
&lt;/h2&gt;

&lt;p&gt;Human conversation carries information in timing. A reply that arrives instantly reads as agreement. A short gap reads as consideration. Speakers overlap slightly at turn boundaries. Pitch tends to fall at the end of a statement and rise before a handoff.&lt;/p&gt;

&lt;p&gt;Concatenated TTS has none of this. Each utterance is synthesised in isolation with neutral prosody and identical gaps, and the result sits in an uncanny valley — clearly speech, clearly not conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things that measurably help
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Vary inter-turn gaps by turn type.&lt;/strong&gt; Not one fixed pause:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Agreement or continuation: short, 150-250ms&lt;/li&gt;
&lt;li&gt;Topic shift: longer, 400-600ms&lt;/li&gt;
&lt;li&gt;Answer to a question: short, the responder was already primed&lt;/li&gt;
&lt;li&gt;After a complex explanation: longer, it reads as processing time&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A lookup keyed on turn type gets you most of the way, and it is cheap to implement.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Write handoffs into the script.&lt;/strong&gt; The transition matters more than the voice. "Right — so what happens when the file is large?" carries turn-taking structure that "The file size limit is 10MB" does not. This is a scripting problem before it is an audio problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do not centre both voices.&lt;/strong&gt; A few degrees of stereo separation makes two speakers legible to the ear. Hard-panning is disorienting on headphones; subtle offset is not consciously noticed but does the work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Chunking is where quality actually dies
&lt;/h2&gt;

&lt;p&gt;Most TTS APIs have input length limits, so long documents get split. Naive splitting at the limit cuts mid-sentence, and the resulting prosody discontinuity is jarring — the pitch contour restarts mid-thought.&lt;/p&gt;

&lt;p&gt;Split on &lt;strong&gt;semantic boundaries&lt;/strong&gt; — paragraph, then sentence — and never mid-clause. If a single sentence exceeds the limit, split at a comma and accept a small artefact rather than a mid-word cut.&lt;/p&gt;

&lt;h2&gt;
  
  
  Multilingual complicates the pause table
&lt;/h2&gt;

&lt;p&gt;Turn-taking norms are not universal. Japanese conversation tolerates longer pauses than English; treating a 600ms gap as "awkward" is an English-specific assumption. If you support multiple languages, the pause table needs to be per-language, not global.&lt;/p&gt;

&lt;p&gt;I build this into &lt;a href="https://getduocast.com" rel="noopener noreferrer"&gt;DuoCast&lt;/a&gt; — paste text, a PDF, or a URL, get a two-host podcast with the conversational layer handled.&lt;/p&gt;

&lt;h2&gt;
  
  
  Caveat
&lt;/h2&gt;

&lt;p&gt;None of this makes synthetic conversation indistinguishable from a real recording. It moves it from "obviously robotic" to "pleasant enough to listen to on a commute," which is a lower but more achievable bar.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>audio</category>
      <category>python</category>
      <category>nlp</category>
    </item>
  </channel>
</rss>
