dashscope
ما الذي تفعله
هذه المهارة تربط خدمات DashScope من Alibaba Cloud للصور والكلام والتفريغ بمشروع فيديو. وهي موجهة لصنّاع المحتوى الذين لديهم حساب DashScope ويريدون استخدام هذه الخدمات.
متى تستخدمها
- ✓عندما تريد إنشاء صورة بنموذج Qwen للصور عبر DashScope.
- ✓عندما تحتاج إلى صوت تعليق من خدمة Qwen لتحويل النص إلى كلام.
- ✓عندما تحتاج إلى تفريغ مع توقيت للكلمات من DashScope.
رابط المهارة
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/dashscope/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ صورة ملصق لشروق الشمس فوق الجبال باستخدام DashScope واحفظها في مشروعي.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يرسل الوكيل الطلب إلى خدمة DashScope بمفتاح واجهتك، وينتظر النتيجة، ويحمّل الملف بسرعة، لأن روابط النتائج تنتهي بعد يوم تقريبًا.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
DashScope
Requires DASHSCOPE_API_KEY in .env. Get one at https://dashscope.aliyun.com/.
Current API
CRITICAL: DashScope's /compatible-mode/v1/ only supports /chat/completions and /embeddings. Image generation, TTS, and ASR all use DashScope-native endpoints — not OpenAI-compatible paths.
All three tools use Authorization: Bearer $DASHSCOPE_API_KEY.
Image Generation
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation
- Model:
qwen-image-2.0-pro(default),qwen-image-max,wan2.7-image,z-image-turbo - Body:
{model, input: {messages: [{role: "user", content: [{text: "prompt"}]}]}, parameters: {size: "W*H", n, prompt_extend, watermark}} - Size format uses asterisk:
"1024*1024"not"1024x1024" - Response:
output.choices[0].message.content[0].image(URL, valid ~24h) — must download separately
Text-to-Speech
POST https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation
Same endpoint as image gen, different body.
- Model:
qwen3-tts-flash(default),qwen3-tts-instruct-flash,qwen-tts-2025-05-22 - Body:
{model, input: {text, voice: "Cherry", language_type: "Auto"}} - Response:
output.audio.url(WAV, valid ~24h) — must download separately
ASR with Word-Level Timestamps
POST https://dashscope.aliyuncs.com/api/v1/services/audio/asr/transcription
Header: X-DashScope-Async: enable
- Model:
qwen3-asr-flash-filetrans(NOTqwen3-asr-flash— the sync version has no word timestamps) - Body:
{model, input: {file_url: "https://public-url/audio.mp3"}, parameters: {enable_words: true, language_hints: ["zh","en"]}} - Returns
task_id→ pollGET /api/v1/tasks/{task_id}untilSUCCEEDED→ downloadoutput.result.transcription_url→ JSON withtranscripts[].sentences[].words[] - Timestamps in
begin_time/end_timeare in milliseconds — the tool normalizes to seconds
OpenMontage Usage
Image via selector
from tools.graphics.image_selector import ImageSelector
result = ImageSelector().execute({
"preferred_provider": "dashscope",
"prompt": "一只猫坐在沙发上",
"output_path": "projects/my-video/assets/images/cat.png",
})
TTS via selector
from tools.audio.tts_selector import TTSSelector
result = TTSSelector().execute({
"preferred_provider": "dashscope",
"text": "如果 AI 真的会改变未来,普通人到底该怎么参与?",
"voice": "Cherry",
"output_path": "projects/my-video/assets/audio/narration.wav",
})
ASR directly (word timestamps for subtitles)
from tools.analysis.dashscope_asr import DashscopeAsr
result = DashscopeAsr().execute({
"audio_url": "https://example.com/narration.wav",
"output_path": "projects/my-video/assets/audio/transcription.json",
})
# result.data["words"] is a flat list of {text, begin_time_seconds, end_time_seconds}
Recommended Workflow
- Image: Generate a sample first. Check
prompt_extend: true(default) — DashScope rewrites your prompt for better results. Disable if you need literal prompt adherence. - TTS: Generate a 10-15 second sample before full narration. Approve voice and pacing before committing to full generation.
- ASR: Audio must be at a publicly accessible URL. Upload to any public host (S3, etc.) first. Local paths are rejected with a clear error.
- Subtitles: Build from
result.data["words"]— each word hasbegin_time_secondsandend_time_seconds. Group words into caption phrases by language semantics, not fixed character count.
Parameters
Image (dashscope_image)
prompt(required): text promptmodel: defaultqwen-image-2.0-prosize: default"1024*1024"— asterisk separator, not "x"n: 1-6 imagesnegative_prompt: things to avoid (max 500 chars)prompt_extend: defaulttrue— auto-rewrite prompt for better resultswatermark: defaultfalseseed: for reproducibility
TTS (dashscope_tts)
text(required): text to synthesize (max 600 chars for qwen3-tts-flash)model: defaultqwen3-tts-flashvoice: default"Cherry"— other voices:"Ethan","Chelsie", etc.language_type: default"Auto"—"Chinese","English","Japanese","Korean"instructions: natural language delivery instructions (only forqwen3-tts-instruct-flash)
ASR (dashscope_asr)
audio_url(required): must be publicly accessible URLmodel: `qwen3-asr-flas
الأسئلة الشائعة
ماذا أحتاج لإعداده؟
تحتاج إلى DASHSCOPE_API_KEY في ملف .env، ويمكنك الحصول عليه من موقع DashScope.
لماذا يجب تحميل النتائج بسرعة؟
تنتهي صلاحية روابط الصور والصوت بعد يوم تقريبًا، لذلك يجب حفظ الملفات فورًا.
ما الخدمات المغطاة؟
توليد الصور، وتحويل النص إلى كلام، والتعرف على الكلام مع توقيت الكلمات.
التفاصيل
الوصف الأصلي من المؤلف
DashScope (Alibaba Cloud Bailian / 阿里云百炼) integration — image generation (qwen-image-2.0-pro), text-to-speech (qwen3-tts-flash), and ASR with word-level timestamps (qwen3-asr-flash-filetrans). Use when generating images via Qwen-Image, narrating via Qwen-TTS, or transcribing with word-level timestamps via Qwen-ASR.
repo: calesthio/OpenMontage
الشعبية
- نجوم GitHub
- 75k
- الترتيب
- #2650
- الترخيص
- AGPL-3.0
- آخر تحديث
- 28/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
3d-asset-generation
75kيساعد وكيلك على اختيار طريقة إنشاء أجسام ثلاثية الأبعاد لمشهد، عبر الكتالوجات وأدوات التحويل من نص أو صورة، وBlender للتجميع.
acestep
75kيساعد وكيلك على إنشاء موسيقى خلفية وأغانٍ ومقطوعات تعريفية ومقاطع منفصلة لفيديو، باستخدام مولّد الموسيقى المفتوح ACE-Step.
agents
75kيساعد وكيلك على بناء مساعدين صوتيين بالذكاء الاصطناعي باستخدام ElevenLabs، مثل روبوتات خدمة العملاء والشخصيات الصوتية التفاعلية.
ai-video-gen
75kيساعد وكيلك على إنشاء مقاطع فيديو بالذكاء الاصطناعي من وصف نصي أو صورة مرجعية، مع اختيار من بين عدة خدمات لتوليد الفيديو.
مهارات مشابهة
gifgrep
394kيتيح لوكيلك البحث في مكتبات GIF ومعاينة النتائج وتنزيل ملف GIF، واستخراج إطار ثابت أو شبكة إطارات منه.
meme-maker
394kيتيح لوكيلك اختيار قالب ميم وإضافة عناوينك الخاصة، ثم إنشاء الميم كصورة بصيغة SVG أو PNG.
ios-icon-gen
280kيتيح لوكيلك إنشاء أيقونات لتطبيقات iOS. يستخدم رموز Apple أو أيقونات من مصادر أخرى لإنشاء الملفات الصحيحة.