Documentation ¶
Index ¶
Constants ¶
View Source
const ( //FrameSize is the preset frame size for each audio data FrameSize = 1920 //SampleRate is the preset sample rate for each audio data SampleRate = 48000 //FrameDuration is the duration of audio data in each frame FrameDuration = time.Second * FrameSize / SampleRate )
Variables ¶
This section is empty.
Functions ¶
func CompressAudio ¶
CompressAudio uses opus codec to compress raw MONO audio data
func DecompressAudio ¶
DecompressAudio uses opus codec to decompress opus data to raw MONO audio data
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.