Example

Walkthrough: callback and file output

Step through sample transcript events. Pausing file output keeps callbacks running.

Running

Callback log

(no events yet)

File output (in-memory example)

(no file entries yet)

How pause() actually works

Nonempty transcripts reach the callback; pause affects file writes. Source.

Python code reference
from livetranscriber import LiveTranscriber

def on_transcript(text):
    print(f"Received: {text}")
    if text == "pause file output":
        lt.pause()  # callbacks continue
    elif text == "resume file output":
        lt.resume()
    elif text == "stop this example":
        lt.stop()

lt = LiveTranscriber(
    callback=on_transcript,
    output_path="transcript.txt"
)
lt.run()  # blocks until stop() or Ctrl-C

Source: github.com/gaviral/livetranscriber (commit 8a24ce9)

Events and file view stay in this browser.