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

# deAPI STT

> DeAPISTTService transcribes speech segments with deAPI's synchronous transcription endpoint and detects the language automatically.

> [!NOTE]
>
> **Community-maintained integration.** This service is built and
> maintained by
> [deapi-ai](https://github.com/deapi-ai)
> . Pipecat does not test or officially support it. Please report issues and
> request changes on the
> [source repository](https://github.com/deapi-ai/pipecat-deapi)
> . Learn more about
> [community integrations](https://docs.pipecat.ai/api-reference/server/services/community-integrations.md)
> .

## Overview

`DeAPISTTService` sends each speech segment to
[deAPI](https://deapi.ai)'s synchronous transcription endpoint and pushes the
transcript as a `TranscriptionFrame`. It extends Pipecat's
`SegmentedSTTService`: the pipeline's VAD decides where a segment ends, so a
VAD analyzer is required. The language is detected automatically, a segment can
be up to 60 seconds long, and one final transcript is pushed per segment.

> [card] [Source Repository](https://github.com/deapi-ai/pipecat-deapi)
>
> Source code, example, and issues for the deAPI integration

> [card] [Demo](https://github.com/deapi-ai/pipecat-deapi/blob/main/demo/demo.mp4)
>
> A recorded conversation with an agent running on deAPI

> [card] [deAPI Docs](https://docs.deapi.ai/api/v2/audio/transcriptions-sync)
>
> deAPI documentation for this endpoint

> [card] [API Keys](https://app.deapi.ai/settings/api-keys)
>
> Create and manage your deAPI API keys

## Installation

This is a community-maintained package distributed separately from `pipecat-ai`:

```bash theme={null}
uv add pipecat-deapi
```

## Prerequisites

1. **deAPI account**: Sign up at [deAPI](https://deapi.ai)
2. **API key**: Create a key in the [deAPI panel](https://app.deapi.ai/settings/api-keys)

### Required Environment Variables

* `DEAPI_API_KEY`: Your deAPI API key

## Configuration

**api\_key** `str` *required*

deAPI API key.

**base\_url** `str` (default: [https://api.deapi.ai/api/v2/audio/transcriptions/sync](https://api.deapi.ai/api/v2/audio/transcriptions/sync))

URL of the synchronous transcription endpoint.

**aiohttp\_session** `aiohttp.ClientSession` (default: None)

Optional session for the HTTP requests. If not provided, the service creates
and closes its own.

**sample\_rate** `int` (default: None)

Audio sample rate in Hz. If not provided, uses the pipeline's rate.

**settings** `DeAPISTTService.Settings` (default: None)

Runtime-configurable settings. See [Settings](#settings) below.

### Settings

| Parameter | Type | Default | Description |
| - | - | - | - |
| `model` | `str` | `"FluidSpeechPro"` | Synchronous transcription model. |

## Usage

```python theme={null}
import os

from pipecat.audio.vad.silero import SileroVADAnalyzer
from pipecat.processors.aggregators.llm_response_universal import (
    LLMContextAggregatorPair,
    LLMUserAggregatorParams,
)
from pipecat_deapi import DeAPISTTService

stt = DeAPISTTService(api_key=os.environ["DEAPI_API_KEY"])

user_aggregator, assistant_aggregator = LLMContextAggregatorPair(
    context,
    user_params=LLMUserAggregatorParams(vad_analyzer=SileroVADAnalyzer()),
)
```

See the [source repository](https://github.com/deapi-ai/pipecat-deapi) for a complete voice agent.

## Compatibility

Tested with Pipecat v1.17.0. Check the [source repository](https://github.com/deapi-ai/pipecat-deapi) for the
latest tested version and changelog.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.