| // Speaker allows clients to control the music being played. |
| // Play starts or continues the current song. |
| // PlaySong plays back the given song title, if possible. |
| PlaySong(songName string) (error) |
| // PlayStream plays the given stream of music data. |
| PlayStream() stream<[]byte, _> (error) |
| // GetSong retrieves the title of the Speaker's current song, if any. |
| GetSong() (string, error) |
| // Pause playback of the Speaker's current song. |
| // Stop playback of the Speaker's current song. |
| // Volume adjusts the Speaker's volume. |
| Volume(volumeLevel uint16) (error) |
| // GetVolume retrieves the Speaker's volume. |
| GetVolume() (uint16, error) |
| // AddSongs adds the list of given songs to the song library. |
| AddSongs(songs []string) (error) |
| // RemoveSongs removes the list of given songs from the song library. |
| RemoveSongs(songs []string) (error) |