typefile
{
"file": "https://replicate.delivery/pbxt/KVAyOIfjNxM9M6v3aXPGtRnvI6momTc7bZ6Q0BPsgNiELWpr/pahonia.wav"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_LV8**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run holywalley/stt_be_ctc using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"holywalley/stt_be_ctc:342fcd12e64a0a4ba3b42a6eec141c34fff8520670cdbad07a71cf58ab795e5d",
{
input: {
file: "https://replicate.delivery/pbxt/KVAyOIfjNxM9M6v3aXPGtRnvI6momTc7bZ6Q0BPsgNiELWpr/pahonia.wav"
}
}
);
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_LV8**********************************
This is your API token. Keep it to yourself.
import replicate
Run holywalley/stt_be_ctc using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"holywalley/stt_be_ctc:342fcd12e64a0a4ba3b42a6eec141c34fff8520670cdbad07a71cf58ab795e5d",
input={
"file": "https://replicate.delivery/pbxt/KVAyOIfjNxM9M6v3aXPGtRnvI6momTc7bZ6Q0BPsgNiELWpr/pahonia.wav"
}
)
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_LV8**********************************
This is your API token. Keep it to yourself.
Run holywalley/stt_be_ctc 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": "holywalley/stt_be_ctc:342fcd12e64a0a4ba3b42a6eec141c34fff8520670cdbad07a71cf58ab795e5d",
"input": {
"file": "https://replicate.delivery/pbxt/KVAyOIfjNxM9M6v3aXPGtRnvI6momTc7bZ6Q0BPsgNiELWpr/pahonia.wav"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
толькі ў сэрцы трывожным пачую за краіну радзімую жах успомню вострую браму святую і ваякаў на грозных канях у белай пене праносяцца коні рвуцца ммкнуцца і цяжка хрыпяць старадаўняй літоўскай пагоніі не разбіць не спыніць не стрымаць
{
"id": "otawhwrbasfign4wunewtqju5i",
"model": "holywalley/stt_be_ctc",
"version": "342fcd12e64a0a4ba3b42a6eec141c34fff8520670cdbad07a71cf58ab795e5d",
"input": {
"file": "https://replicate.delivery/pbxt/KVAyOIfjNxM9M6v3aXPGtRnvI6momTc7bZ6Q0BPsgNiELWpr/pahonia.wav"
},
"logs": "Transcribing: 0%| | 0/1 [00:00<?, ?it/s]\nTranscribing: 100%|██████████| 1/1 [00:01<00:00, 1.47s/it]\nTranscribing: 100%|██████████| 1/1 [00:01<00:00, 1.47s/it]",
"output": "толькі ў сэрцы трывожным пачую за краіну радзімую жах успомню вострую браму святую і ваякаў на грозных канях у белай пене праносяцца коні рвуцца ммкнуцца і цяжка хрыпяць старадаўняй літоўскай пагоніі не разбіць не спыніць не стрымаць",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-03-02T22:11:28.237879Z",
"started_at": "2024-03-02T22:14:46.628619Z",
"completed_at": "2024-03-02T22:14:48.303252Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/otawhwrbasfign4wunewtqju5i/cancel",
"get": "https://api.replicate.com/v1/predictions/otawhwrbasfign4wunewtqju5i"
},
"metrics": {
"predict_time": 1.674633,
"total_time": 200.065373
}
}