Skip to content

telequick/python-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeleQuick Python SDK

The official Python wrapper for TeleQuick. Async-first; built on aioquic for ALPN-QUIC transport and PyJWT for zero-trust auth, with a native FFI core for audio processing.

Installation

pip install .

Quick start

Point TELEQUICK_CREDENTIALS at your service-account JSON, then:

import asyncio
from telequick.client import TeleQuickClient
from telequick.media  import TeleQuickAudioStream

async def main():
    client = TeleQuickClient("pbx.telequick.com:443")

    # Originate an outbound call against an external trunk.
    response = await client.originate(
        to="+1234567890",
        ai_wss="wss://my-chatbot.com/media",
    )

    # Multiplex the raw audio stream.
    stream = TeleQuickAudioStream()
    await stream.connect("wss://pbx.telequick.com/media/session_789")
    async for pcm_chunk in stream.receive_audio_loop():
        # 16 kHz PCM, ready for your voice API.
        ...

if __name__ == "__main__":
    asyncio.run(main())

Native core

The FFI core (libtelequick_core_ffi.{so,dylib,dll}) is loaded at runtime. Set TELEQUICK_LIB_PATH if it isn't on the default loader path; see the core-sdk repo for build details.

About

Python SDK for TeleQuick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors