← 返回
开发者工具 Key 中文

Openai Tts.Bak 2026 01 28T18:01:23+10:30

Text-to-speech via OpenAI Audio Speech API.
使用OpenAI Audio Speech API实现文字转语音
nicoataiza
开发者工具 clawhub v1.0.0 1 版本 99731.8 Key: 需要
★ 1
Stars
📥 1,839
下载
💾 48
安装
1
版本
#latest

概述

OpenAI TTS (curl)

Generate speech from text via OpenAI's /v1/audio/speech endpoint.

Quick start

{baseDir}/scripts/speak.sh "Hello, world!"
{baseDir}/scripts/speak.sh "Hello, world!" --out /tmp/hello.mp3

Defaults:

  • Model: tts-1 (fast) or tts-1-hd (quality)
  • Voice: alloy (neutral), also: echo, fable, onyx, nova, shimmer
  • Format: mp3

Voices

VoiceDescription
--------------------
alloyNeutral, balanced
echoMale, warm
fableBritish, expressive
onyxDeep, authoritative
novaFemale, friendly
shimmerFemale, soft

Flags

{baseDir}/scripts/speak.sh "Text" --voice nova --model tts-1-hd --out speech.mp3
{baseDir}/scripts/speak.sh "Text" --format opus --speed 1.2

Options:

  • --voice : alloy|echo|fable|onyx|nova|shimmer (default: alloy)
  • --model : tts-1|tts-1-hd (default: tts-1)
  • --format : mp3|opus|aac|flac|wav|pcm (default: mp3)
  • --speed : 0.25-4.0 (default: 1.0)
  • --out : output file (default: stdout or auto-named)

API key

Set OPENAI_API_KEY, or configure in ~/.clawdbot/clawdbot.json:

{
  skills: {
    entries: {
      "openai-tts": {
        apiKey: "sk-..."
      }
    }
  }
}

Pricing

  • tts-1: ~$0.015 per 1K characters
  • tts-1-hd: ~$0.030 per 1K characters

Very affordable for short responses!

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 18:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,779
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 67 📥 180,079
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,062