typefile
{
"audio": "https://replicate.delivery/pbxt/Js2Fgx9MSOCzdTnzHQLJXj7abLp3JLIG3iqdsYXV24tHIdk8/OSR_uk_000_0050_8k.wav",
"batch_size": 64,
"return_timestamps": true,
"task": "transcribe"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_QGZ**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run vaibhavs10/incredibly-fast-whisper using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"vaibhavs10/incredibly-fast-whisper:37dfc0d6a7eb43ff84e230f74a24dab84e6bb7756c9b457dbdcceca3de7a4a04",
{
input: {
audio: "https://replicate.delivery/pbxt/Js2Fgx9MSOCzdTnzHQLJXj7abLp3JLIG3iqdsYXV24tHIdk8/OSR_uk_000_0050_8k.wav",
batch_size: 64,
return_timestamps: true,
task: "transcribe"
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_QGZ**********************************
This is your API token. Keep it to yourself.
import replicate
Run vaibhavs10/incredibly-fast-whisper using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"vaibhavs10/incredibly-fast-whisper:37dfc0d6a7eb43ff84e230f74a24dab84e6bb7756c9b457dbdcceca3de7a4a04",
input={
"audio": "https://replicate.delivery/pbxt/Js2Fgx9MSOCzdTnzHQLJXj7abLp3JLIG3iqdsYXV24tHIdk8/OSR_uk_000_0050_8k.wav",
"batch_size": 64,
"return_timestamps": True,
"task": "transcribe"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_QGZ**********************************
This is your API token. Keep it to yourself.
Run vaibhavs10/incredibly-fast-whisper using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "vaibhavs10/incredibly-fast-whisper:37dfc0d6a7eb43ff84e230f74a24dab84e6bb7756c9b457dbdcceca3de7a4a04",
"input": {
"audio": "https://replicate.delivery/pbxt/Js2Fgx9MSOCzdTnzHQLJXj7abLp3JLIG3iqdsYXV24tHIdk8/OSR_uk_000_0050_8k.wav",
"batch_size": 64,
"return_timestamps": true,
"task": "transcribe"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "cta2nolbw2l272ly23vmzi7y5u",
"model": "vaibhavs10/incredibly-fast-whisper",
"version": "37dfc0d6a7eb43ff84e230f74a24dab84e6bb7756c9b457dbdcceca3de7a4a04",
"input": {
"audio": "https://replicate.delivery/pbxt/Js2Fgx9MSOCzdTnzHQLJXj7abLp3JLIG3iqdsYXV24tHIdk8/OSR_uk_000_0050_8k.wav",
"batch_size": 64,
"return_timestamps": true,
"task": "transcribe"
},
"logs": "",
"output": {
"chunks": [
{
"text": " the little tales they tell are false the door was barred locked and bolted as well ripe pears are fit hours fly by much too soon. The room was crowded",
"timestamp": [
0,
29.72
]
},
{
"text": " with a mild wab. The room was crowded with a wild mob. This strong arm shall shield your",
"timestamp": [
29.72,
38.98
]
},
{
"text": " honour. She blushed when he gave her a white orchid The beetle droned in the hot June sun",
"timestamp": [
38.98,
48.52
]
}
],
"text": " the little tales they tell are false the door was barred locked and bolted as well ripe pears are fit hours fly by much too soon. The room was crowded with a mild wab. The room was crowded with a wild mob. This strong arm shall shield your honour. She blushed when he gave her a white orchid The beetle droned in the hot June sun"
},
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-11-13T15:44:10.433105Z",
"started_at": "2023-11-13T15:44:10.400316Z",
"completed_at": "2023-11-13T15:44:13.149643Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/cta2nolbw2l272ly23vmzi7y5u/cancel",
"get": "https://api.replicate.com/v1/predictions/cta2nolbw2l272ly23vmzi7y5u"
},
"metrics": {
"predict_time": 2.749327,
"total_time": 2.716538
}
}