流式传输
This commit is contained in:
13
test_tts.py
Normal file
13
test_tts.py
Normal file
@ -0,0 +1,13 @@
|
||||
import requests
|
||||
import json
|
||||
|
||||
url = "http://localhost:5001/text-to-blendshapes"
|
||||
data = {
|
||||
"text": "你好",
|
||||
"language": "zh-CN"
|
||||
}
|
||||
|
||||
print("发送测试请求...")
|
||||
response = requests.post(url, json=data)
|
||||
print(f"状态码: {response.status_code}")
|
||||
print(f"响应: {response.json()}")
|
||||
Reference in New Issue
Block a user