Skip to content

media-use tts.mjs leaves one hf-txt-* temp directory per synthesized line #5466

Closed

Description

@monkeyhut

Environment: skills installed from heygen-com/hyperframes on 2026-10-10, CLI 0.8.145.

skills/media-use/audio/scripts/lib/tts.mjs → writeTmpText() creates mkdtempSync(join(tmpdir(), "hf-txt-")) for every synthesized line (ElevenLabs and Kokoro paths) and never removes it. A 40-line voiceover leaves 40 directories in the temp folder per run.

Fix: remove the directory after the synthesis call returns (e.g. rmSync(dirname(p), { recursive: true, force: true }) in a finally), as transcodeToWav() already does for its own temp dir.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions