import "gobot.io/x/gobot/platforms/audio"
Package audio is based on aplay audio adaptor written by @colemanserious (https://github.com/colemanserious)
Package audio is based on aplay audio adaptor written by @colemanserious (https://github.com/colemanserious)
Package audio provides the Gobot adaptor for audio.
For more information refer to the README: https://github.com/hybridgroup/gobot/blob/master/platforms/audio/README.md
audio_adaptor.go audio_driver.go doc.go
CommandName defines the playback command for a sound and accepts:
string: The filename of the audio that needs playback
RunCommand executes the playback command for a sound file and accepts:
string: The audio command to be use for playback string: The filename of the audio that needs playback
type Adaptor struct {
// contains filtered or unexported fields
}
Adaptor is gobot Adaptor connection to audio playback
NewAdaptor returns a new audio Adaptor
Connect establishes a connection to the Audio adaptor
Finalize terminates the connection to the Audio adaptor
Name returns the Adaptor Name
SetName sets the Adaptor Name
Sound plays a sound and accepts:
string: The filename of the audio to start playing
Driver is gobot software device for audio playback
NewDriver returns a new audio Driver. It accepts:
*Adaptor: The audio adaptor to use for the driver
string: The filename of the audio to start playing
func (d *Driver) Connection() gobot.Connection
Connection returns the Driver Connection
Filename returns the file name for the driver to playback
Halt halts the Driver
Name returns the Driver Name
Play plays back the current sound file.
SetName sets the Driver Name
Sound plays back a sound file. It accepts:
string: The filename of the audio to start playing
Start starts the Driver
Package audio imports 7 packages (graph) and is imported by 1 packages. Updated 2019-02-26. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).