g711

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package g711 *

  • @Author: W.w.
  • @Date: 2020/9/22 17:46
  • @Desc:

Package g711 *

  • @Author: W.w.
  • @File: g711u
  • @Date: 2023-08-03 19:20
  • @Description:

Index

Constants

View Source
const (
	BIAS     = 0x84 // define the add-in bias for 16 bit samples
	CLIP     = 32635
	ZEROTRAP = true // turn on the trap as per the MIL-STD
)

Variables

This section is empty.

Functions

func G711ADecode

func G711ADecode(g711Buf []byte) []byte

G711ADecode 返回的是intel格式的pcm数据(小端字节序)

func G711AEncode

func G711AEncode(pcmbuf []byte) []byte

G711AEncode 支持intel格式的pcm数据(小端字节序)(如果不是,pcm里面有格式转换)

func G711UDecode

func G711UDecode(g711Buf []byte) []byte

G711UDecode 返回的是intel格式的pcm数据(小端字节序)

func G711UEncode

func G711UEncode(pcmbuf []byte) []byte

G711UEncode 支持intel格式的pcm数据(小端字节序)(如果不是,pcm里面有格式转换)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL