OptionalbandsBand frames: length of spectrum.
OptionalchannelBin frames: channel count of the visualization stream; 0 when unknown.
OptionalchannelsBin frames: the subscription's channel layout.
FFT size actually used.
OptionalfirstBin frames: FFT bin index of the first value; value i is centred at (firstBin + i) * sampleRate / fftSize Hz. 0, with empty arrays, when the range holds no bin.
Host system time when the frame was computed, Unix epoch milliseconds.
OptionalleftBin frames with channels: 'stereo': the first channel, one dB value per bin.
Upper edge in Hz: the requested one capped at sampleRate / 2, or sampleRate / 2 when none was given.
Lower edge of the frequency range in Hz.
Output data format contained in this frame.
OptionalrightBin frames with channels: 'stereo': the second channel, or the first again for a mono stream.
Sample rate of the visualization stream in Hz; 0 when unknown.
Scale of the values; always db for bin frames.
OptionalspectrumBand frames: one value per band in the frame's scale; weighted values lie in [0, 1], db values have a floor of -160. Bin frames with channels: 'mix': one power value in dB per bin.
Paused or stopped frames are silence.
Seconds since the visualization stream last started; the frame is computed from the fftSize samples ending at this time.
OptionalsubscriptionSubscription the frame belongs to; absent when the request named none.
Always true here; a failed call resolves with ApiFailure instead.
Successful response from
audio.getSpectrum.