Whisper
Overview
Transcribing Audio
curl -X POST https://inference.datacrunch.io/whisper/predict \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your_api_key>" \
-d \
'{
"audio_input": "<AUDIO_FILE_URL>"
}'import requests
url = "https://inference.datacrunch.io/whisper/predict"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer <your_api_key>"
}
data = {
"audio_input": "<AUDIO_FILE_URL>"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())const axios = require('axios');
const url = 'https://inference.datacrunch.io/whisper/predict';
const headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer <your_api_key>'
};
const data = {
audio_input: '<AUDIO_FILE_URL>'
};
axios.post(url, data, { headers: headers })
.then((response) => {
console.log(response.data);
})
.catch((error) => {
console.error('Error:', error);
});Translating Audio
curl -X POST https://inference.datacrunch.io/whisper/predict \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your_api_key>" \
-d \
'{
"audio_input": "<AUDIO_FILE_URL>",
"translate": true
}'Generating Subtitles
Performing Speaker Diarization
API Parameters
Last updated
Was this helpful?