typetext
{
"batch_size": 64,
"diarise_audio": false,
"task": "transcribe",
"timestamp": "chunk",
"url": "https://www.youtube.com/watch?v=2ua_v4BA3qM"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_cQc**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run turian/insanely-fast-whisper-with-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"turian/insanely-fast-whisper-with-video:4f41e90243af171da918f04da3e526b2c247065583ea9b757f2071f573965408",
{
input: {
batch_size: 64,
diarise_audio: false,
task: "transcribe",
timestamp: "chunk",
url: "https://www.youtube.com/watch?v=2ua_v4BA3qM"
}
}
);
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_cQc**********************************
This is your API token. Keep it to yourself.
import replicate
Run turian/insanely-fast-whisper-with-video using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"turian/insanely-fast-whisper-with-video:4f41e90243af171da918f04da3e526b2c247065583ea9b757f2071f573965408",
input={
"batch_size": 64,
"diarise_audio": False,
"task": "transcribe",
"timestamp": "chunk",
"url": "https://www.youtube.com/watch?v=2ua_v4BA3qM"
}
)
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_cQc**********************************
This is your API token. Keep it to yourself.
Run turian/insanely-fast-whisper-with-video 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": "turian/insanely-fast-whisper-with-video:4f41e90243af171da918f04da3e526b2c247065583ea9b757f2071f573965408",
"input": {
"batch_size": 64,
"diarise_audio": false,
"task": "transcribe",
"timestamp": "chunk",
"url": "https://www.youtube.com/watch?v=2ua_v4BA3qM"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "zpqc6rtbqyqmpm3fmfwm32vciq",
"model": "turian/insanely-fast-whisper-with-video",
"version": "4f41e90243af171da918f04da3e526b2c247065583ea9b757f2071f573965408",
"input": {
"batch_size": 64,
"diarise_audio": false,
"task": "transcribe",
"timestamp": "chunk",
"url": "https://www.youtube.com/watch?v=2ua_v4BA3qM"
},
"logs": "[youtube] Extracting URL: https://www.youtube.com/watch?v=2ua_v4BA3qM\n[youtube] 2ua_v4BA3qM: Downloading webpage\n[youtube] 2ua_v4BA3qM: Downloading ios player API JSON\n[youtube] 2ua_v4BA3qM: Downloading android player API JSON\n[youtube] 2ua_v4BA3qM: Downloading m3u8 information\n[info] 2ua_v4BA3qM: Downloading 1 format(s): 251\n[download] Destination: 1f1c25825fc2491fb6315ec79f759ff4.webm\n[download] 0.1% of 1.46MiB at Unknown B/s ETA Unknown\n[download] 0.2% of 1.46MiB at Unknown B/s ETA Unknown\n[download] 0.5% of 1.46MiB at Unknown B/s ETA Unknown\n[download] 1.0% of 1.46MiB at 10.98MiB/s ETA 00:00\n[download] 2.1% of 1.46MiB at 17.64MiB/s ETA 00:00\n[download] 4.2% of 1.46MiB at 29.24MiB/s ETA 00:00\n[download] 8.5% of 1.46MiB at 49.04MiB/s ETA 00:00\n[download] 17.0% of 1.46MiB at 82.09MiB/s ETA 00:00\n[download] 34.1% of 1.46MiB at 133.52MiB/s ETA 00:00\n[download] 68.3% of 1.46MiB at 207.44MiB/s ETA 00:00\n[download] 100.0% of 1.46MiB at 253.97MiB/s ETA 00:00\n[download] 100% of 1.46MiB in 00:00:00 at 10.46MiB/s\n[ExtractAudio] Destination: 1f1c25825fc2491fb6315ec79f759ff4.mp3\nDeleting original file 1f1c25825fc2491fb6315ec79f759ff4.webm (pass -k to keep)\nDownloaded audio from the video URL https://www.youtube.com/watch?v=2ua_v4BA3qM\nVoila!✨ Your file has been transcribed!\nRemoving downloaded audio file\nmax gpu memory allocated over runtime: 4.50 GB",
"output": {
"chunks": [
{
"text": " Do not f***ing touch it.",
"timestamp": [
0,
2.62
]
},
{
"text": " Here is maybe the most overlooked feature or factor in the success or failure of a steak,",
"timestamp": [
9.46,
16.9
]
},
{
"text": " particularly a thick steak, but it's true of all meat.",
"timestamp": [
17,
19.36
]
},
{
"text": " This magical period immediately following its removal from the heat,",
"timestamp": [
19.78,
24
]
},
{
"text": " it should rest",
"timestamp": [
24,
25.4
]
},
{
"text": " on the board, meaning sit there at room temperature for five to seven minutes, at which point",
"timestamp": [
25.4,
31.32
]
},
{
"text": " stay away from it.",
"timestamp": [
31.32,
33.5
]
},
{
"text": " Don't touch it.",
"timestamp": [
33.5,
34.5
]
},
{
"text": " Don't poke it.",
"timestamp": [
34.5,
35.72
]
},
{
"text": " Don't slice it to look inside.",
"timestamp": [
35.72,
37.88
]
},
{
"text": " Do not start slicing it into slices right away.",
"timestamp": [
37.88,
41.18
]
},
{
"text": " What's going on inside is it is continuing to cook, but even more importantly, the juices are distributing themselves in a truly wonderful",
"timestamp": [
41.18,
51.1
]
},
{
"text": " alignment. That's why if you cut into a steak too quickly off the barbecue, you",
"timestamp": [
51.1,
55.26
]
},
{
"text": " get this sort of bullseye pattern instead of what it should be, a gentle",
"timestamp": [
55.26,
59.84
]
},
{
"text": " graduation from red to various hues of pink to the outer crust.",
"timestamp": [
59.84,
66.16
]
},
{
"text": " All the difference in the world between a good steak and a totally messed up steak is",
"timestamp": [
66.16,
70.96
]
},
{
"text": " going on in that period of time that you're just doing nothing.",
"timestamp": [
70.96,
75.96
]
},
{
"text": " Nothing.",
"timestamp": [
75.96,
76.96
]
},
{
"text": " You want to find a good hot sizzling either grill or pan, get a good crust and sear on",
"timestamp": [
76.96,
82.86
]
},
{
"text": " the outside.",
"timestamp": [
82.86,
83.86
]
},
{
"text": " You want to finish it either in the oven or all the way on the grill.",
"timestamp": [
83.86,
87.88
]
},
{
"text": " And then just let it sit.",
"timestamp": [
87.88,
90.2
]
},
{
"text": " Don't wrap it in foil, don't cover it, don't poke it, don't prod it, don't even look at it.",
"timestamp": [
90.2,
94.98
]
},
{
"text": " Just let it sit there, leave it alone, and you will be rewarded.",
"timestamp": [
94.98,
99.5
]
}
],
"text": " Do not f***ing touch it. Here is maybe the most overlooked feature or factor in the success or failure of a steak, particularly a thick steak, but it's true of all meat. This magical period immediately following its removal from the heat, it should rest on the board, meaning sit there at room temperature for five to seven minutes, at which point stay away from it. Don't touch it. Don't poke it. Don't slice it to look inside. Do not start slicing it into slices right away. What's going on inside is it is continuing to cook, but even more importantly, the juices are distributing themselves in a truly wonderful alignment. That's why if you cut into a steak too quickly off the barbecue, you get this sort of bullseye pattern instead of what it should be, a gentle graduation from red to various hues of pink to the outer crust. All the difference in the world between a good steak and a totally messed up steak is going on in that period of time that you're just doing nothing. Nothing. You want to find a good hot sizzling either grill or pan, get a good crust and sear on the outside. You want to finish it either in the oven or all the way on the grill. And then just let it sit. Don't wrap it in foil, don't cover it, don't poke it, don't prod it, don't even look at it. Just let it sit there, leave it alone, and you will be rewarded."
},
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-01-08T02:28:57.562601Z",
"started_at": "2024-01-08T02:29:10.40633Z",
"completed_at": "2024-01-08T02:29:16.930389Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/zpqc6rtbqyqmpm3fmfwm32vciq/cancel",
"get": "https://api.replicate.com/v1/predictions/zpqc6rtbqyqmpm3fmfwm32vciq"
},
"metrics": {
"predict_time": 6.524059,
"total_time": 19.367788
}
}