azure-text-to-speech
Skill này làm gì
Skill này biến văn bản thành lời thuyết minh bằng giọng neural của Azure. Nó dành cho người làm video cần lời thuyết minh chất lượng cao bằng nhiều ngôn ngữ.
Khi nào nên dùng
- ✓Khi video của bạn cần lời thuyết minh hoặc lời kể từ một kịch bản viết sẵn.
- ✓Khi bạn muốn một giọng đám mây chất lượng cao bằng ngôn ngữ mà công cụ cục bộ không hỗ trợ.
- ✓Khi bạn muốn kiểm soát nhịp độ hoặc phong cách nói bằng đánh dấu.
Liên kết skill
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/azure-text-to-speech/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Biến kịch bản này thành lời thuyết minh ấm áp, thân thiện cho video hướng dẫn của tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent gửi văn bản và giọng đã chọn đến dịch vụ giọng nói của Azure, dịch vụ này trả về một file âm thanh. Bạn có thể điều chỉnh nhịp độ và phong cách bằng một ngôn ngữ đánh dấu đơn giản.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Azure AI Speech — Text-to-Speech
Generate narration with Azure neural TTS — high-quality multilingual voices,
SSML prosody control, and express-as styles, served synchronously by the REST
/cognitiveservices/v1 endpoint (no token exchange, Blob storage, or job
polling). In OpenMontage this is exposed through the azure_tts tool
(capability=tts, provider=azure). It is an optional cloud TTS provider —
when AZURE_SPEECH_KEY is configured, prefer it for high-quality cloud
narration. The local piper_tts remains the default offline path and the
fallback when Azure is unavailable; elevenlabs_tts remains the choice for
voice cloning.
Docs: REST text to speech · Voice gallery
Setup
Same Speech resource as azure_stt — one key/region unlocks both directions
(STT and TTS). Create a Speech resource in the
Azure portal; copy the key and region from its
Keys and Endpoint page.
export AZURE_SPEECH_KEY=your_speech_resource_key
export AZURE_SPEECH_REGION=eastus # your resource's region
# export AZURE_TTS_ENDPOINT=https://... # optional: full custom TTS host
# (the TTS host is https://<region>.tts.speech.microsoft.com — a different
# subdomain than the STT endpoint, hence the separate override var)
azure_tts reports AVAILABLE once AZURE_SPEECH_KEY plus either
AZURE_SPEECH_REGION or AZURE_TTS_ENDPOINT are set.
Using it in a pipeline
Route through tts_selector as usual (it auto-discovers azure_tts), or call
the provider tool directly when the user has approved Azure:
from tools.tool_registry import registry
registry.discover()
tts = registry._tools["azure_tts"]
result = tts.execute({
"text": "Every design decision in this dashboard has a reason.",
"voice": "andrew", # alias or full Azure short name
"rate": "-4%", # slightly slower for narration
# "style": "narration-professional", # for voices that support styles
"output_path": "projects/my-video/assets/audio/seg_001.mp3",
"output_format": "mp3", # or "wav" (48kHz PCM) for mixing
})
If azure_tts is unavailable (no key) or errors, fall back per its declared
chain: elevenlabs_tts → openai_tts → piper_tts.
Voice selection
Curated shortlist (aliases accepted by the voice param):
| Alias | Voice | Character |
|---|---|---|
andrew |
en-US-AndrewMultilingualNeural | warm, confident, conversational — the default; founder/explainer register |
brandon |
en-US-BrandonMultilingualNeural | deeper, measured |
ava |
en-US-AvaMultilingualNeural | confident, bright female |
guy |
en-US-GuyNeural | authoritative |
jenny |
en-US-JennyNeural | friendly, clear |
Any valid Azure voice short name may be passed verbatim (e.g.
de-DE-KatjaNeural); the Multilingual voices handle non-English text well —
set locale to match the text's language for correct SSML.
Parameters that matter
rate/pitch— SSML prosody. Narration usually reads best slightly slowed ("-4%"to"-8%"); leave pitch at"0%"unless correcting a voice.style— express-as style for voices that support it (narration-professional,calm,newscast). Unsupported styles are silently ignored by Azure, so listen to a sample before batch runs.output_format—mp3(48kHz/192kbit) for delivery,wav(48kHz PCM) when the segment feedsaudio_mixerfor further processing.- Determinism: a fixed voice + SSML re-renders effectively identical audio — safe to regenerate individual segments without re-recording the whole set.
Cost
Azure neural TTS Standard tier bills roughly $16 per 1M characters (~$0.016
per 1k chars; a 150-word narration segment ≈ $0.015). The tool reports
per-call cost_usd for the cost tracker. See
Azure AI Speech pricing for current rates.
Limits & tips
- One
executecall = one narration segment. Generate per script section (the asset stage convention) rather than one giant paragraph — smaller segments align cleanly to scene timings and are cheap to regenerate. - The synchronous endpoint caps a request at 10 minutes of audio — far above any segment OpenMontage generates.
- Text is XML-e
Câu hỏi thường gặp
Tôi cần thiết lập gì?
Bạn dùng cùng khóa và vùng Azure Speech như skill chép lời.
Nếu chưa thiết lập Azure thì sao?
Một công cụ chuyển văn bản thành giọng nói cục bộ là lựa chọn ngoại tuyến mặc định.
Nó có thể nhân bản giọng nói của tôi không?
Không. Skill nêu rằng một tool khác được dùng để nhân bản giọng nói.
Chi tiết
Mô tả gốc của tác giả
Generate neural narration audio using Azure AI Speech (REST text-to-speech). Use when synthesizing voiceovers or narration in OpenMontage. Optional cloud TTS provider — preferred when AZURE_SPEECH_KEY is configured; the local piper_tts remains the default offline path. Shares one Speech resource with azure_stt.
repo: calesthio/OpenMontage
Độ phổ biến
- Sao GitHub
- 75k
- Vị trí xếp hạng
- #2641
- Giấy phép
- AGPL-3.0
- Cập nhật
- 28/10/2026
Bình luận
- …
Thêm skill từ kho mã này
3d-asset-generation
75kGiúp agent của bạn chọn cách tạo đối tượng 3D cho một cảnh, bằng thư viện có sẵn, các tool chuyển văn bản hoặc ảnh thành 3D, và Blender để lắp ráp cuối cùng.
acestep
75kGiúp agent của bạn tạo nhạc nền, bài hát, jingle và các stem cho video bằng trình tạo nhạc mã nguồn mở ACE-Step.
agents
75kGiúp agent của bạn xây dựng trợ lý AI giọng nói bằng ElevenLabs, như bot chăm sóc khách hàng và nhân vật giọng nói tương tác.
ai-video-gen
75kGiúp agent của bạn tạo các đoạn video AI từ mô tả bằng văn bản hoặc ảnh tham khảo, chọn trong số nhiều dịch vụ tạo video.
Skill tương tự
openai-whisper-api
394kCho phép agent của bạn chuyển bản ghi âm thành văn bản bằng dịch vụ chuyển đổi của OpenAI, với tùy chọn nhãn người nói và tệp đầu ra.
openai-whisper
394kGiúp agent của bạn chuyển âm thanh thành văn bản trên chính máy tính bằng lệnh Whisper, không cần khóa API và không cần tải lên đám mây.
sag
394kGiúp agent của bạn đọc văn bản thành tiếng nói bằng giọng ElevenLabs và phát kết quả trên máy tính, kèm mẹo về phát âm và biểu cảm.