Discussions
upload audio file failed {"kind":"UnknownError","description":"Internal Server Error"}
10 months ago by chjiefang
import requests
url = "https://api.d-id.com/audios"
files = { "audio": ("merged.wav", open("merged.wav", "rb"), "audio/wav") }
headers = {
"accept": "application/json",
"authorization": "Basic apikey"
}
response = requests.post(url, files=files, headers=headers)
print(response.text)