+++ /dev/null
-#include "bk_websocket.h"
-
-
-// {
-// "header": {
-// "trace_id": "x70g1n8gfdg",
-// "event": "Start"
-// },
-// "payload": {
-// "device_id": "test_device_id", // 设备ID/用户ID
-// "user_agent": "python", // 浏览器uset-gaent 自定义
-// "dialog_id":"", // 继承上轮对话 空新建一个对话
-// "in_format": "pcm", // 上传音频格式
-// "out_format": "pcm", // 返回音频格式
-// "in_sample_rate": 16000, // 上传音频采样率
-// "volume": "10", // 音量设置
-// "sample_rate": 16000, // 返回音频采样率
-// "voice": "zh_female_shuangkuaisisi_moon_bigtts", // 音色配置
-// "voice_detection": "disable" // 开启自动断句 enabled/disable
-// }
-// }
-
-
-int bk_websocket_tts(void) {
- WebSocketClient *client;
- client = init_websocket_client("ws://118.145.158.207:22080/vc/chat",NULL);
- if (client== NULL) {
- return -1;
- }
-
- receive_websocket_message(client,);
-// "ws://118.145.158.207:22080/vc/chat
- return 0;
-}
-
-
-int bk_websocket_asr(void) {
- WebSocketClient *client;
- client = init_websocket_client("ws://118.145.158.207:22080/vc/chat",NULL);
- if (client== NULL) {
- return -1;
- }
-// "ws://118.145.158.207:22080/vc/chat
- return 0;
-}
-
-
-int bk_websocket_chat(void) {
- WebSocketClient *client;
- client = init_websocket_client("ws://118.145.158.207:22080/vc/chat",NULL);
- if (client== NULL) {
- return -1;
- }
-// "ws://118.145.158.207:22080/vc/chat
- return 0;
-}
\ No newline at end of file