Audio Editing Toolset#
Generated byAIThis toolset provides tools for reading and creating audio files within the current directory.
read_audio_file#
Reads the content of a specified audio file in the current directory and returns it as a base64 encoded data URL string.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
file_path |
String | Yes | The relative path to the audio file to read. |
Notes#
- Supported audio formats are WV and MP3
- The tool ensures the file is within the current directory and is a valid audio file.
write_audio_file#
Writes an audio file from base64 encoded audio data at the specified path. Ensures the file is created within the current directory and does not overwrite existing files unless requested.
Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
file_path |
String | Yes | The relative path where the audio file will be created. |
image_data |
String | Yes | The base64 encoded audio data as a string. Supported audio formats are “wav” and “mp3. |
overwrite |
Boolean | No | Set to true to overwrite existing file; default is false. |
Notes#
- The tool ensures the file is created within the current directory and does not overwrite existing files.
- Supported audio formats are WAV and MP3