Nodes/TTS Audio Suite/⚙️ GigaAM ASR Engine
ComfyUI Node

⚙️ GigaAM ASR Engine

GigaAM ASR Is the Cheap Way to Get Word Timings Out of ComfyUI

By diodiogod·Created about a year ago·Updated about 13 hours ago· 1,285
⚙️ GigaAM ASR Engine
    • TTS_engine
    ◄precisionint8►
    ◄model_namegigaam-multilingual-v2►
    ◄backendauto►
    ◄deviceauto►
    ◄torch_precisionauto►

    Most people who land on this node want one thing: subtitles. They have audio, they want an SRT, and they want the words timed to the waveform instead of guessed. GigaAM ASR is the smallest, cheapest way to get that inside ComfyUI - the lightest weight format is a ~152MB download, and it spits out word-level timings you can feed straight into a subtitle builder.

    It's worth being clear about what this node is, because the name oversells it slightly. ⚙️ GigaAM ASR Engine doesn't transcribe anything by itself. It has no audio input and no text output. It's a configuration node: you set five options, it hands you a TTS_engine blob, and you plug that into ✏️ ASR Transcribe where the actual work happens. Every engine in TTS Audio Suite works this way - the engine node holds the model choice, the unified node holds the job.

    How it actually runs

    GigaAM comes from the Russian speech-recognition world (Sber's GigaAM family), which is why the two model options look lopsided. gigaam-multilingual-v2 covers 21 languages and is the sensible default. gigaam-v4-ctc handles Russian and English only - narrower, but a purpose-built CTC model rather than a broad multilingual one.

    The genuinely useful part is that this engine ships two different backends:

    • ONNX - CPU only, quantized weights, tiny. This is the 152MB-to-3GB range.
    • PyTorch - official weights, runs on CPU or CUDA, and it's the only path that gives you native word timings and long-form chunking through GigaAM's own voice-activity detector.

    With backend on auto, the node picks PyTorch when you have a working CUDA setup and falls back to ONNX on CPU. Good default, right up until it isn't: on a CPU-only box, auto quietly lands you on ONNX, and ONNX can't produce word-level timings. You'll get text out, no timing data, and wonder why your SRT builder is unhappy.

    The settings you actually touch

    Everything on this node is optional, so a fresh one is already in a working state. In practice you'll touch two:

    • backend - the one that matters. Leave it on auto if you have a GPU. Set it to pytorch explicitly if you want word timings and don't want to be at the mercy of detection.
    • precision - this only applies to the ONNX weights. int8 is the default and the sane one; int4 is the smallest download; fp16 compresses on disk but can expand to FP32 in memory, which is the worst of both worlds. On PyTorch this field is inert - torch_precision does the work.

    device and torch_precision can stay on auto - CUDA picks float16, CPU picks float32. ONNX is CPU-only regardless of what device says.

    The output is a single TTS_engine socket. Wire it into ✏️ ASR Transcribe, feed that node your audio, and set task to transcribe - GigaAM doesn't do translation, so leave translate alone. Keep diarization off too; the pack's own tooltip says so, because GigaAM has no speaker attribution. Then set timestamps to word. ASR Transcribe gives you three outputs: text, asr_timing_data (the one that carries your timings) and info - asr_timing_data is what goes into 📺 Text to SRT Builder.

    Installing it

    Same pack, same install, whether you're here for GigaAM or for any of the other twenty engines:

    cd ComfyUI/custom_nodes
    git clone https://github.com/diodiogod/TTS-Audio-Suite.git
    cd TTS-Audio-Suite
    python install.py
    

    Or search "TTS Audio Suite" in ComfyUI Manager, then run python install.py afterwards anyway. The install script is the part that handles the awkward packages, and GigaAM's extra dependencies (gigaam, hydra, sentencepiece, tqdm, onnxruntime) come through there rather than plain requirements.txt. onnxruntime in particular gets installed with --no-deps on purpose to stop it dragging your NumPy version around.

    Weights download on first use into ComfyUI/models/TTS/gigaam_asr/, so the first transcription is slow and the second isn't. Nothing manual to fetch.

    Where people get burned

    Word timings that never appear. Ninety percent of the time this is ONNX. Check backend, and if it says onnx, switch to pytorch. PyTorch needs torch with CUDA support for the fast path; the engine will still run on CPU, just slowly.

    pip choking on s3tokenizer. A known sore spot for this pack on Python 3.10 setups (Stability Matrix, for instance). Fix it before you reinstall:

    python -m pip install --upgrade pip setuptools wheel
    python install.py
    

    Long recordings are fine, but only on the PyTorch path - that's where GigaAM's own voice-activity detector splits them. On ONNX, feed it shorter clips.

    One last calibration: GigaAM barely registers in the English-speaking image-gen crowd, so don't read the silence as a verdict - it's a well-regarded ASR family that simply lives in a different community. For accurate timings on a modest GPU without a 5GB Whisper download, this is the node you want.

    CategoryTTS Audio Suite/⚙️ Engines

    Inputs (5)

    NameTypeDefaultDescription
    precisionoptCOMBOint8ONNX weight format. INT8 is the default. INT4 has the smallest download. FP16 compresses the model on disk and can expand weights to FP32 in memory.
    model_nameoptCOMBOgigaam-multilingual-v2Multilingual-v2 supports 21 languages. v4 CTC supports Russian and English.
    backendoptCOMBOautoAuto uses PyTorch on CUDA, or ONNX on CPU. Auto also selects PyTorch for word timestamps.
    deviceoptCOMBOautoAuto uses CUDA when available for PyTorch, or CPU otherwise. ONNX requires CPU.
    torch_precisionoptCOMBOautoPyTorch encoder precision. Auto uses float16 on CUDA and float32 on CPU. Float16 requires CUDA.

    Outputs (1)

    NameTypeDescription
    TTS_engineTTS_ENGINE—