> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cartesia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Pipecat

<Frame>
  <img src="https://mintcdn.com/cartesia-2650f86a/GOsvXpql8JfAlgjy/assets/images/pipecat.png?fit=max&auto=format&n=GOsvXpql8JfAlgjy&q=85&s=0b4569efdc203a006b16fdac1a523823" alt="Pipecat logo" width="1169" height="340" data-path="assets/images/pipecat.png" />
</Frame>

## 概要

[**Pipecat**](https://www.pipecat.ai/) は、リアルタイムの **ボイス** エージェント向けのオープンソース Python フレームワークです。

ボイスエージェントを構築するには、パイプライン、メディア・通信トランスポート (Daily や LiveKit など)、プラガブルな AI モデルの作成とオーケストレーションが必要です。

**Cartesia** は、Pipecat リポジトリで **[TTS および STT サービス](https://github.com/pipecat-ai/pipecat/tree/main/src/pipecat/services/cartesia)** のファーストパーティ プロバイダー プラグインとして利用できます。

## 前提条件

Pipecat のサンプルには最近の Python のインストールが必要です (現時点の前提条件は Pipecat リポジトリの [ルートレベル README](https://github.com/pipecat-ai/pipecat/tree/main#prerequisites) を参照してください)。

TTS/STT 用に **`cartesia`** エクストラを含めて **`pipecat-ai`** Python パッケージをインストールします (角括弧構文):

```
pip install "pipecat-ai[cartesia,...]"

# or

uv add "pipecat-ai[cartesia,...]"
```

サンプルに必要な **トランスポート** エクストラも選択する必要があります。これは、そのサンプルについて上流の README に記載されているものに合わせれば OK です。

## はじめに - TTS (WebSockets)

Pipecat の getting-started サンプルは、Cartesia TTS を Pipecat の [TTS WebSocket API](https://docs.cartesia.ai/api-reference/tts/websocket) に組み込むための、コピーしやすい小さな経路を提供します。

<Card title="Cartesia & Pipecat | Getting Started" icon="github" href="https://github.com/pipecat-ai/pipecat/tree/main/examples/getting-started">
  Pipecat リポジトリ内の getting-started サンプル。
</Card>

## はじめに - TTS と STT (WebSockets & HTTP)

Cartesia STT および TTS を使ったボイス重視の小規模サンプルでは、2 つのトランスポート (WebSockets または HTTP) から選べます:

<CardGroup cols={2}>
  <Card title="Pipecat & Cartesia Voice (WebSockets)" icon="github" href="https://github.com/pipecat-ai/pipecat/blob/main/examples/voice/voice-cartesia.py">
    Cartesia STT と TTS を WebSocket で使用するボイスボット。
  </Card>

  <Card title="Pipecat & Cartesia Voice (HTTP)" icon="github" href="https://github.com/pipecat-ai/pipecat/blob/main/examples/voice/voice-cartesia-http.py">
    Cartesia STT と TTS を HTTP で使用する同じフロー。
  </Card>
</CardGroup>

## オーケストレーションされた会話型 AI

Pipecat でオーケストレーションされたエンドツーエンドのボイスエージェント体験 (VAD -> STT -> LLM -> TTS) を示す、より完成度の高いサンプルアプリについては、StudyPal を参照してください:

<Card title="Pipecat > StudyPal" icon="github" href="https://github.com/pipecat-ai/pipecat-examples/tree/main/studypal">
  pipecat-examples リポジトリ内の StudyPal サンプル。
</Card>
