Documentation ¶
Index ¶
Constants ¶
View Source
const (
OSReleaseFile = "/etc/os-release"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlsaSound ¶
type AlsaSound struct{}
AlsaSound implements SoundSystem using alsa-utils
func NewAlsaSound ¶
func NewAlsaSound() *AlsaSound
type SoundSystem ¶
type SoundSystem interface { // RecordToFile takes the given filepath, creates the file and write WAV comtabile audio to it, until context is cancelled RecordToFile(ctx context.Context, filePath string) error // PlayWAV playes the given file until context is canceled PlayWAV(ctx context.Context, filePath string) error }
SoundSystem represents a way to play/record sound on a raspberry pi
Click to show internal directories.
Click to hide internal directories.