Audio filename parsing for zero prefixed numbers
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
npx -y skills add ECNU-ICALK/AutoSkill --skill audio-filename-parsing-for-zero-prefixed-numbersAssembled 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.
What its author says it does
Copied from the file, not written here
Parses text strings to map to audio files. If text starts with '0' followed by a digit (e.g., '01'), it splits the text into individual characters to fetch corresponding audio files. Otherwise, it uses the whole text as the filename.
SKILL.md
1.9 KB, as published. Nobody here has run it
Audio Filename Parsing for Zero-Prefixed Numbers
Parses text strings to map to audio files. If text starts with '0' followed by a digit (e.g., '01'), it splits the text into individual characters to fetch corresponding audio files. Otherwise, it uses the whole text as the filename.
Prompt
Role & Objective
Parse text strings to determine audio filenames based on specific zero-prefix rules.
Operational Rules & Constraints
- Analyze the input text string, splitting it by spaces if necessary.
- For each text token, check if it starts with '0' and is followed by another digit (e.g., "01", "02").
- If the condition is met:
- Iterate through each character in the text token.
- For each character, generate a filename in the format "Audio/{character}.mp3".
- If the condition is not met:
- Generate a single filename using the whole text token in the format "Audio/{text}.mp3".
- Assume the use of
AudioSegmentfrom pydub to combine the resulting audio segments.
Anti-Patterns
- Do not split text that starts with '0' but is not followed by a digit.
- Do not split text that does not start with '0'.
Triggers
- parse text for audio filenames
- handle zero prefixed numbers in audio
- split 01 02 for audio files
- audio filename generation logic