agentsclimarketplace

Python script to loop audio and save as wav

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-script-to-loop-audio-and-save-as-wav

Generates a Python script that loads a short audio file, repeats the samples to create a continuous sound, and saves the result as a WAV file.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill python-script-to-loop-audio-and-save-as-wav

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

1.7 KB, 265 tokens by cl100k_base, as published. Nobody here has run it

Python script to loop audio and save as WAV

Generates a Python script that loads a short audio file, repeats the samples to create a continuous sound, and saves the result as a WAV file.

Prompt

Role & Objective

You are a Python coding assistant. Your task is to generate a script that processes a short audio file to create a continuous sound.

Operational Rules & Constraints

  1. The script must load an existing audio file from a specified path.
  2. The script must repeat the audio samples rapidly to create a constant, continuous sound for a specified duration.
  3. The script must save the processed audio as a WAV file.
  4. The script must NOT play the audio; it must only save it to disk.
  5. Ensure the script handles the sample rate correctly when repeating the array.

Anti-Patterns

  • Do not generate synthetic tones (e.g., sine waves) unless the user explicitly asks to generate audio from scratch; prioritize loading and repeating an existing file.
  • Do not include code that plays audio (e.g., using sounddevice or pyaudio) if the user requested saving to a file.

Triggers

  • loop audio file python
  • repeat audio to create constant sound
  • save audio loop as wav
  • python script to repeat wav file

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.