public class OpusUtils
extends java.lang.Object
| 构造器和说明 |
|---|
OpusUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
convertGoByte2Int(byte[] bytes)
这里需要注意golang的byte是uint8 java是int8 不能使用BytesReader的toInt方法转换
|
static int |
getUint8(short s) |
static boolean |
read(java.io.InputStream in,
byte[] buffer)
读取数据
|
static java.util.List<byte[]> |
readOpusSheet(byte[] audio)
解析opus
|
static boolean |
verifyHeader(byte[] headBuffer)
验证 opus header
|
public static int convertGoByte2Int(byte[] bytes)
bytes - public static int getUint8(short s)
public static boolean verifyHeader(byte[] headBuffer)
headBuffer - public static boolean read(java.io.InputStream in,
byte[] buffer)
throws java.io.IOException
in - buffer - java.io.IOExceptionpublic static java.util.List<byte[]> readOpusSheet(byte[] audio)
audio - audioCopyright © 2023. All rights reserved.