Programming Reference:AudioStimulus Class
From BCI2000 Wiki
Contents |
[edit]
Location
src/shared/modules/application/audio
[edit]
Synopsis
The AudioStimulus class unites the functionality of the SpeechStimulus Class, and the SoundStimulus Class in a single object.
[edit]
Properties
[edit]
string Sound (rw)
A name of a sound file, or a text to speak. When enclosed with single quotes, the string is interpreted as a text to speak.
[edit]
float Volume (rw)
A number between 0 and 1, representing the volume of audio output.
[edit]
Methods
[edit]
Present()
Renders the text given by the Sound property using the system-wide text-to-speech engine, or begins playback of the sound file specified there.
[edit]
Conceal()
Does nothing.
[edit]
See also
Programming Reference:Stimulus Class, Programming Reference:SoundStimulus Class, Programming Reference:SpeechStimulus Class.
