SoundBuffer class

ru.yandex.speechkit

public  class  SoundBuffer 

Class for storing audio data.

Constructors

SoundBuffer(byte[] data, SoundInfo soundInfo)

Methods

byte[]getData()

Get raw audio data.

SoundInfogetSoundInfo()

Get sound attributes.

voidsetSoundInfo(SoundInfo soundInfo)

Set sound attributes.

Constructor descriptions

SoundBuffer

public SoundBuffer (byte[] data, SoundInfo soundInfo)

Parameters:
data

Raw audio data stored as byte[].

soundInfo

Sound attributes.

Method descriptions

getData

public byte[] getData ()

Get raw audio data.

getSoundInfo

public SoundInfo getSoundInfo ()

Get sound attributes.

setSoundInfo

public void setSoundInfo (SoundInfo soundInfo)

Set sound attributes.