alibabacloud-bailian-voice-creator
Installation
SKILL.md
AI Voice Creator
Professional-grade AI voice creation skill supporting speech recognition (ASR) and text-to-speech (TTS). Built on Alibaba Cloud DashScope API.
Security Rules (Mandatory)
- Never hardcode or log API Keys in plain text in code, logs, or output files. Patterns like
api_key = "sk-..."are strictly forbidden. - API Keys must only be obtained via
scripts/api_key.py'sget_api_key()function, or viaos.environ.get('DASHSCOPE_API_KEY'). - Generated scripts, logs, and output files must not contain any content starting with
sk-. - Logs should only record operation status (success/failure), never credential information.
Execution Requirements (Mandatory)
- TTS must and can only use
dashscope.MultiModalConversation.callwith theqwen-ttsmodel. Using edge-tts, gTTS, ElevenLabs, Azure TTS, sambert, NLS, or any other third-party TTS service is strictly forbidden. - Never generate mock/demo code or placeholder files. Real API calls must be made; do not generate simulated scripts or blank audio files for any reason.
- Never auto-fallback when API calls fail. Do not switch to other TTS services after a qwen-tts failure. Catch the exception, output a clear error message, and exit.
- If the
dashscopelibrary is missing, install it first withpip install dashscope.
Required API Call Templates (Do Not Replace)
Related skills