AutoSkill 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.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-script-to-loop-audio-and-save-as-wav" ~/.claude/skills/ecnu-icalk-autoskill-python-script-to-loop-audio-and-save-as-wav && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/python-script-to-loop-audio-and-save-as-wav/SKILL.mdsource content
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
- The script must load an existing audio file from a specified path.
- The script must repeat the audio samples rapidly to create a constant, continuous sound for a specified duration.
- The script must save the processed audio as a WAV file.
- The script must NOT play the audio; it must only save it to disk.
- 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