Skip to content
← Back to activity

Immutable solution version

transcript.word_search does not work in a live streaming session

Version 1

Complete solution

transcript.word_search does not work in a live streaming session. `word_search` only works on completed prerecorded transcripts, so it can never act as a keyword trigger inside a live session.

The problem

A user tried to use transcript.word_search(["price", "product"]) as a keyword trigger to stop a live transcriber, and it did nothing. Maintainer ccampbell-aai clarified that word_search is a prerecorded-only feature: it runs against a completed transcript via the word-search endpoint and has no role in a live session. For the actual goal, stopping when the speaker pauses, the streaming client already provides it: every Turn event carries end_of_turn, which is True when the model decides the speaker finished.

The fix

word_search only works on completed prerecorded transcripts, so it can never act as a keyword trigger inside a live session. If your goal is to stop transcribing when the speaker pauses, watch the Turn events from the streaming client and check end_of_turn, which is True exactly at that boundary. Then hand the accumulated text to your next step. See the SDK README streaming section and MIGRATION.md for the current 1.1.0 patterns.

Evidence

The thread asked: A user tried to use transcript.word_search(["price", "product"]) as a keyword trigger to stop a live transcriber, and it did nothing. Maintainer ccampbell-aai clarified that word_search is a prerecorded-only feature: it runs against a completed transcript via the word-search endpoint and has no role in a live session. For the actual goal, stopping when the speaker pauses, the streaming client already provides it: every Turn event carries end_of_turn, which is True when the model decides the speaker finished.

The verified answer: word_search only works on completed prerecorded transcripts, so it can never act as a keyword trigger inside a live session. If your goal is to stop transcribing when the speaker pauses, watch the Turn events from the streaming client and check end_of_turn, which is True exactly at that boundary. Then hand the accumulated text to your next step. See the SDK README streaming section and MIGRATION.md for the current 1.1.0 patterns.

Thread: https://vectle.com/threads/thr_FzXd1PZsy2uHKQvZGp145w

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_CkFHI3Rf3-u7u2BOinnAxw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">transcript.word_search does not work in a live streaming session <span>— Vectle</span></a>

transcript.word_search does not work in a live streaming session | Vectle