ниже приведен код моего запроса
Код: Выделить всё
resp = requests.post(
url,
data={
"displayName": filename,
"locale": "en-GB",
"contentContainerUrl": container_uri,
"ContentUrls": [content_uri],
"properties": {
"diarizationEnabled": False,
"wordLevelTimestampsEnabled": False,
"punctuationMode": "DictatedAndAutomatic",
"profanityFilterMode": "Masked"
}
},
headers={"Ocp-Apim-Subscription-Key": sub_key, "Content-Type": "application/json"}
)
Код: Выделить всё
displayName: Recording.wav
Content container url:https://RESOURCE.blob.core.windows.net
contents url: https://RESOURCE.blob.core.windows.net/cnnn-blob/Recording.wav
response content: b''
Я также пробовал загрузить один и тот же файл, преобразованный в файлы разных типов, но не думаю, что проблема в целевом файле, поскольку 415 относится к самому запросу, верно?
Подробнее здесь: https://stackoverflow.com/questions/793 ... pported-me