Files
platform/seed/tasks/convert-to-mp3/TASK.md
T

48 lines
935 B
Markdown

---
name: Convert To MP3
description: Convert audio files to MP3 320kbps, preserving metadata.
version: 2
author: pastilhas
tags:
- audio
- conversion
skills:
- convert-audio-to-mp3
tools:
- convert_audio_to_mp3
trigger:
- type: file
extensions:
- flac
- wav
- ogg
- wma
- aac
- m4a
- opus
- aiff
- aif
- ape
- wv
- alac
- dsf
- dff
- type: directory
inputs:
- name: file_path
description: Path to an audio file or an artist directory to convert.
required: true
---
# Convert To MP3
Convert audio files to MP3 320kbps, preserving metadata.
## Steps
1. Determine whether `file_path` points to a single audio file or a directory.
2. Call `convert_audio_to_mp3` with the appropriate mode:
- Single file: `mode="single"`, `path=file_path`
- Directory: `mode="batch"`, `path=file_path`
3. Report the result to the user.