-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathtest.py
More file actions
40 lines (34 loc) · 928 Bytes
/
Copy pathtest.py
File metadata and controls
40 lines (34 loc) · 928 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""
先运行main.bat
"""
import requests
# # 根据音频说话
data = {
"type": "speak",
"speech_path": r"data/speech/uri_speech_0.wav" # 修改为你的语音音频路径
}
# # 根据音频节奏摇
# data = {
# "type": "rhythm",
# "music_path": r"data/music/Noisy Radio - Chipi Chipi Chapa Chapa.flac", # 修改为你的音频路径
# "beat": 1
# }
# # 根据音频和人声唱歌
# data = {
# "type": "sing",
# "music_path": r"data/song/不分手的恋爱-汪苏泷.MP3", # 修改为原曲路径
# "voice_path": r"data/song/不分手的恋爱-汪苏泷_voice.MP3", # 修改为人声音频路径
# "mouth_offset": 0.0,
# "beat": 2
# }
# # 停止所有动作
# data = {
# "type": "stop",
# }
# # 换皮肤
# data = {
# "type": "change_img",
# "img": r'data/images/lambda_01.png'
# }
res = requests.post('http://127.0.0.1:7888/alive', json=data)
print(res.json())