forked from Jibo-Revival-Group/JiboOs
10 lines
581 B
JavaScript
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.
|
|
*/ |