examples/

directory
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: MIT

README

Examples

Runnable examples for the voice-go client library.

Each example is a self-contained main package in its own directory. Unless noted otherwise, every example expects a running VoiceBlender instance reachable at http://localhost:8080.

Examples

Directory Description
ivr/ Company IVR — answers inbound calls, plays a TTS menu, and routes callers to department rooms via DTMF
rtt/ Real-Time Text demo — answers an inbound RTT call and shows incoming/outgoing T.140 chunks in a small web UI (VSI WebSocket, Server-Sent Events)

Running an example

cd examples/<name>
go run .

Each example documents its own environment variables in its README and in the package comment at the top of main.go.

Directories

Path Synopsis
Command dialer originates a configurable number of outbound SIP calls through an SBC at a configurable rate, with Answering Machine Detection enabled, and applies a simple post-answer policy per call:
Command dialer originates a configurable number of outbound SIP calls through an SBC at a configurable rate, with Answering Machine Detection enabled, and applies a simple post-answer policy per call:
Command pstn is a tiny "fake PSTN" service useful for exercising upstream SBCs / dialers.
Command pstn is a tiny "fake PSTN" service useful for exercising upstream SBCs / dialers.
Command rtt is a Real-Time Text (T.140 / RFC 4103) demo for VoiceBlender, extended with a WebRTC audio bridge so a browser can join the same room as the inbound SIP caller.
Command rtt is a Real-Time Text (T.140 / RFC 4103) demo for VoiceBlender, extended with a WebRTC audio bridge so a browser can join the same room as the inbound SIP caller.
Command sbc is a tiny Session Border Controller (B2BUA) built on VoiceBlender.
Command sbc is a tiny Session Border Controller (B2BUA) built on VoiceBlender.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL