Speech to Text: Audio and Video to TXT or SRT avatar

Speech to Text: Audio and Video to TXT or SRT

Pricing

from $0.05 / 1,000 audio seconds

Go to Apify Store
Speech to Text: Audio and Video to TXT or SRT

Speech to Text: Audio and Video to TXT or SRT

Transcribe audio and video files to plain text or SRT subtitles. Upload a file or give an https link. English plus 24 European languages. Pay per second of audio, charged only after the transcript is saved; failed runs are not charged for audio.

Pricing

from $0.05 / 1,000 audio seconds

Rating

0.0

(0)

Developer

Loquela Remote

Loquela Remote

Maintained by Community

Actor stats

1

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Features

Limited permissions

Share

Turn one audio or video file into a transcript: plain text, or SRT subtitles with timings. Upload a file or give an https link, choose the format, and start the run. The transcript lands in the run's dataset, ready to download or pass to the next step of your workflow.

Transcription is done by Loquela Remote, a hosted speech-to-text service.

What you get

  • Plain text or SRT. SRT cues carry start and end times, ready for video players and editors.
  • Audio and video files. WAV, MP3, M4A, AAC, OGG/Opus, WebM, FLAC and AIFF, plus video with sound (MP4, MOV, MKV). Only the sound is used.
  • 25 languages. English by default. Also Bulgarian, Croatian, Czech, Danish, Dutch, Estonian, Finnish, French, German, Greek, Hungarian, Italian, Latvian, Lithuanian, Maltese, Polish, Portuguese, Romanian, Russian, Slovak, Slovenian, Spanish, Swedish and Ukrainian, or automatic detection.
  • Pay per second of audio. The length is measured from the audio itself, and you are charged only after the transcript is saved.

How to use it

  1. Upload a file in Audio file, or paste an https link in Audio URL. Use one, not both. The form starts with a short sample file, so clear it before adding a link.
  2. Pick Output format: plain text or SRT subtitles.
  3. Optional: set Language, for example es for Spanish, or auto to detect it. Leave it empty for English.
  4. Start the run. The transcript appears in the Output tab.

Input

FieldWhat it takes
Audio fileOne uploaded audio or video file.
Audio URLAn https link to one audio or video file. The link must lead straight to the file: redirects are not followed. The link is stored encrypted, since links can carry access tokens.
Output formattxt (plain text, the default) or srt (subtitles with timings).
LanguageOptional. A two-letter code (en, es, de, fr, ...), a code with a region (es-MX), or auto. Empty means English.

Output

One dataset item per run:

{
"format": "srt",
"transcript": "1\n00:00:00,409 --> 00:00:08,490\nThey were voyaging across the deserts of the sky, a host of nomads on the march, voyaging high over Ireland westward bound\n\n",
"audioSeconds": 9.06,
"billedSeconds": 10,
"partial": false,
"requestId": "req_..."
}
FieldMeaning
formattxt or srt, as asked.
transcriptThe transcript.
audioSecondsThe audio's length, measured from the audio.
billedSecondsSeconds charged for this run.
partialtrue when part of the audio could not be transcribed. A partial transcript is saved but not charged.
requestIdIdentifies the transcription request, if you need to ask about it.

Pricing

$0.00005 per second of audio on paid Apify plans: $0.003 a minute, $0.18 an hour. On Apify's free plan, $0.0001 per second ($0.006 a minute). Seconds are rounded up to the next whole second, once per run. Apify also adds its standard start charge of $0.00005 per run.

You are not charged for audio when:

  • the run fails or is stopped,
  • the audio is refused before transcription (too long, too large, not audio, unsupported language),
  • the transcript is partial.

A restarted run is never charged twice, and never sends the audio twice once it has a transcript.

Limits

Paid Apify plansFree Apify plan
Audio length per run60 minutes2 minutes
File size100 MB100 MB
  • A file with several audio tracks counts the longest of its first four.
  • If your Maximum cost per run cannot cover the audio's length, the run stops before transcribing and says how much it covers.
  • If the run's timeout is too short for the audio, the run stops before transcribing and says how long to allow.
  • Transcription capacity is shared. When it is busy, the run waits and retries a few times, then stops without charging.

Use it from the API

Start a run and get the transcript in one call:

curl -X POST "https://api.apify.com/v2/acts/loquela~speech-to-text/run-sync-get-dataset-items" \
-H "Authorization: Bearer YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"audioUrl": "https://example.com/interview.mp3", "outputFormat": "srt"}'

A synchronous call waits up to 5 minutes. For longer files, start the run asynchronously and read the dataset when it finishes.

Where your data is kept

  • The transcript is saved in the run's default dataset, in your Apify account.
  • Your input is kept with the run. The Audio URL field is stored encrypted.
  • An uploaded file stays in the key-value store Apify put it in.
  • The audio is sent over HTTPS to Loquela Remote for transcription. See its privacy policy.
  • The run log records sizes, durations, the audio link's host name and the request ID. It never records the link's path or query, the transcript, or any key.
  • The Actor's own working copy of the audio is deleted when the run ends.

Apify deletes a run's default storages after your plan's retention period. Delete the dataset or the uploaded file yourself to remove them sooner.

Sample file

The prefilled sample is utterance 1089-134691-0016 from the LibriSpeech ASR corpus (test-clean), by Vassil Panayotov and others, used under CC BY 4.0. It was converted to MP3. LibriSpeech is drawn from LibriVox public-domain audiobook recordings.