Python SDK for DVGateway — real-time voice AI integration
Project description
dvgateway
DVGateway Python SDK — AI 음성 서비스를 실시간 전화 통화에 연결합니다.
설치
# 기본 SDK
pip install dvgateway
# AI 어댑터 포함 (Anthropic, OpenAI)
pip install dvgateway[adapters]
빠른 시작
import asyncio
import os
from dvgateway import DVGatewayClient
from dvgateway.adapters.stt import DeepgramAdapter
from dvgateway.adapters.llm import AnthropicAdapter
from dvgateway.adapters.tts import ElevenLabsAdapter
async def main():
gw = DVGatewayClient(
base_url="http://localhost:8080",
auth={"type": "apiKey", "api_key": os.environ["DV_API_KEY"]},
)
await (
gw.pipeline()
.stt(DeepgramAdapter(api_key=os.environ["DEEPGRAM_API_KEY"], language="ko"))
.llm(AnthropicAdapter(api_key=os.environ["ANTHROPIC_API_KEY"], model="claude-sonnet-4-6"))
.tts(ElevenLabsAdapter(api_key=os.environ["ELEVENLABS_API_KEY"]))
.start()
)
asyncio.run(main())
요구사항
- Python 3.10+
- aiohttp >= 3.9.0
- websockets >= 12.0
라이선스
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dvgateway-1.0.1.tar.gz
(40.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dvgateway-1.0.1-py3-none-any.whl
(52.5 kB
view details)
File details
Details for the file dvgateway-1.0.1.tar.gz.
File metadata
- Download URL: dvgateway-1.0.1.tar.gz
- Upload date:
- Size: 40.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dc843e91d8146fe849d71c5d9cb4367234158a71fe797a31f2e6790f9fe0559
|
|
| MD5 |
7da1e55156aafc8e4e42113b71b756b2
|
|
| BLAKE2b-256 |
0f178985715a52ad1c37099cd728cd5c3f5bfa90194c9275bb6e5febfa064692
|
File details
Details for the file dvgateway-1.0.1-py3-none-any.whl.
File metadata
- Download URL: dvgateway-1.0.1-py3-none-any.whl
- Upload date:
- Size: 52.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb31df0e7d86b3852088b70a231cfb9a9e983393e8086352e9f5dbf9c2fb8b3c
|
|
| MD5 |
d639a5d65afbee471c4f2117c1878999
|
|
| BLAKE2b-256 |
ea298b2b96fce1df68c9fbf9cd49f8f6fed0e1383b03139cd755bef2c29ea31b
|