For now, I may have found something in a quick experiment:
One concrete finding: the Audio tab may return only the first part of a conversion
I compared the KIARA Voice Studio Space with the upstream Seed-VC v2 implementation, then ran a small, separate test with the actual Seed-VC v2 model on a Colab T4. One difference in the application code looks particularly relevant to audio quality as experienced by the user: the Audio tab retrieves the first streamed output, while the Video tab waits for the completed audio.
In the test, a constructed 34-second source and an 8-second reference produced two generator outputs:
| Output |
Duration |
Completed audio available? |
| First streamed MP3 |
21.84 seconds |
No (None) |
| Final WAV |
33.99 seconds |
Yes |
So the first streamed piece was about 12.16 seconds shorter than the completed recording. This is not an inferred cutoff: I saved both outputs and checked their durations. It is also not a measurement from KIARA’s live ZeroGPU Space. I used public Seed-VC demo audio, repeated to make a longer source; it was a deliberately simple interface test, not a natural-speech quality study.
The connection to KIARA is this line in the audio conversion handler:
mp3_bytes, full_audio = next(generator)
The handler saves mp3_bytes as the downloadable MP3 and stops. In contrast, the video conversion handler already loops over the generator and keeps a non-None completed_audio value. Since the first output can be just a partial MP3, a multi-yield conversion can finish generating later audio without the Audio tab ever retrieving that completion.
This matters when interpreting user feedback: a recording that ends early may look like the voice model dropped the last words, even if the remaining speech was actually generated. That is an application-output question to resolve before diagnosing content preservation in the model.
I would not describe this as a universal “30-second limit” or claim that it happens for every input. The meaningful condition is whether this conversion produces more than one yield. Short inputs that finish in one yield may appear fine.
The simplest improvement, if the goal is a complete downloadable file
For a regular upload-and-download workflow, I would use the completion path that KIARA already has for video: consume the generator, keep the completed waveform, and return the finished WAV. The core idea, inside the existing handler after generator has been created, is roughly:
full_audio = None
for _mp3_chunk, maybe_completed in generator:
if maybe_completed is not None:
full_audio = maybe_completed
if full_audio is None:
raise ValueError("Conversion finished without completed audio")
sample_rate, waveform = full_audio
with tempfile.NamedTemporaryFile(suffix=".wav", delete=False) as f:
output_path = f.name
sf.write(output_path, waveform, sample_rate)
return output_path
This is illustrative code, not a tested drop-in patch. It assumes the existing Seed-VC v2 completion format of (sample_rate, waveform) and the application’s existing tempfile and soundfile imports. The surrounding GPU decorator, torch.inference_mode() context, exception handling and Gradio output need to remain consistent with the Space. The existing video handler is the best nearby implementation reference.
There are two reasonable product choices here:
- Complete file first: wait until conversion finishes and provide one full recording. This seems the least surprising behavior for a file-conversion tab.
- Early listening as a feature: stream the MP3 chunks as a genuine preview, and provide the final WAV separately for download. The upstream v2 app distinguishes streaming and completed outputs, and Gradio supports streaming audio from generators.
Either is valid. What seems worth avoiding is presenting the first preview chunk as though it were the finished file. There is also no need to manually concatenate the MP3 byte chunks when the wrapper already supplies a completed waveform; encoded chunks may have framing or overlap considerations.
One practical qualification: finishing the entire conversion may take longer than returning the first preview. The audio handler currently requests a 30-second ZeroGPU GPU duration, whereas the video handler requests 60 seconds. My isolated T4 test reached its first yield at about 16.9 seconds and the completed result at about 22.4 seconds, but those are not ZeroGPU production timings. A completed-file change should be checked against the actual Space’s execution budget, without treating early termination as a speed optimization.
A very small sanity check would be enough to distinguish these paths: convert a short clip and a longer clip with a clearly recognizable ending; compare their exported durations and whether the final sentence survives. If the first streamed MP3 is truncated while the completed WAV includes the ending, that isolates the output-consumption behavior. If the completed WAV also loses words, that calls for a different investigation.
Two other areas that may be useful for your feedback request
Video: total duration and lip synchronization are different things
KIARA extracts video audio, converts it, and replaces the video soundtrack. That is a sensible starting point for a short, single-speaker voice-conversion demo. One detail to be aware of is FFmpeg’s -shortest option in the merge command: it finishes output when the shortest output stream ends, so a replacement audio track shorter than the source video can shorten the resulting MP4. The FFmpeg documentation describes this behavior.
In a separate, synthetic test, replacing the sound of a four-second video with a two-second audio track produced an approximately two-second output. This checks the merge mechanism, not KIARA’s actual video-conversion quality.
If a video appears wrong, the fastest distinction is usually to compare the durations of the original MP4, extracted audio, converted WAV and final MP4:
- Video ends too soon: determine whether the converted audio is short or only the final muxed file is short.
- Video has the right length, but speech is shifted: check whether the offset is about the same at the beginning and end.
- Speech drifts progressively: inspect the middle and end; a single delay correction will not necessarily solve changes in rhythm or pauses.
- Mouth movements differ locally despite matching durations: that is a finer pronunciation/alignment issue, not something
-shortest itself fixes.
For a clean MVP, replacing the entire soundtrack may be the intended scope. Preserving music, ambience or other speakers is a separate, larger feature involving isolation and remixing; it need not be a prerequisite for this project.
Voice quality: separate what should stay the same from what may change
I have not measured KIARA’s speaker similarity, pronunciation quality or naturalness by listening to a representative set of converted samples. The T4 test above establishes an output-handling distinction, not an audio-quality score.
For actionable feedback, I would separate a few questions: Did the words and ending survive? Does the voice timbre resemble the reference speaker? Did the accent or pronunciation change in an intended way? Are there clicks, metallic artifacts or unstable pitch? Does the rhythm and duration still suit the original video?
Those dimensions can move independently. A convincing target voice can still mispronounce names; a fluent recording can have the wrong timing for video; and a missing ending in a partial streamed file is not proof of a model-level transcription failure. Two or three permission-cleared source/reference pairs, with one setting varied at a time, would already give more interpretable feedback than a single overall quality rating.
The deeper notes below are optional. The main concrete finding is the difference between the first streamed MP3 and the completed WAV, plus a small way to reuse KIARA’s existing video-side solution.
What the test establishes, and what it does not
Test setup and observed outputs
I used the upstream Seed-VC v2 wrapper at Git revision 51383efd921027683c89e5348211d93ff12ac2a8, FP16, 15 diffusion steps and a Colab T4. The source was made by repeating a publicly available Seed-VC demo WAV to 34.00 seconds; the reference came from a different public demo WAV and was 8.00 seconds long. The input was constructed to exercise a longer conversion; it was not a natural 34-second utterance or a test of language preservation.
Constructed source: 34.000 s
Reference: 8.000 s
Diffusion steps: 15
Generator outputs: 2
First yield:
elapsed inference time: 16.934 s
streamed MP3 duration: 21.838 s
completed-audio value: None
Second yield:
elapsed inference time: 22.413 s
completed WAV duration: 33.994 s
completed-audio value: present
Final WAV minus first MP3: 12.156 s
The first MP3 and final WAV were independently checked against the returned measurements. Model construction, checkpoint loading, queueing, uploads and browser delivery are not included in those inference times. A separate five-second input was prepared but not run; the test did not produce a measured short-versus-long pair.
The code retrieval also found that KIARA’s live Space files matched the previously inspected source snapshot, and that its v2 wrapper matched the upstream wrapper in normalized line content (with an end-of-line difference). This strengthens the inference that the key difference here lies in how the application consumes the generator, not in a specially modified voice-generation algorithm. It still does not prove that a particular live Space visitor has encountered an incomplete result.
Why next(generator) matters
A Python generator does not automatically run to its end when next() is called once. KIARA’s audio handler takes the first (mp3_bytes, full_audio) pair and saves the bytes. Its video handler instead iterates and retains the final waveform. In the observed two-yield case, the first full_audio was None and the second supplied the full waveform. The upstream v2 wrapper and demo app are useful references for the two output types.
This suggests three useful diagnostic boundaries:
- Model output: Were the words actually generated in the completed waveform?
- Application output: Did the handler retrieve that completed waveform, or only a preview chunk?
- Browser delivery: Did Gradio serve the intended final file and was it playable until the end?
Those questions should not be collapsed into a general “Seed-VC drops words” diagnosis. Conversely, a completed waveform with the expected duration does not itself demonstrate that every word was preserved correctly; content fidelity still requires listening or transcription comparison.
The upstream demo’s reference handling clips references beyond about 25 seconds, and its chunking behavior considers the combined source and reference duration. Consequently, input duration by itself is not a reliable universal predictor of exactly where yields occur. The conditional claim supported here is a first-yield-only handler can return incomplete audio whenever the wrapper emits multiple yields.
Implementation options and very cheap regression checks
Completed recording as the default
The least disruptive option is to align the Audio handler’s result consumption with the Video handler’s existing loop. Keep the current model and inference settings; replace only the first-yield-only output consumption and choose a completed file format that Gradio can serve. If the wrapper ends without a non-None completion, report a failure instead of silently returning an early preview.
Here is the relevant control flow again, written as a small reusable helper for clarity. It accepts the already-created generator and returns the wrapper’s completed audio tuple:
def take_completed_audio(generator):
completed = None
for _preview, maybe_completed in generator:
if maybe_completed is not None:
completed = maybe_completed
if completed is None:
raise RuntimeError("No completed audio returned")
return completed
This example does not manage the GPU context or file lifetime; it isolates the one behavior worth testing. The output writing shown earlier can then consume the returned (sample_rate, waveform). If a future wrapper version changes the contract, adjust the helper to its actual documented completion signal rather than assuming the current format forever.
If early playback is intentional
Streaming is a separate interface design, not an incorrect feature. Gradio describes it in its streaming-media guide: a generator yields playable pieces to an audio component configured for streaming. A streaming component and a download component can represent different products of the same conversion. Labels such as “Preview” and “Completed recording” are easier to interpret than one file whose completeness depends on chunking.
Manually joining MP3 bytes should not be the default way to assemble a completed result. Streamed byte chunks may not correspond to independent complete recordings; codec framing, overlap and padding can complicate naĂŻve concatenation. The wrapper already exposes the final waveform as its completion contract.
A deliberately short-clip-only tool is another legitimate design. In that case, make the input scope explicit and reject or handle conversions that need multiple outputs. The important distinction is between an intended input limit and unintended silent truncation.
Regression tests without another large model run
A tiny fake generator is enough to check the application’s logic. It can cover three cases:
# The values in these examples are placeholders for the handler contract.
final = (22050, fake_waveform)
single_yield = iter([(b"preview", final)])
multiple_yields = iter([(b"preview1", None), (b"preview2", final)])
no_completion = iter([(b"preview", None)])
assert take_completed_audio(single_yield) is final
assert take_completed_audio(multiple_yields) is final
# no_completion should raise RuntimeError
This requires no checkpoint, GPU or valid MP3 data because it only checks generator consumption. One real-model smoke test can confirm that the current wrapper still returns a playable WAV and that Gradio serves it. If output completion increases runtime, record time to final file, rather than only time to the first preview. That is the latency relevant to an upload-and-download workflow.
A short file and a multi-yield file with a recognizable ending are then sufficient for a small end-to-end regression check. It is not necessary to ask users to build an evaluation benchmark for this specific issue.
Video synchronization: a small diagnostic map
The current pipeline extracts the source video’s audio, converts it, writes a new WAV and merges it with the original video. For a single speaker with little background sound, that is a reasonable starting architecture. Whether it preserves the desired movie length, speech timing and soundtrack elements depends on the intended use case.
Four stages worth measuring
| File stage |
What it helps determine |
| Original MP4 |
Intended visual duration |
| Extracted WAV |
Whether audio extraction already changed the timeline |
| Converted WAV |
Whether voice conversion changed speaking duration |
| Final MP4 |
Whether merge and encoding changed playback duration or offset |
For an initial check, ffprobe can report each file’s duration:
ffprobe -v error -show_entries format=duration \
-of default=noprint_wrappers=1:nokey=1 input.mp4
Repeat with the two WAVs and the output MP4. Container-level duration is an initial check, not frame-accurate alignment; if a small discrepancy matters, inspect per-stream timestamps and start times as well.
KIARA’s merge uses -shortest. As documented, that stops when the shortest output stream ends. If the converted audio is shorter, a shorter final movie can be expected under this policy. In a synthetic FFmpeg test, a four-second movie with a two-second replacement soundtrack yielded a roughly two-second final movie. The test establishes the mechanism, not the frequency of this symptom in KIARA.
Choose the response based on the symptom
The whole MP4 ends early. Compare durations first. If the converted WAV is already short, focus on voice-conversion timing. If the WAV is full length but the MP4 is shortened, inspect stream mapping, timestamps and the merge policy. Removing -shortest can preserve more of the video in some arrangements, but it does not answer what should happen after the new speech ends: silence, preserved ambience, a warning or intentional trimming are all different product decisions.
The output is consistently early or late. Compare a clear speech onset near the beginning and end. If both have nearly the same offset, an audio start-time or timestamp issue is plausible. Verify the offset before adding delay; do not guess it from overall file duration.
The speech drifts more as the video continues. Compare landmarks at the start, middle and end. Rate or pause changes accumulate, and a single fixed delay generally cannot repair changing timing. If tight lip sync is essential, segment-level timing preservation or alignment may become relevant.
The length matches, but individual mouth movements do not. Voice conversion can change articulation, accents, phoneme timing or stress without changing the total duration. This is a more local alignment problem than -shortest; simply padding audio to match the video’s total length does not resolve it.
Background audio or other speakers vanish. The current whole-track replacement may be appropriate for a clean, single-speaker clip. Preserving music, room ambience or another speaker generally requires source separation, optional diarization and remixing. These are valuable possible extensions, not a reason to delay a simple demo whose scope is intentionally smaller.
A practical video feedback report can therefore be as simple as “ends early,” “constant offset,” “gradual drift” or “background audio lost,” preferably with the relevant source and converted durations. That is more actionable than asking the author to fix “sync” as one undifferentiated issue.
Voice-quality evaluation and related Seed-VC context
A single quality rating can combine several different effects. For a small project, a handful of permission-cleared recordings and a short listening note for each dimension can be more useful than adding a complicated benchmark immediately.
| Dimension |
A focused question |
| Content preservation |
Does the complete file retain the words and final sentence? |
| Speaker timbre |
Does the converted voice resemble the intended reference? |
| Pronunciation / accent |
Did names, consonants or language-specific sounds change? |
| Naturalness |
Are there pops, boundary clicks, metallic artifacts or pitch instability? |
| Prosody |
Are pauses, emphasis, emotion and speaking rate plausible? |
| Video suitability |
Does the converted speech fit important visual moments? |
Keep source and reference clips unchanged when comparing one inference setting. Save the completed WAV, not only a streamed preview, so the evaluation is not confused by an application-side missing ending. KIARA currently uses diffusion_steps=15, which is a workable interactive-demo setting, not evidence of incorrect tuning. If exploring the upstream choices, change one parameter at a time and listen for the actual intended property.
If a completed output still seems to omit words, speech transcription or word-error-rate comparison can help localize content errors. If speaker identity is disputed, speaker embeddings may supplement listening. If rhythmic drift is the actual complaint, alignment tools are more relevant than a generic similarity score. None of those analyses has been performed for KIARA here, and no single automated metric should be treated as a complete quality verdict.
The archived upstream Seed-VC repository has evaluation material and historical discussions such as accent transfer and an unexpected accent in output. They are useful as related symptoms and testing vocabulary, not evidence that KIARA has those same causes or that the archived project will provide a fix. In particular, model-level missing words in a complete recording and application-level truncation of a stream are different problems.
For the user’s intended output, it can also help to distinguish timbre conversion from style or accent transfer. Matching a reference speaker’s vocal identity does not necessarily imply that every pronunciation pattern or delivery style should be copied. In video, preserving source phrasing and timing may matter more than transferring all stylistic characteristics. These are product choices worth clarifying only when a concrete listening example makes them relevant.
Optional operational notes and a small-model baseline
ZeroGPU completion time
The examined Space requests @spaces.GPU(duration=30) in its audio handler and duration=60 in its video handler. A handler that waits for the completed WAV may consume more of its allotted GPU time than one that returns a preview. The observed T4 inference timings (about 16.9 seconds to first output and 22.4 seconds to completion) are from a separate machine and artificial source, so they are not a measurement of ZeroGPU queueing, startup costs or user-facing latency. If longer inputs become slow, possible responses include a documented short-clip scope, a separate longer-file path or revised preview/completion presentation. The first step is to time a complete conversion in the actual deployment.
Model placement
The examined code constructs the model at startup and moves it to CUDA and sets up autoregressive caches inside the GPU-decorated handlers. The ZeroGPU guide discusses startup-time CUDA placement under its special initialization scheme. If repeated transfers or cache setup dominate a measured run, that guidance could offer an optimization to investigate with the exact library and checkpoint versions. I would keep it separate from the generator issue: moving a model earlier cannot make next(generator) consume later yields. No ZeroGPU performance improvement has been measured here.
Generated-file lifetime
Gradio serves output files through its documented file-access and cache behavior; cache deletion settings may also be relevant. KIARA’s helpers include temporary output paths that remain after their creation, including NamedTemporaryFile(delete=False) and tempfile.mktemp() patterns. It is worth ensuring that temporary files are created securely, remain available long enough for a user to receive the result, and are eventually cleaned up. This is preventive engineering, not an observation of anyone’s files being exposed. The original post already notes that users should process voices they own or are permitted to use.
KIARA-VC Mini later
For the planned KIARA-VC Mini experiments, keeping a tiny, fixed, permission-cleared collection of source/reference pairs would make later comparison easier. Log complete-file duration, last-word preservation, intelligibility, perceived target timbre, completed-call latency and memory use alongside the model version. The Seed-VC repository includes older compact-model work, but an older small variant is not simply an identically trained scaled-down v2. A smaller model might trade memory and latency against quality or robustness. Using the existing finished-output path as a stable baseline helps prevent application changes from obscuring later model comparisons.
What I would try first
The highest-information, lowest-complexity change seems to be returning the final waveform in the Audio tab, much as KIARA already does for video. Streaming preview can still be offered as an explicit option if that is part of the intended experience. Once the downloaded audio reliably contains the full result, the other feedback categories become easier to evaluate: a couple of focused listening comparisons for voice quality, and a four-duration check for video synchronization.
I cannot draw a conclusion here about KIARA’s live ZeroGPU performance, actual lip-sync accuracy or overall voice quality. The first-yield-versus-completed-output difference, however, is reproducible in the upstream v2 code path and appears to offer a small, practical improvement without changing the voice model or the project’s broader direction.