Skip to main content

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["GATEWAY_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.0.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dvgateway-1.0.0-py3-none-any.whl (52.0 kB view details)

Uploaded Python 3

File details

Details for the file dvgateway-1.0.0.tar.gz.

File metadata

  • Download URL: dvgateway-1.0.0.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for dvgateway-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c86f25f8f1a511a3007b2349d9dd8c4de389c6a89a671884a0de482ae4a8c0e7
MD5 3b3c2f0cde1c7024a39cce6e696fc842
BLAKE2b-256 44dac25c7421d5f0e51818c81b9766747ef8fced375c118f08595b9e542eb0a7

See more details on using hashes here.

File details

Details for the file dvgateway-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dvgateway-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 52.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for dvgateway-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2324828e0cfe7596c9cd4bc694a1c75f0fe4e43ec9d69714b46965ac3b4416e2
MD5 992eb3fbd591a5788fb84cf188b115dd
BLAKE2b-256 0143d097c5c05db34153e50ab068a93b0a33f38b784abef3344802cc7a8c0b37

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page