EchoScript: Script-Aware Music Generation

BSc dissertation (Heriot-Watt, 2024–2025): fine-tuning MusicGen to score film scenes from their scripts. Graded First Class; published in the AAAI Symposium Series.

Full title: Script-Aware Fine-Tuning for Cinematic Music Generation. BSc (Hons) Computer Science (Artificial Intelligence) dissertation, Heriot-Watt University, Dubai. Supervisor: Kayvan Karim. Graded First Class.

Stack: PyTorch, Hugging Face, MusicGen.

Problem

Generative music models can produce plausible audio, but soundtrack work needs more: melodic coherence, thematic continuity, and music that follows the emotional arc of a scene. EchoScript asks whether conditioning on the film script itself can close that gap.

Approach

  • Fine-tuned MusicGen, a transformer audio model, on a curated dataset annotated with genre, mood, instrumentation, tempo and narrative context.
  • Conditioned soundtrack generation on film scripts, so that the music follows the story rather than a short text prompt.

Evaluation

  • Objective: lower Fréchet Audio Distance than the base model (4.37 vs. 4.55).
  • Human: in structured listening tests, participants preferred the fine-tuned model for both musical quality and narrative alignment.

Using both an automatic metric and listeners, and seeing where they agree, is the thread that runs from this project into my later work on evaluation.

The work was published as (Sartaee & Karim, 2025).

References

2025

  1. EchoScript: Enhancing AI Music Generation for Cinematic Scoring via Script-Aware Fine-Tuning
    Mohammad Kasra Sartaee and Kayvan Karim
    In Proceedings of the AAAI Symposium Series, Aug 2025