Project

General

Profile

Feature #1512 » 18patx.txt

pa控制发包 - jingke lu, 07/14/2021 04:26 PM

 
1

    
2
[2021-07-13 09:43:21.559]# RECV ASCII FROM 127.0.0.1 :50745>
3
POST /api/pa/start_monitor HTTP/1.1
4
Host: 127.0.0.1:8086
5
Content-Length: 37
6
Content-Type:application/json
7
AccessTokenThird:
8

    
9
{"call_station_id":1069,"zone_id":2}
10

    
11

    
12
[2021-07-13 09:43:36.734]# RECV ASCII FROM 127.0.0.1 :50757>
13
DELETE /api/pa/stop_monitor HTTP/1.1
14
Host: 127.0.0.1:8086
15
Content-Length: 25
16
Content-Type:application/json
17
AccessTokenThird:
18

    
19
{"call_station_id":1069}
20

    
21

    
22

    
23
[2021-07-13 09:43:51.857]# RECV ASCII FROM 127.0.0.1 :50771>
24
POST /api/pa/start_mic HTTP/1.1
25
Host: 127.0.0.1:8086
26
Content-Length: 42
27
Content-Type:application/json
28
AccessTokenThird:
29

    
30
{"call_station_id":1069,"zone_ids":[1,2]}
31

    
32

    
33
[2021-07-13 09:44:06.967]# RECV ASCII FROM 127.0.0.1 :50782>
34
DELETE /api/pa/stop_mic HTTP/1.1
35
Host: 127.0.0.1:8086
36
Content-Length: 25
37
Content-Type:application/json
38
AccessTokenThird:
39

    
40
{"call_station_id":1069}
41

    
42

    
43
[2021-07-13 09:48:52.767]# RECV ASCII FROM 127.0.0.1 :51025>
44
POST /api/pa/start_prerecord HTTP/1.1
45
Host: 127.0.0.1:8086
46
Content-Length: 60
47
Content-Type:application/json
48
AccessTokenThird:
49

    
50
{"audio_file_id":3,"times":1,"type":"pre","zone_ids":[1,2]}
51

    
52

    
53
[2021-07-13 09:49:07.921]# RECV ASCII FROM 127.0.0.1 :51037>
54
POST /api/pa/start_prerecord HTTP/1.1
55
Host: 127.0.0.1:8086
56
Content-Length: 60
57
Content-Type:application/json
58
AccessTokenThird:
59

    
60
{"audio_file_id":9,"times":1,"type":"bgm","zone_ids":[1,2]}
61

    
62

    
63
[2021-07-13 09:51:03.289]# RECV ASCII FROM 127.0.0.1 :51129>
64
POST /api/pa/start_tts HTTP/1.1
65
Host: 127.0.0.1:8086
66
Content-Length: 60
67
Content-Type:application/json
68
AccessTokenThird:
69

    
70
{"interval":0,"message":"first","times":1,"zone_ids":[1,2]}
71

    
72
[2021-07-13 09:57:16.441]# RECV ASCII FROM 127.0.0.1 :51439>
73
POST /api/pa/start_tts HTTP/1.1
74
Host: 127.0.0.1:8086
75
Content-Length: 75
76
Content-Type:application/json
77
AccessTokenThird:
78

    
79
{"interval":0,"message":"鐏伨first鐤忔暎123","times":1,"zone_ids":[1,2]}
80

    
81

    
82
[2021-07-13 09:51:54.561]# RECV ASCII FROM 127.0.0.1 :51158>
83
PUT /api/pa/adjust_volume HTTP/1.1
84
Host: 127.0.0.1:8086
85
Content-Length: 26
86
Content-Type:application/json
87
AccessTokenThird:
88

    
89
{"volume":57,"zone_id":2}
90

    
91

    
(1-1/5)