Xpersona
A

Azure Speech Tts

CLAWHUB · Unverified

Azure Speech TTS skill for generating local audio files from text or SSML with Azure Speech. Use when the user asks to use Azure Speech / Azure TTS / Microso...

62
Rank
84
Safety
960
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 960 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17630t4f4mg47rk0nkkr09cf983xw8x:azure-speech-tts
  1. Install using `clawhub skill install s17630t4f4mg47rk0nkkr09cf983xw8x:azure-speech-tts` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/conanwhf/azure-speech-tts before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-conanwhf-azure-speech-tts/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

22,131 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: azure-speech-tts
description: Azure Speech TTS skill for generating local audio files from text or SSML with Azure Speech. Use when the user asks to use Azure Speech / Azure TTS / Microsoft TTS / speech synthesis / text-to-speech / SSML, choose voices, control speaking rate/pitch/style, or export MP3/WAV/OGG/PCM audio.
---

# Azure Speech TTS

Use Azure Speech to turn text or SSML into a local audio file under `download/`.

## What this skill does

- Synthesize plain text into speech
- Synthesize full SSML payloads directly
- Choose voice, output format, rate, pitch, style, and role
- Save the result as a local audio file and print a JSON summary

## Configuration

This skill uses a small default config file plus environment variables.

### Default config file

File:
- `config.json`

Default values:
- `default_voice`: `zh-CN-Yunqi:DragonHDOmniLatestNeural`
- `default_format`: `mp3`
- `default_output_dir`: `download`
- `default_timeout_seconds`: `60`

### Secret values

Set these in the local shell environment:

- `AZURE_SPEECH_KEY`
- `AZURE_SPEECH_REGION`

### Optional environment overrides

- `AZURE_SPEECH_VOICE`
- `AZURE_SPEECH_FORMAT`

### Precedence

Use this order:

1. CLI flag
2. Environment variable
3. `config.json`
4. Built-in fallback

## Quick start

```bash
python3 scripts/azure_tts.py \
  --text "你好,这是一段测试语音。" \
  --voice zh-CN-Yunqi:DragonHDOmniLatestNeural \
  --format mp3 \
  --output download/test.mp3
```

For SSML:

```bash
python3 scripts/azure_tts.py \
  --ssml-file temp/input.ssml \
  --format wav \
  --output download/test.wav
```

## Workflow

1. Decide whether the input is plain text or full SSML.
2. Use `--text` / `--text-file` for normal narration.
3. Use `--ssml` / `--ssml-file` only when the payload already contains a complete `<speak>` document.
4. Pick the voice and output format, or let `config.json` supply the defaults.
5. Run `scripts/azure_tts.py`.
6. Return the generated audio path to the user.

## Rules

- Prefer plain text unless the user needs pauses, emphasis, multi-voice content, or expressive styling.
- `--ssml` input must include a full `<speak>` root element.
- Default voice is `zh-CN-Yunqi:DragonHDOmniLatestNeural` if nothing else is set.
- Default output folder is `download/`.
- If the user does not specify format, use the default MP3 output.
- Do not put secrets in `config.json`.

## Common formats

See `references/azure-speech-cheatsheet.md` for the format map and examples.

Short aliases supported by the script:

- `mp3`
- `wav`
- `pcm`
- `ogg`

## Useful options

- `--voice`: Azure voice name, for example `en-US-AriaNeural`
- `--language`: SSML `xml:lang` for plain-text mode
- `--rate`: speaking rate, for example `+10%`
- `--pitch`: pitch adjustment, for example `+2st`
- `--style`: expressive style such as `cheerful`, `sad`, `chat`
- `--style-degree`: strength of the expressive style
- `--role`: voice role when supported
- `--save-ssml`: write the generated SSML to a file for inspection
- 

README.md

# azure-speech-tts

Azure Speech TTS skill for generating local audio files from text or SSML.

## What it does

- Turn plain text into speech
- Turn SSML into speech
- Choose voice, format, rate, pitch, style, and role
- Save audio to a local file under `download/`

## Requirements

Set these environment variables before using the skill:

- `AZURE_SPEECH_KEY`
- `AZURE_SPEECH_REGION`

## Default settings

- Voice: `zh-CN-Yunqi:DragonHDOmniLatestNeural`
- Format: `mp3`
- Output directory: `download/`
- Timeout: `60` seconds

## Quick start

```bash
python3 scripts/azure_tts.py \
  --text "你好,这是一段测试语音。" \
  --output download/test.mp3
```

SSML example:

```bash
python3 scripts/azure_tts.py \
  --ssml-file temp/input.ssml \
  --format wav \
  --output download/test.wav
```

## Notes

- Use SSML only when you already have a complete `<speak>` document.
- Prefer plain text for normal narration.
- See `SKILL.md` for the full workflow and options.

_meta.json

{
  "ownerId": "kn7c0twrz1q1d2sxamp9rchsbx82em2r",
  "slug": "azure-speech-tts",
  "version": "1.0.2",
  "publishedAt": 1775496049703
}

references/azure-speech-cheatsheet.md

# Azure Speech TTS Cheatsheet

## Configuration

Default config file: `config.json`

```json
{
  "default_voice": "zh-CN-Yunqi:DragonHDOmniLatestNeural",
  "default_format": "mp3",
  "default_output_dir": "download",
  "default_timeout_seconds": 60
}
```

Secret values still belong in environment variables:
- `AZURE_SPEECH_KEY`
- `AZURE_SPEECH_REGION`

Optional overrides:
- `AZURE_SPEECH_VOICE`
- `AZURE_SPEECH_FORMAT`

Precedence:
1. CLI flag
2. Environment variable
3. `config.json`
4. Built-in fallback

## Common defaults

- Default voice in the helper script: `zh-CN-Yunqi:DragonHDOmniLatestNeural`
- Default output format: `audio-24khz-48kbitrate-mono-mp3`
- Default output folder: `download/`

## Output format aliases

| Alias | Azure format | Extension |
|---|---|---|
| `mp3` | `audio-24khz-48kbitrate-mono-mp3` | `.mp3` |
| `wav` | `riff-24khz-16bit-mono-pcm` | `.wav` |
| `pcm` | `raw-16khz-16bit-mono-pcm` | `.pcm` |
| `ogg` | `ogg-24khz-16bit-mono-opus` | `.ogg` |

## Plain text example

```bash
python3 scripts/azure_tts.py \
  --text "你好,这是一段测试语音。" \
  --voice zh-CN-Yunqi:DragonHDOmniLatestNeural \
  --format mp3 \
  --output download/test.mp3
```

## SSML example

```bash
python3 scripts/azure_tts.py \
  --ssml-file temp/input.ssml \
  --format wav \
  --output download/test.wav
```

SSML input must include a full `<speak>` root element.

## Useful SSML notes

- Use `<prosody rate="..." pitch="...">` for pacing and pitch.
- Use `style` for expressive neural voices, e.g. `cheerful`, `sad`, `chat`.
- Use `styledegree` for stronger or weaker expression when the voice supports it.
- Use `role` only when the target voice supports it.

## Good trigger phrases for the skill

- “用 Azure Speech 把这段文字转成语音”
- “生成一个 mp3 / wav 语音文件”
- “用 Azure TTS 朗读这段内容”
- “帮我写个 SSML 并合成”

skill-card.md

## Description:

Azure Speech TTS generates local audio files from plain text or complete SSML using Azure Speech, with options for voice, format, speaking rate, pitch, style, and role.

This skill is ready for commercial/non-commercial use.

## Publisher:

[conanwhf](https://clawhub.ai/user/conanwhf)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and agents use this skill to synthesize narration or SSML-driven speech into local MP3, WAV, PCM, or OGG files and return the generated audio path to the user.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: A tampered Azure region value could send the Azure Speech key and speech text to a non-Azure host.

Mitigation: Validate or patch the region handling before installation and use only known Azure region values.

Risk: Speech text is sent to a cloud service for synthesis and may contain sensitive content.

Mitigation: Avoid sending sensitive text unless cloud processing is approved, and keep the Azure Speech key least-privileged and rotatable.

Risk: Explicit output paths can overwrite local files.

Mitigation: Choose output paths carefully and review generated paths before running synthesis commands.

## Reference(s):

- [Azure Speech TTS Cheatsheet](references/azure-speech-cheatsheet.md)

## Skill Output:

**Output Type(s):** [Files, Shell commands, Configuration instructions, Guidance]

**Output Format:** [Markdown guidance with bash commands and JSON summaries; generated audio files are MP3, WAV, PCM, or OGG.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires Azure Speech credentials and writes audio to local output paths.]

## Skill Version(s):

1.0.2 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Azure Speech Tts and adjacent AI workflows.