Docs

Speech-to-Text

A transcriber of the catalogue writes your audio as text, under your API key: from Python, sequence_ai.transcribe(), and from a shell, seq transcribe (Speech-to-Text in the Python client). The answer is the text, with the seconds or tokens it read and what the call cost. In the examples, everything ending in _user is yours, and so are the strings.

Have it write your audio as text

transcribe.pypython
# everything ending in _user is yours
import sequence_ai

r_user = sequence_ai.transcribe("whisper-large-v3-turbo", "speech_user.wav")
print(r_user.text)
# the seconds billed, and what the call cost
print(r_user.seconds, r_user.cost_usd)
the same, from a shellshell
seq transcribe speech_user.wav --model whisper-large-v3-turbo
# the text, then the seconds billed and what it cost

The model is a transcriber’s id, or the name after its last slash as here; this one can bill a file under 10 seconds as 10 (what it costs). The file is one audio file (from Python a path, its bytes or a file opened to read in binary), in one of the model’s formats (below), the file and its form at most 16 MiB (16,777,216 bytes); most read wav, mp3, m4a, flac, ogg, webm and aac. The options, each the same from Python and from a shell: language (--language), the audio’s language as an ISO-639-1 code (en), found by the model where it is left out; prompt (--prompt), words the audio is likely to hold, which some models use and others ignore; temperature (--temperature), from 0 to 1; response_format (--format), json or verbose_json; and timestamp_granularities (--timestamps), below. An option the model does not take is refused before anything is billed, its name in the error, and a call that fails says why in the error it raises. Every field and answer is in the API reference.

Get when each word was said

With response_format="verbose_json" (--format verbose_json) the answer carries the audio’s language, its duration and its segments, each with its start and end in seconds, and, with timestamp_granularities=["word"] (--timestamps word), its words, each timed the same way: where the model gives them, as its timestamps says (below). A model that writes no verbose answer, or times no words, refuses a call that asks for it with an error that says so, and the call is not billed.

each word and when it was saidpython
import sequence_ai

r_user = sequence_ai.transcribe("whisper-large-v3-turbo", "speech_user.wav",
                                response_format="verbose_json", timestamp_granularities=["word"])
for w_user in r_user.words:
    print(w_user["word"], w_user["start"], w_user["end"])
the same, from a shellshell
seq --json transcribe speech_user.wav --model whisper-large-v3-turbo \
  --format verbose_json --timestamps word
# "words": [{"word": "The", "start": 0.0, "end": 0.24}, ...]

Pick a model

sequence_ai.models(endpoint="transcription") lists the transcribers, with no key, each with its price, the number of languages its maker says it writes (languages), the audio formats it reads (formats) and what its verbose answer times (timestamps), and seq models --endpoint transcription prints them. The Model library lists them too.

the transcribers and their pricespython
import sequence_ai

for m_user in sequence_ai.models(endpoint="transcription"):
    # its name, its price as the Model library says it, and the formats it reads
    price_user = ", ".join(f"{p_user['amount']}/{p_user['unit']}" for p_user in m_user.pricing)
    print(m_user.short_id, price_user, m_user.raw["formats"])
the same, from a shellshell
seq models --endpoint transcription

What it costs

  • By the audio’s length. Most transcribers are priced by the hour of audio: seconds is how many seconds a call was billed for, cost_usd what it was charged. Each counts a file its own way. Most bill its length; some round it to a whole second, up or down; and Whisper Large V3 and V3 Turbo bill a file under 10 seconds as 10 at times.
  • Per token. GPT-4o Transcribe, GPT-4o Mini Transcribe and Gemini 3.5 Transcribe are priced per million tokens in and out, as their makers price them: the audio’s in and the text’s out, said in its usage, input_tokens and output_tokens.
  • Other rates. AssemblyAI’s transcribers bill a second of audio sent with a prompt at their prompted rate, and Nova-3 a second of multilingual audio at its multilingual rate; the Model library lists both.
  • Only what was read. A call refused or failed is not charged. Each call is on your usage and invoice under its model’s name.