Skip to main content

Voice Analysis Process and Results

Introduction​


This article outlines the process of converting the audio from a broadcast video into a dialogue list that specifies “who said what, when, in what language, and what they said.” This dialogue list serves as the source material for the subsequent steps of subtitle proofreading, plot summarization, and scene searching.

The process can be summarized as follows:

  1. Extracting audio from the video
  2. Identifying speakers (who spoke and when)
  3. Group speech segments into windows of approximately 30 seconds
  4. Transcribe each segment and assign a timestamp to each word
  5. Assemble the dialogue line by line

image

The four models used for speaker separation, transcription, word-timestamp alignment, and the second transcription run are all deployed on a single GPU, using approximately 18GB of memory. They are loaded once when the service starts and run continuously, with GPU tasks processed sequentially, one at a time.


1. Audio Extraction​

  • Extract only the audio from the video and save it as a single 16 kHz channel. All subsequent models accept this format.
  • If the same video has already been received and the file size and modification timestamp match, it is not downloaded again.
  • Frames at 1-second intervals, used for scene analysis, are also extracted at this stage.

2. Speaker Segmentation​

  • Use the open-source library pyannote to segment speakers.
  • The result is a timeline listing, in chronological order, “Speaker X spoke from X seconds to Y seconds.”
  • This timeline also indicates where the speech segments occur. Therefore, there is no separate step for identifying speech segments.
  • If two people speak simultaneously, the segments will overlap.

image

3. Grouping Speech Segments into Chunks​

We do not feed the entire audio clip into the transcription model. When we fed in long audio clips containing a mix of music and silence, two problems arose. The model responsible for aligning word timings incorrectly assigned words to musical segments, causing the timings to be scattered by tens of seconds, and the transcription model repeated the same characters during silent intervals. Once we isolated and fed in only the speech segments, both problems disappeared.

Conversely, if speaker segments are fed one at a time, there is insufficient context. When presented with just a single 0.3-second “yes,” the model incorrectly identified the language as Russian or Japanese. Therefore, speaker segments are grouped into windows of around 30 seconds. The window closes in two cases:

  • When adding the next segment would exceed 30 seconds: The window closes at the end of the current segment—that is, where the speech stops. We do not cut off speech mid-sentence.
  • When there is a gap of more than 3 seconds until the next segment: The window is closed at that point to avoid including music or silence within it.

The 30-second limit is a target, not a strict cutoff. If a single person speaks continuously for more than 30 seconds, that segment is left intact without being split.

image

4. Transcription and Word Timestamping​

  • For each clip, Qwen3-ASR (1.7B) transcribes the audio into text, and Qwen3-ForcedAligner (0.6B) assigns start and end timestamps to each word.
  • The timestamps measured within each window are combined with the window’s start time to convert them to timestamps relative to the entire video.
  • The language is determined based on the genre.
    • Sports, dramas, and variety shows are mostly in Korean. Since excited shouts are sometimes incorrectly identified as Chinese by the automatic system, the language is fixed as Korean.

    • For documentaries and news, since foreign-language interviews are actually mixed in, the language is determined automatically.

5. Dialogue Assembly​

Combine the transcribed text, the timestamps for each word, and the speaker timeline to create individual lines of dialogue.

  1. For each word, assign the speaker whose timing overlaps the most. Words that fall between speaker segments follow the speaker of the adjacent word.
  2. If another speaker interrupts very briefly in the middle of a sentence (fewer than two words or less than 0.5 seconds), it is considered an incorrect split and is absorbed into the preceding or following speaker’s segment.
  3. Break the line where the speaker changes. If the same speaker continues speaking, keep the line together; however, if it exceeds 10 seconds, break it at the next punctuation mark.
  4. The start time of a line is determined based on the largest time block among the words in that line. Even if the alignment model groups several words with widely spaced timestamps, the entire line is not shifted.
  5. Lines identified as containing an unprocessable language are discarded. Lines with an empty language field are retained to preserve Korean data.

image

The resulting line of dialogue contains a number, start and end times, speaker, language, and the dialogue itself.

image

6. Second Transcription​

Certain segments of the dialogue list are transcribed once more using faster-whisper (large-v3). This result does not alter the initial transcription. It is used solely as a “second opinion” for reference during the subsequent subtitle correction step.

  • Genre: For news and documentaries, the second set of results already matches the first set for the most part (96% and 84%, respectively), so there is no benefit to running them through the model again. We only run the model on genres where the first set frequently makes mistakes.
  • Segments: Do not submit segments shorter than 3 seconds, segments with fewer than 12 characters, or segments where Korean makes up less than half of the text. This is because if the model is given short or meaningless audio, it will invent words that aren’t there.
  • Name Hints: From the list of character names, we select only those that appear most frequently in the first-pass dialogue—limited to 150 characters—and provide them as hints. If the name is correct, the surrounding dialogue will also be generated correctly.
  • Quality Assessment: Each result is assigned a rating, such as “duplicate,” “low confidence,” or “repeats the hint verbatim.” Results with such ratings are discarded, and the corresponding line uses the original first-pass dialogue verbatim.

Conclusion​

Through this process, the broadcast audio is transformed into a list of lines tagged with scene, speaker, and dialogue. This list, along with the results of the second transcription, proceeds to the subtitle proofreading stage, where it undergoes terminology correction and the removal of phantom lines to produce the final subtitles.

Reference Link)

This article presents the results of research conducted with support from the Ministry of Science and ICT and the National IT Industry Promotion Agency’s “2026 Open-Source AI and Software Development and Utilization Support Project.”