package
3.0.16+incompatible
Repository: https://github.com/mtryfoss/ari.git
Documentation: pkg.go.dev

# Packages

Package audiouri provides conversions for common sounds to asterisk-supported audio URIs.

# Functions

NewQueue creates (but does not start) a new playback queue.
Play plays the given media URI.
PlayAsync plays the audio asynchronously and returns a playback object.

# Constants

AllDTMF is a string which contains all possible DTMF digits.
Canceled indicates that the audio was canceled.
Failed indicates that the audio playback failed.
Finished indicates that the audio playback finished successfully.
Hangup indicates that the audio was interrupted by hangup.
InProgress indicates that the audio is currently playing.
Timeout indicates that audio playback timed out.

# Variables

Logger defaults to a discard handler (null output).
MaxPlaybackTime is the maximum amount of time to allow for a playback to complete.
PlaybackStartTimeout is the time to allow for Asterisk to send the PlaybackStarted before giving up.

# Structs

Options describes various options which are available to playback operations.
A Playback is a lifecycle managed audio object.
Queue represents a sequence of audio playbacks which are to be played on the associated Player.

# Interfaces

A Player is an entity which can have an audio URI played and can have event subscriptions.

# Type aliases

Status indicates the status of the prompt operation.