unten ist mein Anfragecode
Code: Select all
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"}
)
Code: Select all
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''
Ich habe auch versucht, dieselbe Datei in andere Dateitypen konvertiert hochzuladen, aber ich glaube nicht, dass die Zieldatei das Problem ist, da sich 415 auf die Anfrage selbst bezieht, oder?