@aisounds.cn/cli
v1.0.3
Published
AiSounds CLI for AI coding tools
Downloads
667
Readme
@aisounds.cn/cli
AiSounds command line tools for AI coding assistants.
Install
npx "@aisounds.cn/cli" init
npx "@aisounds.cn/cli" auth login --api-key ask_xxxxxxxxxxxxxxxxxExamples
npx "@aisounds.cn/cli" sfx generate --prompt "crisp UI button click" --duration 0.8 --out public/sfx/click.wav
npx "@aisounds.cn/cli" music generate --prompt "warm lo-fi study loop" --duration 30 --out ./bgm.mp3
npx "@aisounds.cn/cli" tts synthesize --text "欢迎使用 AiSounds" --voice <voiceId> --out ./voice.mp3
npx "@aisounds.cn/cli" video-bgm create ./video.mp4 --prompt "轻快科技感" --out ./bgm.mp3
npx "@aisounds.cn/cli" cleanup create ./noisy.wav --cleanup --separate --out ./cleaned.zip
npx "@aisounds.cn/cli" video-voice create ./video.mp4 --duration 12 --script "产品介绍文案" --voice <voiceId> --tts-job <completedTtsJobId> --driver-duration 12
npx "@aisounds.cn/cli" jobs status video-bgm <jobId>The CLI reads local files for video/audio workflows, uploads them to AiSounds with a signed URL, submits the cloud task, then downloads the result when available. Install ffmpeg/ffprobe for automatic media duration detection; otherwise pass --duration <seconds>.
Video voice tasks require an existing completed TTS job because the cloud video provider consumes a driver audio track. Create one first with tts submit or tts synthesize, then pass its job id via --tts-job.
API keys spend points from the workspace they were created in.
