A picture occupies space; media also unfolds in time
A still image can be judged one frame at a time. Speech, sound, music, and video are sequences: changing their order or timing changes their meaning. A media generator must therefore create plausible content now while preserving rhythm, identity, motion, and structure across later moments.
Local quality is not enough. A clear speech sound can still form an unnatural sentence; a beautiful video frame can still flicker when placed beside the next frame; a pleasant musical bar can still lead nowhere. Temporal generation combines short-range detail with long-range consistency.
Audio, Speech, Music & Video Generation in Simple Words
Generating still images is about spatial harmony (where eyes and noses sit). Generating audio and video introduces a tyrannical second dimension: Time. A speech synthesizer must preserve accent, breath, and emotion across words without robotic pitch glitches. A video model must ensure an actor's shirt doesn't morph from blue to plaid three frames later. Factorized spatial-temporal attention anchors consistency frame-by-frame and beat-by-beat!
Spectral Encoding
Transforms 1D waveforms into 2D Mel-Spectrograms
Temporal Attention
Tracks consistency across video frames & audio bars
Factorized 2D+1D
Saves >90% compute compared to full 3D attention
Neural Vocoders
HiFi-GAN & decoders render studio-grade waveform/frames
Figure 1 — Spatial coherence versus temporal coherence
An image model coordinates features inside one frame. A temporal model must also carry state across t1, t2, t3, and later positions so objects, timing, and meaning remain connected.
Still image
Relationships must be coherent across height and width in one output.
Temporal sequence
t1
Speaker begins / object at left
t2
Sound continues / object moves
t3 …
Meaning, identity, rhythm, and motion persist
Each moment must make sense alone and as a continuation of earlier moments.
A. Speech and audio: from pressure changes to useful representations
A digital waveform is a sequence of sampled air-pressure measurements. The sample rate says how many measurements are stored each second. Higher rates can represent faster changes in the signal but create longer sequences.
A spectrogram reorganizes sound into a time-by-frequency picture: horizontal position represents time, vertical position represents frequency, and cell intensity represents energy. Some models process waveforms or spectrograms directly; others use learned audio tokens or compressed latent representations. These units reduce sequence length or expose useful patterns, but they must eventually be decoded into sound.
Figure 2 — Audio can reach a generator through several model-facing representations
The full chain is a teaching map, not a rule that every model uses every stage. Some systems model waveforms directly; others use spectrograms, learned continuous features, discrete audio tokens, or combinations.
Sound pressure is sampled into a waveform whose horizontal axis is time and vertical axis is amplitude. A possible transformation reorganizes it into a spectrogram with time and frequency axes. A learned compressor or tokenizer can produce a shorter sequence of model-facing audio units. A generative model predicts or reconstructs a representation, and an audio decoder produces a waveform. A count strip shows that sixteen thousand samples per second times two seconds equals thirty-two thousand waveform values.
In text-to-speech, the text is data-supplied conditioning. A model also needs decisions about voice identity and prosody—pace, emphasis, pitch, and rhythm. The same words can sound like a question, warning, or joke depending on those temporal choices.
Worked representation example: sample rate × duration
Suppose an audio format uses 16,000 samples per second. This sample rate is chosen by a developer or dataset format, not learned by the model. Take an example duration of 2 seconds. The number of waveform values is calculated by multiplication:
The seconds cancel, leaving 32,000 sampled values for one mono clip. A 10-second clip at the same rate would contain 160,000 values. This rapid growth is one reason models often learn compressed acoustic representations or tokens instead of performing every high-level operation on raw samples.
B. Music: local sound must serve a larger structure
Music can be represented symbolically as notes, durations, instruments, tempo, and control events, or as audio containing the final timbre and performance. Symbolic generation makes musical events explicit but needs a renderer or performer to become sound. Audio generation can model texture and expression directly but works with far denser sequences.
A useful music generator must manage beat-level timing, phrase-level repetition and variation, and song-level development. Text, genre, instrument, melody, or reference audio may act as conditions, but “in the style of…” is an ambiguous signal and raises rights questions. A clip can sound convincing for five seconds while lacking a coherent beginning, development, and ending.
C. Video: generate appearance and change
Video is a sequence of frames, but independently generating attractive frames produces flicker. Temporal features must represent motion and cause-and-effect while keeping a person's identity, an object's shape, lighting, and background stable where the scene requires it.
Text-to-video starts from a language condition and a random or learned spatiotemporal representation. Image-to-video also receives a reference frame, so the system must preserve its identity and composition while inventing plausible motion. If audio is generated or supplied, events must line up: footsteps with contact, speech with lip movement, and music with editing rhythm.
Video Generation Compute Scaling: Full 3D Attention vs Factorized 2D+1D
Full 3D attention scales quadratically with frames $O(F^2 \cdot H^2 W^2)$; factorized spatial-temporal attention reduces memory by >90%!
Compare the three media families
| Medium | Possible representation | Typical conditioning | Main consistency challenge | Useful evaluation dimensions |
|---|---|---|---|---|
| Speech | Waveform, spectrogram, acoustic features, or learned audio tokens | Text, speaker identity, language, prosody controls | Pronunciation, voice stability, natural timing, long-sentence meaning | Intelligibility, speaker similarity with consent, naturalness, word error rate where a transcript exists |
| Music | Symbolic events, waveform, spectrogram, or compressed audio representation | Text, genre, instruments, melody, rhythm, reference audio | Rhythm plus phrase- and song-level structure | Audio quality, prompt adherence, musical coherence, originality, human preference |
| Video | Frames, spatiotemporal features, or compressed video latents | Text, first image, reference clip, camera or motion controls | Motion, identity and object persistence, scene continuity, audio sync | Frame quality, temporal consistency, motion plausibility, prompt adherence, synchronization |
Summary / Key Takeaways
- Speech, music, and video are temporal sequences, so order and timing carry meaning in addition to local appearance or sound quality.
- A waveform stores sampled pressure measurements, while a spectrogram reorganizes sound by time, frequency, and energy.
- At 16,000 samples per second, a two-second mono clip contains 32,000 waveform values, motivating compressed audio representations or tokens.
- Music generation must connect beat-level detail with phrase- and song-level structure; symbolic and audio representations offer different trade-offs.
- Video generation must preserve motion, identity, objects, lighting, scene continuity, and—when present—audio synchronization across frames.
- Local realism does not guarantee coherent speech, a complete musical composition, stable video, authorized identity use, or responsible output.