---
title: AI 音訊及語音 API | RunAPI
description: 透過一個公開音訊 API，使用文字轉語音、聲音克隆、轉錄及音效功能。
url: https://runapi.ai/zh-HK/audio.md
canonical: https://runapi.ai/zh-HK/audio
locale: zh-HK
site: RunAPI
image: https://runapi.ai/assets/opengraph-bfaaa0f0.png
alternates:
  en: https://runapi.ai/audio
  zh-CN: https://runapi.ai/zh-CN/audio
  es: https://runapi.ai/es/audio
  ja: https://runapi.ai/ja/audio
  de: https://runapi.ai/de/audio
  fr: https://runapi.ai/fr/audio
  pt-BR: https://runapi.ai/pt-BR/audio
  ko: https://runapi.ai/ko/audio
  it: https://runapi.ai/it/audio
  nl: https://runapi.ai/nl/audio
  pl: https://runapi.ai/pl/audio
  tr: https://runapi.ai/tr/audio
  zh-TW: https://runapi.ai/zh-TW/audio
  zh-HK: https://runapi.ai/zh-HK/audio
  ar: https://runapi.ai/ar/audio
  x-default: https://runapi.ai/audio
---

> HTML version: https://runapi.ai/zh-HK/audio
> Site index for agents: https://runapi.ai/llms.txt


# AI 音訊及語音 API

透過一個公開音訊 API，使用文字轉語音、聲音克隆、轉錄及音效功能。

- [取得 API 金鑰](https://runapi.ai/zh-HK/login)
- [瀏覽模型](https://runapi.ai/zh-HK/models.md)

32 個音訊模型 · 6 供應商 · 89 公開端點

## 線上試用

從這裏開始下一次音訊生成。選擇公開模型，查看目前價格及端點詳情。

| 模型 | 供應商 | 模態 | 價格 |
| --- | --- | --- | --- |
| [ElevenLabs/audio-isolation](https://runapi.ai/zh-HK/models/elevenlabs/audio-isolation.md) | ElevenLabs | Audio & Music | $0.12 / minute |
| [Fish Audio](https://runapi.ai/zh-HK/models/fish-audio.md) | Fish Audio | Audio & Music | Free / track |
| [Gemini Omni/gemini-omni-audio](https://runapi.ai/zh-HK/models/gemini-omni/audio.md) | Google | Audio & Music | Free / track |

模式: `text_to_speech`

## 快速開始

### 合成語音

#### curl

```bash
curl https://runapi.ai/api/v1/elevenlabs/text_to_speech \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"text-to-speech-multilingual-v2","text":"Welcome to RunAPI.","voice":"Adam","language_code":"en"}'
```

#### Python

```python
import json
import os
import requests

response = requests.post(
    "https://runapi.ai/api/v1/elevenlabs/text_to_speech",
    headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
    json=json.loads("{\"model\":\"text-to-speech-multilingual-v2\",\"text\":\"Welcome to RunAPI.\",\"voice\":\"Adam\",\"language_code\":\"en\"}")
)
response.raise_for_status()
print(response.json())
```

#### Node.js

```javascript
const response = await fetch("https://runapi.ai/api/v1/elevenlabs/text_to_speech", {
  method: "POST",
  headers: {
    "Authorization": "Bearer " + process.env.RUNAPI_API_KEY,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({"model":"text-to-speech-multilingual-v2","text":"Welcome to RunAPI.","voice":"Adam","language_code":"en"})
});
console.log(await response.json());
```

#### Go

```go
package main

import (
    "io"
    "net/http"
    "os"
    "strings"
)

func main() {
    payload := strings.NewReader("{\"model\":\"text-to-speech-multilingual-v2\",\"text\":\"Welcome to RunAPI.\",\"voice\":\"Adam\",\"language_code\":\"en\"}")
    request, err := http.NewRequest("POST", "https://runapi.ai/api/v1/elevenlabs/text_to_speech", payload)
    if err != nil { panic(err) }
    request.Header.Set("Authorization", "Bearer "+os.Getenv("RUNAPI_API_KEY"))
    request.Header.Set("Content-Type", "application/json")
    response, err := http.DefaultClient.Do(request)
    if err != nil { panic(err) }
    defer response.Body.Close()
    io.Copy(os.Stdout, response.Body)
}
```

#### 回應

```json
{
  "id": "tsk_example",
  "status": "processing"
}
```


## 生成首段音訊的四個步驟

**使用方式**

1. **取得 API 金鑰** - 一個金鑰即可使用所有 TTS 和聲音模型。
2. **選擇聲音** - 瀏覽支援的音訊模型中的可用聲音。
3. **傳送文字** - 將文字和聲音選擇傳送到 /api/v1/elevenlabs/text_to_speech。
4. **取得音訊** - 從工作結果接收生成的音訊。



### 探索

## 更多 AI API

- [影片 API](https://runapi.ai/zh-HK/models?modality=video) - 使用 80 個模型生成、編輯及放大影片 [了解更多](https://runapi.ai/zh-HK/models?modality=video)
- [圖像 API](https://runapi.ai/zh-HK/models?modality=image) - 使用 49 個模型建立及轉換圖像 [了解更多](https://runapi.ai/zh-HK/models?modality=image)
- [音樂 API](https://runapi.ai/zh-HK/music) - 使用 AI 創作原創曲目 [了解更多](https://runapi.ai/zh-HK/music)
- [LLM API](https://runapi.ai/zh-HK/models?modality=text) - 使用 66 個語言模型進行聊天補全 [了解更多](https://runapi.ai/zh-HK/models?modality=text)


## 團隊用它建立的內容

- **語音代理**: 將串流 TTS 與 LLM 及轉錄結合，用一個金鑰建立全雙工語音循環。
- **本地化**: 以辨識度穩定的克隆聲音，將現有影片配音成新語言。
- **會議記錄**: 使用講者標籤進行轉錄，再透過同一流程中的 LLM 端點製作摘要。
- **無障礙**: 無需錄音，為文章、文件及應用程式內內容加入旁白。


## RunAPI 與替代方案

| 功能 | RunAPI | 直接使用 ElevenLabs | OpenAI TTS |
| --- | --- | --- | --- |
| 聲音模型 | 32 個音訊模型 | 1 個供應商 | 6 個聲音 |
| 價格 | 低至 $0.12 / minute | 官方價格 | 官方價格 |
| 即時串流 | 支援 | 支援 | 不支援 |
| 統一計費 | 支援 | 不支援 | 不支援 |
| MCP 伺服器 | 支援 | 不支援 | 不支援 |
| 供應商故障切換 | 支援 | 不支援 | 不支援 |



## Everything the audio endpoint can do

- **Text to Speech** - Stream natural speech from text with per-request voice and speed control.
- **Voice Cloning** - Build a reusable voice from a short reference sample, then call it by id like any other voice.
- **Speech to Text** - Transcribe long-form audio with timestamps, speaker labels, and word-level confidence.
- **Text to Sound** - Generate foley and sound effects from a description — impacts, ambience, UI cues.
- **Text to Dialogue** - Render multi-speaker conversations with distinct voices and natural turn timing in one call.

## Audio models on one key

| 模型 | 供應商 | 價格 |
| --- | --- | --- |
| ElevenLabs/audio-isolation | ElevenLabs | $0.12 / minute |
| ElevenLabs/sound-effect-v2 | ElevenLabs | $0.15 / minute |
| ElevenLabs/speech-to-text | ElevenLabs | $0.04 / minute |
| ElevenLabs/text-to-dialogue-v3 | ElevenLabs | $0.14 / 1K chars |
| ElevenLabs/text-to-speech-multilingual-v2 | ElevenLabs | $0.12 / 1K chars |
| ElevenLabs/text-to-speech-turbo-v2.5 | ElevenLabs | $0.06 / 1K chars |

[View all 32 audio models](https://runapi.ai/zh-HK/models?modality=audio_music.md)

## 開發者選擇 RunAPI 的原因

- **一個金鑰，所有模型** - 毋須再管理多組 API 金鑰。一次整合即可存取所有供應商的 200 多個模型。
- **節省 15-25% 成本** - 我們與供應商的批量協議帶來低於直接採購的價格，而且不會額外加價。
- **自動故障切換** - 供應商發生故障時，我們會將要求路由至下一個最佳選項，讓你的應用程式持續運作。
- **兼容 OpenAI** - 可直接取代 OpenAI SDK。只需修改一行程式碼即可存取任何模型。
- **即時計費** - 只為實際使用付費。按要求計價、沒有最低消費，並可按模型和專案追蹤成本。
- **API Key 身分驗證** - 使用你的 RunAPI API key 驗證音訊 API 請求。

## Audio API 常見問題

### TTS 如何收費？

按模型費率，每 1,000 個輸入文字字元收費。轉錄按每分鐘音訊收費。
### 我可以複製聲音嗎？

可以。上傳參考樣本以建立 voice id，然後在之後的任何請求中傳入該 id。
### 支援串流嗎？

是否支援串流取決於所選端點。整合播放功能前，請查看文件中的回應格式。
### 涵蓋哪些語言？

支援的語言因模型而異，請查看所選模型文件中的語言說明。
### 你們會保留音訊或聲音樣本嗎？

請求與回應內容可能會被保留。資料處理詳情請參閱私隱政策。
### 我可以取得字詞層級的時間戳記嗎？

時間戳記支援情況及粒度取決於所選轉錄端點，請查看文件中的回應欄位；說話者標籤屬於另一項功能。

## Give your product a voice

Speech, cloning, and transcription behind one key. Start free, no credit card required.

- [Get API Key](https://runapi.ai/zh-HK/login)
- [Read the Docs](https://runapi.ai/zh-HK/docs/guides)


---

## More from RunAPI

- [Home](https://runapi.ai/zh-HK/.md)
### 產品
- [模型目錄](https://runapi.ai/zh-HK/models.md)
- [收費](https://runapi.ai/zh-HK/pricing.md)
- [服務商](https://runapi.ai/zh-HK/models#all-models)
### 開發者
- [文件](https://runapi.ai/zh-HK/docs/guides)
- [SDK](https://runapi.ai/zh-HK/sdk.md)
- [CLI](https://runapi.ai/zh-HK/cli.md)
- [MCP Server](https://runapi.ai/zh-HK/mcp.md)
### 指南
- [Claude Code 與 Cursor](https://runapi.ai/zh-HK/claude-code-vs-cursor.md)
- [Cursor API 設定](https://runapi.ai/zh-HK/cursor-api-setup.md)
- [RunAPI 與 OpenRouter](https://runapi.ai/zh-HK/openrouter-alternative.md)
### 公司
- [企業版](https://runapi.ai/zh-HK/contact.md)
- [聯絡](https://runapi.ai/zh-HK/contact.md)
### 法律
- [條款](https://runapi.ai/zh-HK/terms.md)
- [私隱](https://runapi.ai/zh-HK/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-HK",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-HK/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-HK",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-HKicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "CollectionPage",
    "name": "AI 音訊及語音 API",
    "description": "透過一個公開音訊 API，使用文字轉語音、聲音克隆、轉錄及音效功能。",
    "url": "https://runapi.ai/zh-HK/audio"
  }
]
```
