Valetudo/backend/lib/core/capabilities/SpeakerTestCapability.js

27 lines
604 B
JavaScript

const Capability = require("./Capability");
const NotImplementedError = require("../NotImplementedError");
/**
* Plays some kind of sound to test the current audio volume
*
* @template {import("../ValetudoRobot")} T
* @extends Capability<T>
*/
class SpeakerTestCapability extends Capability {
/**
* @abstract
* @returns {Promise<void>}
*/
async playTestSound() {
throw new NotImplementedError();
}
getType() {
return SpeakerTestCapability.TYPE;
}
}
SpeakerTestCapability.TYPE = "SpeakerTestCapability";
module.exports = SpeakerTestCapability;