Files
JiboOs/docs/bt/behaviors/PlayAudio.js
2026-03-16 13:53:01 +02:00

10 lines
581 B
JavaScript

/**
* @class PlayAudio
* @extends jibo.bt.Behavior
* @memberof jibo.bt.behaviors
* @description Plays the audio specified by `audioPath`. Succeeds when the audio file is finished playing.
* @param {Object} options See {@link jibo.bt.Behavior|Behavior} for all options.
* @param {String} options.audioPath The path to any audo file format supported by HTML5 Audio. This behaviuor assumes `${project}/audio`
* is the root for all the audio files.
* @param {Boolean} options.cache=true `true` to cache the audio. `false` to play once and destroy.
*/