The Problem: Unreliable Speech Synthesis in Character Videos
In the previous installment, we established a character video pipeline, only to hit a significant roadblock. The service generating the video was also synthesizing the speech, leading to unreliable Turkish pronunciation. This resulted in six clips being discarded due to poor audio quality.
The visual aspects were satisfactory: the character was consistent, lighting was good, and camera movement felt natural. The core issue lay with the spoken word – specifically, the mouth movements not matching the audio, and the audio itself being flawed.
Specific Pronunciation Errors Encountered
The problems ranged from simple repetition to complete semantic shifts:
- Word Repetition: Phrases like "bilim insanları ile birlikte de bilim insanları" (scientists together with scientists) were awkwardly repeated.
- Self-Rewriting Text: The model would spontaneously rephrase sentences. For instance, a sentence containing "insülin" (insulin) was rewritten into a more cautious, scientific tone, altering the original meaning.
- Mispronunciation of Foreign Words: Loanwords or foreign terms were mangled. "Eureka" became "ürika," a phonetic approximation that missed the mark.
- Keyword Omission/Compression: Critical keywords could be swallowed by the synthesis process. The word "yayla" (plateau/highland) was compressed into a mere 0.26 seconds, making it sound like "aile" (family) to the listener.
To maintain a baseline quality, the team employed the faster-whisper large-v3 model. They transcribed each clip, and any clip where the word probability dropped below 0.80 was rejected. This acted as a rudimentary quality gate, but it couldn't solve the fundamental issue of the speech synthesizer's inherent unreliability.

The Solution: Extracting Audio from the Model
The breakthrough came with a simple yet effective strategy: instead of relying on a separate speech synthesis service that was failing, the team decided to extract the audio directly from the underlying language model that was generating the text. This meant the model responsible for understanding and generating the script was now also responsible for its phonetic output.
This approach is akin to asking a playwright not only to write the script but also to perform the lines. By keeping the audio generation within the same model that dictates the content, the system ensures that the spoken words directly correspond to the generated text. This eliminates the disconnect between the visual representation (lip-syncing) and the audio content, and crucially, it addresses the pronunciation errors.
Re-establishing Deterministic Pronunciation
The goal was to achieve deterministic pronunciation – ensuring that the same input text consistently yields the same, correct pronunciation. By leveraging the model's internal phonetic capabilities, the team could achieve this.
The process involved:
- Generating the character animation based on the script.
- Extracting the audio output directly from the language model that generated the script.
- Ensuring the lip-sync was driven by this extracted, model-native audio.
This method bypasses the problematic external speech synthesizer entirely. The model, trained on vast amounts of text and likely phonetic data, could produce more accurate Turkish pronunciations for both common and uncommon words, including loanwords.
The surprise here wasn't the complexity of the solution, but its simplicity and effectiveness. By returning the audio generation task to the core model, they sidestepped the unreliable third-party service and regained control over the spoken word.
Implications for Character Video Production
This solution directly addresses a critical pain point in AI-driven character video generation: the fidelity of spoken language. For creators and developers working with AI avatars, ensuring accurate and natural-sounding speech is paramount for audience engagement and believability.
By obtaining audio directly from the model, the pipeline becomes more robust. It reduces dependencies on external services that may have varying quality levels or language support. This allows for greater control over the final output, ensuring that the intended message is delivered clearly and accurately, without the jarring errors that plagued the earlier attempts.
The success of this approach means that future iterations of character video generation can focus on refining the animation and delivery, rather than constantly battling fundamental audio inaccuracies. It opens the door for more sophisticated character performances where the voice truly matches the visual representation and the intended script.
