Skip to content

telequick/go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeleQuick Go SDK

The official Go wrapper for TeleQuick — telephony origination, media streaming, and zero-trust JWT auth over ALPN-QUIC.

Installation

go get github.com/telequick/go-sdk

Quick start

Set TELEQUICK_CREDENTIALS to your service-account JSON, then:

package main

import (
    "log"

    telequick "github.com/telequick/go-sdk/pkg"
)

func main() {
    client, err := telequick.NewTeleQuickClient("pbx.telequick.com:443")
    if err != nil {
        log.Fatalf("connect: %v", err)
    }

    // Originate an outbound call.
    if _, err := client.Originate("+1234567890", "wss://my-chatbot.com/media", ""); err != nil {
        log.Fatalf("originate: %v", err)
    }

    // Stream media.
    stream := telequick.NewTeleQuickAudioStream()
    if err := stream.Connect("wss://pbx.telequick.com/media/session_789"); err != nil {
        log.Fatalf("media: %v", err)
    }
    stream.OnAudio(func(pcm []byte) {
        // Forward PCM to your LLM / voice API.
    })
    stream.ReceiveAudioLoop()
}

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

Go SDK for TeleQuick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors