16 #ifndef AACE_ALEXA_ALEXA_ENGINE_INTERFACES_H 17 #define AACE_ALEXA_ALEXA_ENGINE_INTERFACES_H 52 virtual void onLocalSetVolume(
SpeakerType type, int8_t volume ) = 0;
53 virtual void onLocalAdjustVolume(
SpeakerType type, int8_t delta ) = 0;
54 virtual void onLocalSetMute(
SpeakerType type,
bool mute ) = 0;
60 stream <<
"ALEXA_VOLUME";
63 stream <<
"ALERTS_VOLUME";
96 static constexpr uint64_t UNSPECIFIED_INDEX = std::numeric_limits<uint64_t>::max();
98 virtual bool onStartCapture(
Initiator initiator, uint64_t keywordBegin, uint64_t keywordEnd,
const std::string& keyword ) = 0;
99 virtual bool onStopCapture() = 0;
100 virtual bool enableWakewordDetection() = 0;
101 virtual bool disableWakewordDetection() = 0;
107 stream <<
"HOLD_TO_TALK";
110 stream <<
"TAP_TO_TALK";
113 stream <<
"WAKEWORD";
124 virtual void onLocalStop() = 0;
125 virtual void removeAllAlerts() = 0;
190 virtual void onTogglePressed(
PlaybackToggle toggle,
bool action) = 0;
242 AUTHORIZATION_FAILED,
267 AUTHORIZATION_EXPIRED,
272 UNSUPPORTED_GRANT_TYPE,
282 AUTHORIZATION_PENDING,
297 INVALID_CBL_CLIENT_ID
306 stream <<
"UNINITIALIZED";
309 stream <<
"REFRESHED";
315 stream <<
"UNRECOVERABLE_ERROR";
324 stream <<
"NO_ERROR";
327 stream <<
"UNKNOWN_ERROR";
330 stream <<
"AUTHORIZATION_FAILED";
333 stream <<
"UNAUTHORIZED_CLIENT";
336 stream <<
"SERVER_ERROR";
339 stream <<
"INVALID_REQUEST";
342 stream <<
"INVALID_VALUE";
345 stream <<
"AUTHORIZATION_EXPIRED";
348 stream <<
"UNSUPPORTED_GRANT_TYPE";
351 stream <<
"INVALID_CODE_PAIR";
354 stream <<
"AUTHORIZATION_PENDING";
357 stream <<
"SLOW_DOWN";
360 stream <<
"INTERNAL_ERROR";
363 stream <<
"INVALID_CBL_CLIENT_ID";
397 virtual void onReportDiscoveredPlayers(
const std::vector<DiscoveredPlayerInfo>& discoveredPlayers ) = 0;
398 virtual void onRequestToken(
const std::string& localPlayerId ) = 0;
399 virtual void onLoginComplete(
const std::string& localPlayerId ) = 0;
400 virtual void onLogoutComplete(
const std::string& localPlayerId ) = 0;
401 virtual void onPlayerEvent(
const std::string& localPlayerId,
const std::string& eventName ) = 0;
402 virtual void onPlayerError(
const std::string& localPlayerId,
const std::string& errorName,
long code,
const std::string& description,
bool fatal ) = 0;
403 virtual void onSetFocus(
const std::string& playerId ) = 0;
404 virtual void onRemoveDiscoveredPlayer(
const std::string& localPlayerId ) = 0;
412 virtual void onPlayerEvent(
const std::string& eventName ) = 0;
413 virtual void onPlayerError(
const std::string& errorName,
long code,
const std::string& description,
bool fatal ) = 0;
414 virtual void onSetFocus() = 0;
448 virtual void onLocalSetBandLevels(
const std::vector<EqualizerBandLevel>& bandLevels ) = 0;
459 virtual void onLocalAdjustBandLevels(
const std::vector<EqualizerBandLevel>& bandAdjustments ) = 0;
467 virtual void onLocalResetBands(
const std::vector<EqualizerBand>& bands ) = 0;
496 stream << equalizerBandToString(band);
503 #endif // AACE_ALEXA_ALEXA_ENGINE_INTERFACES_H std::pair< EqualizerBand, int > EqualizerBandLevel
Definition: AlexaEngineInterfaces.h:439
AuthState
Definition: AlexaEngineInterfaces.h:201
Definition: AlexaEngineInterfaces.h:72
Definition: AlexaEngineInterfaces.h:420
Definition: AlexaEngineInterfaces.h:122
AuthError
Definition: AlexaEngineInterfaces.h:227
PlaybackButton
Definition: AlexaEngineInterfaces.h:136
Definition: AddressBook.h:26
Definition: AlexaEngineInterfaces.h:131
Mid-range equalizer band.
PlaybackToggle
Definition: AlexaEngineInterfaces.h:166
Definition: AlexaEngineInterfaces.h:196
SpeakerType
Definition: AlexaEngineInterfaces.h:39
Initiator
Definition: AlexaEngineInterfaces.h:77
Definition: AlexaEngineInterfaces.h:34
EqualizerBand
Definition: AlexaEngineInterfaces.h:426