Example
Step through sample transcript events. Pausing file output keeps callbacks running.
Nonempty transcripts reach the callback; pause affects file writes. Source.
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.