@Service public class VocalizationService extends Object implements Vocalization
| Constructor and Description |
|---|
VocalizationService(com.wu.framework.inner.lazy.database.expand.database.persistence.LazyOperation lazyOperation) |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
addBytes(byte[] data1,
byte[] data2) |
void |
play(String text) |
byte[] |
subByte(byte[] b,
int off,
int length)
截取byte数组 不改变原数组
|
byte[] |
textToByte(String text)
description 文本转换成语音
|
List<ChineseCharacters> |
voiceData() |
public VocalizationService(com.wu.framework.inner.lazy.database.expand.database.persistence.LazyOperation lazyOperation)
public static byte[] addBytes(byte[] data1,
byte[] data2)
public byte[] textToByte(String text)
textToByte in interface Vocalizationtext@return - public void play(String text)
play in interface Vocalizationpublic List<ChineseCharacters> voiceData()
voiceData in interface Vocalizationpublic byte[] subByte(byte[] b,
int off,
int length)
b - 原数组off - 偏差值(索引)length - 长度Copyright © 2022. All rights reserved.