Audio Generation: Automatically Select dlazy CLI Audio/TTS Models Based on Prompts

Introduction

When performing voiceovers, narration, or sound effects within an Agent, the common practice is to manually write dlazy sub-commands, select TTS or music models by consulting documentation, and then handle API keys and output paths. With numerous models and varying parameters, iterative trial and error in the conversation can slow down the workflow. The following introduces audio generate on SkillHub (Coordinate: @user_f95f21b8/dlazy-audio-generate): it consolidates “selecting a model based on natural language requirements and using the dlazy CLI to generate audio” into a single skill instruction, allowing the Agent to automatically select and execute based on the prompt.

What is this

audio generate is a community-sourced (community) Agent Skill, currently at version 1.0.9, categorized under design-media. The official description is: Audio generation skill. Automatically selects the best dlazy CLI audio/TTS model based on the prompt.

It is designed for coding Agents that support the standard SKILL.md (such as Cursor, Claude Code, Codex, etc.). It does not replace the dlazy service itself but operates at the skill layer to instruct the Agent: when encountering audio/TTS requirements, it should select the appropriate dlazy audio capability based on the prompt and complete the CLI invocation. The SkillHub page marks requires_api_key=true, indicating that dLazy API credentials must be prepared before use (specific configuration methods should follow the SKILL.md within the skill package and the dlazy CLI documentation).

Core Functions

Based on the information publicly available on SkillHub, the confirmed capability boundaries are as follows:

  1. Prompt-driven Model Selection: The Agent selects from audio/TTS models supported by the dlazy CLI based on the user’s description (purpose, language, style, etc.), rather than requiring the user to manually check tables or switch commands.
  2. Unified dlazy CLI Workflow: Generation actions are completed via the dlazy command-line tool, consistent with the dlazy hosted API workflow (see github.com/dlazyai/cli for the CLI project).
  3. Design/Media Skill Positioning: Categorized under design-media, suitable for conversational audio needs such as content production and presentation voiceovers.

On SkillHub, this skill has a rating of 100000, with 1806 downloads and 1 installation at the time of data retrieval; these are store statistics and do not represent the actual invocation volume in individual environments.

Installation and Activation

1. Install SkillHub CLI (if not already installed)

First, check if skillhub is available:

command -v skillhub && skillhub --version

If not installed, you can follow the SkillHub installation documentation to perform a full installation (CLI + Default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If only the CLI is needed:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Instructions and paths should be based on skillhub.cn/install/skillhub.md.

2. Install audio generate to the current Agent’s skills directory

The method provided on the official page is: instruct the Agent to read the aforementioned installation documentation and install the coordinate @user_f95f21b8/dlazy-audio-generate.

When installing via command line, you must use --dir to point to the skills directory actually used by the current Agent; otherwise, it will default to installing to ./skills/, which the Agent may not be able to load:

skillhub install user_f95f21b8/dlazy-audio-generate --dir <your Agent skills directory>

Common client skills paths (excerpted from SkillHub installation documentation, select according to your local environment):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installing or updating the skill, restart or refresh the Agent as required by the client to ensure SKILL.md is reloaded.

3. API Key

The SkillHub tag requires_api_key=true indicates that this skill depends on an API Key. Please check the SKILL.md within the skill package after installation and complete authentication according to dlazy CLI requirements before initiating generation requests.

Typical Usage

The official SkillHub page does not list a separate copyable one-click example command; the reproducible entry point is: In an Agent with the skill enabled, describe the audio requirement in natural language, allowing the skill to guide the Agent to automatically select the model and invoke the dlazy CLI.

Reference interaction method (descriptions must match the actual copy, provided by you):

  1. Explain the task type, e.g., “Turn the following text into Chinese narration with a moderate pace” and attach the text.
  2. The Agent selects the relevant dlazy audio/TTS sub-command based on the skill instructions and executes it (refer to the documentation within the skill and dlazy <model> -h for specific model names and parameters).
  3. Obtain the audio file or URL according to the CLI return result.

If you need to search for skills with the same name to compare sources, you can use the following in SkillHub:

skillhub search dlazy-audio-generate

Suitable Scenarios and Notes

Suitable for: Developers already using or planning to use dlazy CLI; those who need to complete TTS, background music, or sound effect tasks via conversation in environments like Cursor, Claude Code, or Codex, and wish to reduce the steps of manually selecting models.

Notes:

  • Generation depends on dlazy CLI and an API Key; network and account permissions must be satisfied independently; prompts and passed local files will be processed according to dlazy service rules, please read the terms of service before use.
  • The skill version is subject to SkillHub (currently 1.0.9); upgrades can be performed using skillhub to update the same coordinate to the Agent skills directory.
  • Installation commands and version numbers on different mirror sites or third-party pages may not be consistent with the SkillHub coordinate @user_f95f21b8/dlazy-audio-generate; refer to the SkillHub Skill Page and api.skillhub.cn entry for accuracy.

Conclusion

The value of audio generate lies in delegating “which dlazy audio/TTS model to choose and how to invoke the CLI” to the Agent to handle based on prompts, enabling you to get audio results faster in IDE or terminal conversations. See SkillHub for installation and details: https://www.skillhub.cn/skills/user_f95f21b8/dlazy-audio-generate.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye