The official Go wrapper for TeleQuick — telephony origination, media streaming, and zero-trust JWT auth over ALPN-QUIC.
go get github.com/telequick/go-sdkSet 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()
}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.