tools and skills, etc in the containers
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
---
|
||||
name: Convert To MP3
|
||||
description: Convert audio files to MP3 320kbps, preserving metadata.
|
||||
version: 1
|
||||
version: 2
|
||||
author: pastilhas
|
||||
tags:
|
||||
- audio
|
||||
- conversion
|
||||
skills:
|
||||
- convert-audio-to-mp3
|
||||
tools:
|
||||
- convert_audio_to_mp3
|
||||
trigger:
|
||||
- type: file
|
||||
extensions:
|
||||
@@ -39,6 +41,7 @@ Convert audio files to MP3 320kbps, preserving metadata.
|
||||
## Steps
|
||||
|
||||
1. Determine whether `file_path` points to a single audio file or a directory.
|
||||
2. If it is a single file, use the Convert Audio To MP3 skill's single-file script to convert it. The source file is deleted on success.
|
||||
3. If it is a directory, use the Convert Audio To MP3 skill's batch script with the directory name as the artist name. All audio files within subdirectories are converted recursively.
|
||||
4. Verify the conversion completed successfully and report the result to the user.
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user