@yoda/audio

The audio module exports AudioManager, which provides APIs to to control volume of audio.

var AudioManager = require('@yoda/audio').AudioManager;
AudioManager.setVolume(AudioManager.STREAM_TTS, 30); // this sets the tts vol to 30.
AudioManager.getVolume(AudioManager.STREAM_AUDIO); // get the audio tts.

Classes

AudioManager

Members

(inner) AudioBase

This define the streams config

(inner) playingMap

Modules that will record playing state

Methods

(inner) getStreamName() → {string}

Get the human readable string for the stream type

Returns:
Type:
string

return the stream type name, "audio", "tts", "playback", "alarm" and "system".

Type Definitions

Shaper