Documentation ¶
Overview ¶
Package audiouri provides conversions for common sounds to asterisk-supported audio URIs
Index ¶
- Variables
- func Check(uri string) error
- func DateTimeURI(t time.Time) (ret []string)
- func DigitsURI(digits string, hash string) []string
- func DurationURI(dur time.Duration) (ret []string)
- func NumberURI(number int) string
- func RecordingURI(name string) string
- func ToneURI(name string) string
- func WaitURI(t time.Duration) []string
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedPlaybackPrefixes = []string{
"sound", "recording", "number", "digits", "characters", "tone",
}
SupportedPlaybackPrefixes is a list of valid prefixes for media URIs.
Functions ¶
func DateTimeURI ¶
DateTimeURI returns the set of media URIs for playing the current date and time.
func DurationURI ¶
DurationURI returns the set of media URIs for playing the given duration, in human terms (days, hours, minutes, seconds). If any of these terms are zero, they will not be spoken.
func RecordingURI ¶
RecordingURI returns the media URI for playing an Asterisk StoredRecording
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.