Upload local files to Qiniu Cloud and return a publicly accessible URL (or signed private URL). Use when the user wants to upload a local file path to Qiniu, obtain a CDN/public URL, prepare files for downstream cloud processing, or convert local audio/video/documents into externally accessible URLs for other skills such as speech transcription.
当任务需要将本地文件转换为七牛托管的URL时,使用此技能。
可选:
运行Node脚本:
powershell
node scripts/upload.js --file-path E:\\audio\\sample.mp3 --prefix audio
可选标志:
脚本返回类似如下的JSON:
json
{
success: true,
bucket: example-bucket,
key: audio/uuid.mp3,
url: https://cdn.example.com/audio/uuid.mp3,
isPrivate: false,
size: 12345,
mimeType: audio/mpeg,
sourcePath: E:\\audio\\sample.mp3
}
某些七牛域名可能位于认证或防盗链之后。上传成功并不自动保证匿名公共获取成功。如果下游服务需要获取该对象,请验证返回的URL是否可从外部访问,或使用私有签名URL/合适的公共CDN域名。
上传成功后,将返回的 url 传递给下游技能,例如阿里云语音转录工作流。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 qiniu-upload-1776195543 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 qiniu-upload-1776195543 技能
skillhub install qiniu-upload-1776195543
文件大小: 4.46 KB | 发布时间: 2026-4-17 15:52