{
  "schemaVersion": "1.0",
  "item": {
    "slug": "sapi-tts",
    "name": "Sapi Tts",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Korddie/sapi-tts",
    "canonicalUrl": "https://clawhub.ai/Korddie/sapi-tts",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/sapi-tts",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=sapi-tts",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/sapi-tts"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/sapi-tts",
    "agentPageUrl": "https://openagent3.xyz/skills/sapi-tts/agent",
    "manifestUrl": "https://openagent3.xyz/skills/sapi-tts/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/sapi-tts/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "SAPI5 TTS (Windows)",
        "body": "Lightweight text-to-speech using Windows built-in SAPI5. Zero GPU, instant generation."
      },
      {
        "title": "Installation",
        "body": "Save the script below as tts.ps1 in your skills folder:\n\n<#\n.SYNOPSIS\n    Windows SAPI5 TTS - Lightweight text-to-speech\n.DESCRIPTION\n    Uses Windows built-in speech synthesis (SAPI5).\n    Works with Neural voices (Win11) or legacy voices (Win10).\n    Zero GPU usage, instant generation.\n#>\n\nparam(\n    [Parameter(Mandatory=$false, Position=0)]\n    [string]$Text = \"\",\n    \n    [Parameter(Mandatory=$false)]\n    [Alias(\"Voice\", \"v\")]\n    [string]$VoiceName = \"\",\n    \n    [Parameter(Mandatory=$false)]\n    [Alias(\"Lang\", \"l\")]\n    [string]$Language = \"fr\",\n    \n    [Parameter(Mandatory=$false)]\n    [Alias(\"o\")]\n    [string]$Output = \"\",\n    \n    [Parameter(Mandatory=$false)]\n    [Alias(\"r\")]\n    [int]$Rate = 0,\n    \n    [Parameter(Mandatory=$false)]\n    [Alias(\"p\")]\n    [switch]$Play,\n    \n    [Parameter(Mandatory=$false)]\n    [switch]$ListVoices\n)\n\nAdd-Type -AssemblyName System.Speech\n$synth = New-Object System.Speech.Synthesis.SpeechSynthesizer\n\n$installedVoices = $synth.GetInstalledVoices() | Where-Object { $_.Enabled } | ForEach-Object { $_.VoiceInfo }\n\nif ($ListVoices) {\n    Write-Host \"`nInstalled SAPI5 voices:`n\" -ForegroundColor Cyan\n    foreach ($v in $installedVoices) {\n        $type = if ($v.Name -match \"Online|Neural\") { \"[Neural]\" } else { \"[Legacy]\" }\n        Write-Host \"  $($v.Name)\" -ForegroundColor White -NoNewline\n        Write-Host \" $type\" -ForegroundColor DarkGray -NoNewline\n        Write-Host \" - $($v.Culture) $($v.Gender)\" -ForegroundColor Gray\n    }\n    Write-Host \"\"\n    $synth.Dispose()\n    exit 0\n}\n\nif (-not $Text) {\n    Write-Error \"Text required. Use: .\\tts.ps1 'Your text here'\"\n    Write-Host \"Use -ListVoices to see available voices\"\n    $synth.Dispose()\n    exit 1\n}\n\nfunction Select-BestVoice {\n    param($voices, $preferredName, $lang)\n    \n    if ($preferredName) {\n        $match = $voices | Where-Object { $_.Name -like \"*$preferredName*\" } | Select-Object -First 1\n        if ($match) { return $match }\n        Write-Warning \"Voice '$preferredName' not found, auto-selecting...\"\n    }\n    \n    $cultureMap = @{\n        \"fr\" = \"fr-FR\"; \"french\" = \"fr-FR\"\n        \"en\" = \"en-US\"; \"english\" = \"en-US\"\n        \"de\" = \"de-DE\"; \"german\" = \"de-DE\"\n        \"es\" = \"es-ES\"; \"spanish\" = \"es-ES\"\n        \"it\" = \"it-IT\"; \"italian\" = \"it-IT\"\n    }\n    $targetCulture = $cultureMap[$lang.ToLower()]\n    if (-not $targetCulture) { $targetCulture = $lang }\n    \n    $neuralMatch = $voices | Where-Object { \n        $_.Name -match \"Online|Neural\" -and $_.Culture.Name -eq $targetCulture \n    } | Select-Object -First 1\n    if ($neuralMatch) { return $neuralMatch }\n    \n    $langMatch = $voices | Where-Object { $_.Culture.Name -eq $targetCulture } | Select-Object -First 1\n    if ($langMatch) { return $langMatch }\n    \n    $anyNeural = $voices | Where-Object { $_.Name -match \"Online|Neural\" } | Select-Object -First 1\n    if ($anyNeural) { return $anyNeural }\n    \n    return $voices | Select-Object -First 1\n}\n\n$selectedVoice = Select-BestVoice -voices $installedVoices -preferredName $VoiceName -lang $Language\n\nif (-not $selectedVoice) {\n    Write-Error \"No SAPI5 voices found! Install voices in Windows Settings > Time & Language > Speech\"\n    $synth.Dispose()\n    exit 1\n}\n\nif (-not $Output) {\n    $ttsDir = \"$env:USERPROFILE\\.openclaw\\workspace\\tts\"\n    if (-not (Test-Path $ttsDir)) { New-Item -ItemType Directory -Path $ttsDir -Force | Out-Null }\n    $timestamp = Get-Date -Format \"yyyyMMdd_HHmmss\"\n    $Output = \"$ttsDir\\sapi_$timestamp.wav\"\n}\n\ntry {\n    $synth.SelectVoice($selectedVoice.Name)\n    $synth.Rate = $Rate\n    $synth.SetOutputToWaveFile($Output)\n    $synth.Speak($Text)\n    $synth.SetOutputToNull()\n    \n    Write-Host \"Voice: $($selectedVoice.Name) [$($selectedVoice.Culture)]\" -ForegroundColor Cyan\n    Write-Host \"MEDIA:$Output\"\n    \n    # Auto-play if requested (uses .NET MediaPlayer, no external player)\n    if ($Play) {\n        Add-Type -AssemblyName PresentationCore\n        $player = New-Object System.Windows.Media.MediaPlayer\n        $player.Open([Uri]$Output)\n        $player.Play()\n        Start-Sleep -Milliseconds 500\n        while ($player.Position -lt $player.NaturalDuration.TimeSpan) {\n            Start-Sleep -Milliseconds 100\n        }\n        $player.Close()\n    }\n    \n} catch {\n    Write-Error \"TTS failed: $($_.Exception.Message)\"\n    exit 1\n} finally {\n    $synth.Dispose()\n}"
      },
      {
        "title": "Quick Start",
        "body": "# Generate audio file\n.\\tts.ps1 \"Bonjour, comment vas-tu ?\"\n\n# Generate AND play immediately\n.\\tts.ps1 \"Bonjour !\" -Play"
      },
      {
        "title": "Parameters",
        "body": "ParameterAliasDefaultDescription-Text(positional)requiredText to speak-VoiceName-Voice, -vautoVoice name (partial match OK)-Language-Lang, -lfrLanguage: fr, en, de, es, it...-Output-oautoOutput WAV file path-Rate-r0Speed: -10 (slow) to +10 (fast)-Play-pfalsePlay audio immediately after generation-ListVoicesShow installed voices"
      },
      {
        "title": "Examples",
        "body": "# French with auto-play\n.\\tts.ps1 \"Bonjour !\" -Lang fr -Play\n\n# English, faster\n.\\tts.ps1 \"Hello there!\" -Lang en -Rate 2 -Play\n\n# Specific voice\n.\\tts.ps1 \"Salut !\" -Voice \"Denise\" -Play\n\n# List available voices\n.\\tts.ps1 -ListVoices"
      },
      {
        "title": "Installing Neural Voices (Recommended)",
        "body": "Neural voices sound much better than legacy Desktop voices."
      },
      {
        "title": "Windows 11",
        "body": "Neural voices are built-in. Go to:\nSettings → Time & Language → Speech → Manage voices"
      },
      {
        "title": "Windows 10/11 (More voices)",
        "body": "For additional Neural voices (like French Denise):\n\nInstall NaturalVoiceSAPIAdapter\nDownload voices in Settings → Time & Language → Speech\nRun -ListVoices to verify"
      },
      {
        "title": "Performance",
        "body": "Generation: Instant (< 1 second)\nGPU: None\nCPU: Minimal\nQuality: Good (Neural) / Basic (Legacy)"
      },
      {
        "title": "Credits",
        "body": "Made by Pocus 🎩 — AI assistant, with Olive (@Korddie)."
      }
    ],
    "body": "SAPI5 TTS (Windows)\n\nLightweight text-to-speech using Windows built-in SAPI5. Zero GPU, instant generation.\n\nInstallation\n\nSave the script below as tts.ps1 in your skills folder:\n\n<#\n.SYNOPSIS\n    Windows SAPI5 TTS - Lightweight text-to-speech\n.DESCRIPTION\n    Uses Windows built-in speech synthesis (SAPI5).\n    Works with Neural voices (Win11) or legacy voices (Win10).\n    Zero GPU usage, instant generation.\n#>\n\nparam(\n    [Parameter(Mandatory=$false, Position=0)]\n    [string]$Text = \"\",\n    \n    [Parameter(Mandatory=$false)]\n    [Alias(\"Voice\", \"v\")]\n    [string]$VoiceName = \"\",\n    \n    [Parameter(Mandatory=$false)]\n    [Alias(\"Lang\", \"l\")]\n    [string]$Language = \"fr\",\n    \n    [Parameter(Mandatory=$false)]\n    [Alias(\"o\")]\n    [string]$Output = \"\",\n    \n    [Parameter(Mandatory=$false)]\n    [Alias(\"r\")]\n    [int]$Rate = 0,\n    \n    [Parameter(Mandatory=$false)]\n    [Alias(\"p\")]\n    [switch]$Play,\n    \n    [Parameter(Mandatory=$false)]\n    [switch]$ListVoices\n)\n\nAdd-Type -AssemblyName System.Speech\n$synth = New-Object System.Speech.Synthesis.SpeechSynthesizer\n\n$installedVoices = $synth.GetInstalledVoices() | Where-Object { $_.Enabled } | ForEach-Object { $_.VoiceInfo }\n\nif ($ListVoices) {\n    Write-Host \"`nInstalled SAPI5 voices:`n\" -ForegroundColor Cyan\n    foreach ($v in $installedVoices) {\n        $type = if ($v.Name -match \"Online|Neural\") { \"[Neural]\" } else { \"[Legacy]\" }\n        Write-Host \"  $($v.Name)\" -ForegroundColor White -NoNewline\n        Write-Host \" $type\" -ForegroundColor DarkGray -NoNewline\n        Write-Host \" - $($v.Culture) $($v.Gender)\" -ForegroundColor Gray\n    }\n    Write-Host \"\"\n    $synth.Dispose()\n    exit 0\n}\n\nif (-not $Text) {\n    Write-Error \"Text required. Use: .\\tts.ps1 'Your text here'\"\n    Write-Host \"Use -ListVoices to see available voices\"\n    $synth.Dispose()\n    exit 1\n}\n\nfunction Select-BestVoice {\n    param($voices, $preferredName, $lang)\n    \n    if ($preferredName) {\n        $match = $voices | Where-Object { $_.Name -like \"*$preferredName*\" } | Select-Object -First 1\n        if ($match) { return $match }\n        Write-Warning \"Voice '$preferredName' not found, auto-selecting...\"\n    }\n    \n    $cultureMap = @{\n        \"fr\" = \"fr-FR\"; \"french\" = \"fr-FR\"\n        \"en\" = \"en-US\"; \"english\" = \"en-US\"\n        \"de\" = \"de-DE\"; \"german\" = \"de-DE\"\n        \"es\" = \"es-ES\"; \"spanish\" = \"es-ES\"\n        \"it\" = \"it-IT\"; \"italian\" = \"it-IT\"\n    }\n    $targetCulture = $cultureMap[$lang.ToLower()]\n    if (-not $targetCulture) { $targetCulture = $lang }\n    \n    $neuralMatch = $voices | Where-Object { \n        $_.Name -match \"Online|Neural\" -and $_.Culture.Name -eq $targetCulture \n    } | Select-Object -First 1\n    if ($neuralMatch) { return $neuralMatch }\n    \n    $langMatch = $voices | Where-Object { $_.Culture.Name -eq $targetCulture } | Select-Object -First 1\n    if ($langMatch) { return $langMatch }\n    \n    $anyNeural = $voices | Where-Object { $_.Name -match \"Online|Neural\" } | Select-Object -First 1\n    if ($anyNeural) { return $anyNeural }\n    \n    return $voices | Select-Object -First 1\n}\n\n$selectedVoice = Select-BestVoice -voices $installedVoices -preferredName $VoiceName -lang $Language\n\nif (-not $selectedVoice) {\n    Write-Error \"No SAPI5 voices found! Install voices in Windows Settings > Time & Language > Speech\"\n    $synth.Dispose()\n    exit 1\n}\n\nif (-not $Output) {\n    $ttsDir = \"$env:USERPROFILE\\.openclaw\\workspace\\tts\"\n    if (-not (Test-Path $ttsDir)) { New-Item -ItemType Directory -Path $ttsDir -Force | Out-Null }\n    $timestamp = Get-Date -Format \"yyyyMMdd_HHmmss\"\n    $Output = \"$ttsDir\\sapi_$timestamp.wav\"\n}\n\ntry {\n    $synth.SelectVoice($selectedVoice.Name)\n    $synth.Rate = $Rate\n    $synth.SetOutputToWaveFile($Output)\n    $synth.Speak($Text)\n    $synth.SetOutputToNull()\n    \n    Write-Host \"Voice: $($selectedVoice.Name) [$($selectedVoice.Culture)]\" -ForegroundColor Cyan\n    Write-Host \"MEDIA:$Output\"\n    \n    # Auto-play if requested (uses .NET MediaPlayer, no external player)\n    if ($Play) {\n        Add-Type -AssemblyName PresentationCore\n        $player = New-Object System.Windows.Media.MediaPlayer\n        $player.Open([Uri]$Output)\n        $player.Play()\n        Start-Sleep -Milliseconds 500\n        while ($player.Position -lt $player.NaturalDuration.TimeSpan) {\n            Start-Sleep -Milliseconds 100\n        }\n        $player.Close()\n    }\n    \n} catch {\n    Write-Error \"TTS failed: $($_.Exception.Message)\"\n    exit 1\n} finally {\n    $synth.Dispose()\n}\n\nQuick Start\n# Generate audio file\n.\\tts.ps1 \"Bonjour, comment vas-tu ?\"\n\n# Generate AND play immediately\n.\\tts.ps1 \"Bonjour !\" -Play\n\nParameters\nParameter\tAlias\tDefault\tDescription\n-Text\t(positional)\trequired\tText to speak\n-VoiceName\t-Voice, -v\tauto\tVoice name (partial match OK)\n-Language\t-Lang, -l\tfr\tLanguage: fr, en, de, es, it...\n-Output\t-o\tauto\tOutput WAV file path\n-Rate\t-r\t0\tSpeed: -10 (slow) to +10 (fast)\n-Play\t-p\tfalse\tPlay audio immediately after generation\n-ListVoices\t\t\tShow installed voices\nExamples\n# French with auto-play\n.\\tts.ps1 \"Bonjour !\" -Lang fr -Play\n\n# English, faster\n.\\tts.ps1 \"Hello there!\" -Lang en -Rate 2 -Play\n\n# Specific voice\n.\\tts.ps1 \"Salut !\" -Voice \"Denise\" -Play\n\n# List available voices\n.\\tts.ps1 -ListVoices\n\nInstalling Neural Voices (Recommended)\n\nNeural voices sound much better than legacy Desktop voices.\n\nWindows 11\n\nNeural voices are built-in. Go to: Settings → Time & Language → Speech → Manage voices\n\nWindows 10/11 (More voices)\n\nFor additional Neural voices (like French Denise):\n\nInstall NaturalVoiceSAPIAdapter\nDownload voices in Settings → Time & Language → Speech\nRun -ListVoices to verify\nPerformance\nGeneration: Instant (< 1 second)\nGPU: None\nCPU: Minimal\nQuality: Good (Neural) / Basic (Legacy)\nCredits\n\nMade by Pocus 🎩 — AI assistant, with Olive (@Korddie)."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Korddie/sapi-tts",
    "publisherUrl": "https://clawhub.ai/Korddie/sapi-tts",
    "owner": "Korddie",
    "version": "1.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/sapi-tts",
    "downloadUrl": "https://openagent3.xyz/downloads/sapi-tts",
    "agentUrl": "https://openagent3.xyz/skills/sapi-tts/agent",
    "manifestUrl": "https://openagent3.xyz/skills/sapi-tts/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/sapi-tts/agent.md"
  }
}