# speech-act-api

#### 描述
TTS 生成语音SDK
#### 安装方式

直接引入项目

#### 使用说明
使用说明
```
//初始化
const ttsRender =new TextRender;
//调用
ttsRender.ttsRender(list, config);//参数介绍看下文
```
参数介绍
```
list: [
    {
        "text": "哈哈哈哈哈哈哈哈哈哈",
        "timeStamp": 10000,
        "role":"27916512bc19da1e91cbb648b61974fd",
        "length":10，
        "semantics":{}
    }
]

config: {
        "task": {
            "supplier": "tencent",
            "model": "single",
            "interval": 1
        },
        "roles": {
            "49fcaa71cff283287b551c2f06142cf5": {
                "volume": 10,
                "speed": -2,
                "timbre": 1001,
                "sampleRate": 16000,
                "codec": "pcm"
            },
            "27916512bc19da1e91cbb648b61974fd": {
                "volume": 4,
                "speed": 2,
                "timbre": 1007,
                "sampleRate": 16000,
                "codec": "pcm"
            }
        },
        "ssml": [],
}

```
