PipeTranscribe
The PipeTranscribe operator turns one recording, an Audio, into text with a transcription model. It produces a Transcript, which keeps the segments the model heard with their times and, when asked, who speaks each one, or a Text, which keeps the words alone.
No model reads a recording through a prompt: a PipeLLM, a PipeImgGen, a PipeSearch, a PipeJudge or a PipeSpeechGen whose template reads an Audio is refused when the method loads. A recording is transcribed first, and the transcript is what the later steps read.
How it works
[pipe.transcribe_call]
type = "PipeTranscribe"
description = "Transcribes a call, telling the harbour master and the caller apart"
inputs = { call = "Audio" }
output = "Transcript"
model = "$transcribe-speakers"
language = "fr"
vocabulary = ["Saint-Malo", "capitainerie"]
speakers = true
One recording in, one transcript out. A PipeTranscribe declares exactly one input, an Audio or a concept refining it, which is neither a list nor optional, since there is nothing to transcribe without it. Its output is a Transcript or a Text, or a concept refining one, and is not a list either. To transcribe every recording of a list, map the PipeTranscribe over it with a PipeBatch.
What the step asks of the transcript. Optional fields say what the step expects, and are written in the method rather than rendered from the inputs:
| Field | What it asks |
|---|---|
language |
The language spoken, as a BCP 47 tag such as fr or en-US. Any tag well-formed by the grammar of RFC 5646 is taken, private-use and grandfathered tags included; whether its subtags are registered is not checked. Left out, the model detects it. The transcript's language is the one the model reports, else this one. |
vocabulary |
The words and phrases the recording is expected to hold, such as names and terms of the trade, which the model is primed with. No entry may be blank. |
speakers |
Whether each segment names its speaker, false by default. A Text has nowhere to put a speaker, so a step setting speakers = true must produce a Transcript. |
The transcript. A Transcript carries the full text, its language, the recording's duration_seconds and its segments, each with its text, its start_seconds and end_seconds, and its speaker when the step asked for speakers. The native concepts page describes these fields. A Text output holds the transcript's text alone.
The transcription model
A step names its model with model, a model handle, an alias such as @transcription-speakers or a preset such as $transcribe-speakers. Pipelex serves no transcription model out of the box and its deck names no default: a transcription backend comes with an inference backend plugin, and a step naming no model where the deck names no default is refused when the method loads with model.unspecified. The presets the deck ships name what a step needs rather than a model (see Transcription and speech generation models).
What the model can do is read off its spec, when this boot serves it. When the method loads, a step asking for speakers from a model that does not tell speakers apart, or for a vocabulary longer than the model takes, is refused with model.capability_unsupported. Before the call, in a dry run as in a live one, those are checked again, and so is the recording: a format the model does not read is refused with input.file_type_unsupported, and a recording longer than the model takes with input.too_large, its size and limit in seconds. A recording's length is checked only when the Audio states its duration_seconds, or once an audio converter has measured it. When the runtime has an audio converter ([runtime.audio_conversion], off by default), a recording whose format the model does not read is not refused: a live step hands the model the recording converted into a format it reads, and measures the length of a recording that does not state it when the model limits the length. Only the model's input changes; the step's output and every later step see the recording as it was given (see Audio Conversion). A model this boot does not serve is accepted, its capabilities unknown, and whichever runtime serves it checks them in turn.
Pricing
A transcription is priced by the seconds of audio the model heard, rounded up to a whole second, at the rates its model configuration states.