client

command
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

client

This is a SIP client that sends an INVITE and then sends PCMU audio for a local file. It is useful to test the sip server.

Running

At this time no options exist, go run . is all that is required. It connects to a SIP server running on the local machine and will send audio.

This program expects a audio.mkv to be in the directory. The file should contain PCM s16le in 20ms samples with a sample rate of 8000 and one channel. You can use the command below to convert a file, or convert this one.

Converting an audio file

ffmpeg -i $AUDIO_FILE -c:a pcm_s16le audio.mkv

gst-launch-1.0 filesrc location=$AUDIO_FILE ! decodebin ! audiomixer output-buffer-duration=20000000 ! audiorate ! audioresample ! audioconvert ! audio/x-raw, format=S16LE, rate=8000, channels=1 ! matroskamux ! filesink location=audio.mkv

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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