Thisbit VoiceStudio engine

THISBIT VOICE & TRANSCRIPTS / DOCUMENTATION

Record sessions

Create a recording from your application, open Studio’s microphone recorder, follow live text, and receive a signed notification when transcription finishes.

Implemented; operator configuration required. These customer API routes and the recorder are available when capture integrations are configured. This build does not establish a live deployment. Your application still captures browser navigation, screenshots and other session evidence.

Choose the source

SourceWhat Studio recordsResult
microphoneThe participant explicitly starts browser microphone capture. Studio uploads PCM chunks and transcribes them while recording.Original WAV, original live text and a separate refined transcript in the connected member’s private workspace. Speakers remain generic until reviewed.
captionsYour trusted meeting adapter submits partial and final caption revisions.Original caption provenance and finalized live text through the capture API. No audio, acoustic refinement or workspace conversation is invented.

1. Configure the integration

The operator supplies STUDIO_CAPTURE_CONFIG as secret JSON to both the customer API and worker. The hosted Bicep parameter is captureConfig. An empty configuration disables capture routes. Use your HTTPS customer origin and a distinct random integration token and webhook signing secret, each at least 32 characters. Store actual secrets outside Git in your deployment’s secret manager.

Enroll a dedicated device under the integration owner’s real sign-in and key proof. The operator helper python -m studio.capture_enrollment prepares a persistent private P-256 key outside Git, verifies the intended member through the control API, and writes private capture configuration after enrollment. Retrying a lost response recovers the same device; a revoked device stays revoked. Keep the key state backed up and allow only the intended project IDs.

{
  "origin": "https://studio.example",
  "integrations": {
    "thisbit": {
      "token": "REPLACE_WITH_RANDOM_INTEGRATION_SECRET",
      "principal_id": "11111111-1111-4111-8111-111111111111",
      "project_ids": ["22222222-2222-4222-8222-222222222222"],
      "device_id": "33333333-3333-4333-8333-333333333333",
      "webhook": {
        "url": "https://app.example/hooks/studio",
        "secret": "REPLACE_WITH_RANDOM_WEBHOOK_SIGNING_SECRET"
      }
    }
  }
}

Replace the example IDs with an existing direct member, writable projects and that member’s enrolled, licensed device. This configuration explicitly delegates recording to that member: every operation checks current membership and project access; recording and processing also check device and subscription eligibility. The integration cannot choose another principal or callback destination. Read and export access remain available after processing entitlement ends, subject to membership and project permissions.

The worker uses a separate offline Whisper instance for live chunks. Provision local model weights, keep model telemetry disabled, and allow memory for both live and batch recognition. STUDIO_LIVE_WHISPER_PATH defaults to STUDIO_WHISPER_PATH; STUDIO_LIVE_CPU_THREADS defaults to 2. Use a small live model so chunk recognition keeps up while batch refinement runs. A missing model prevents worker startup. Configure the fixed HTTPS webhook only if notifications are needed; redirects are refused.

2. Create and open a microphone recording

Call POST /v1/captures from your backend with Authorization: Bearer <integration token>. Choose a lowercase UUID once and retain the exact body for retries. timeline_origin_ms is your external session’s start time in Unix epoch milliseconds. external_session_id is your opaque session reference.

{
  "id": "44444444-4444-4444-8444-444444444444",
  "project_id": "22222222-2222-4222-8222-222222222222",
  "title": "Voice memo for a browser review",
  "source": "microphone",
  "language_profile": "en-US",
  "external_session_id": "browser-review-42",
  "timeline_origin_ms": 1791712800000
}

Success is 200 with id, state: ready, recorder_url, events_url, result_url, counters and expiry. Open recorder_url in a tab, or frame the recorder strip on your page as described below. It contains a capability for this recording in its URL fragment, valid for recording for two hours from creation, with a further 24 hours for reading the saved result. Current membership and project access still apply. Treat the entire link as a credential. Studio moves it into tab session storage and removes it from the address bar. Never give the browser your integration token or log recording links.

The participant chooses Start recording and grants microphone permission. They can pause, resume, finish, download the original WAV and remove the local copy after completion. Audio from the Start click onward is written to IndexedDB as it arrives, in 100 ms frames, and uploaded in packets of up to five seconds once Studio has acknowledged the start; if Studio refuses the start, that audio is removed from the device. An unload loses at most the frames in flight. Temporary network or service outages keep recording locally and retry with backoff. A local storage failure or permanent authorization/refusal pauses the microphone and retains the device copy for download. A per-capture Web Lock prevents two tabs in the same browser from overwriting the same local recording. After a reload during recording, the page first saves the audio it kept, then continues recording if the browser reopens the microphone without a click; otherwise it pauses the recording and offers Resume. Either way the gap stays visible in the source timeline. If this browser lacks audio already saved by another browser, resume is disabled; Finish saved audio and Download saved audio remain available. A rejected saved command is cleared after the current server state is read. Keep the page open while recording. The recorder captures the microphone, not system or Teams audio.

Embed the recorder strip

To keep the participant on your page, list the pages that may frame the recorder in embed_origins when you create the capture, for example ["https://review.example.com", "http://localhost:*"]: up to 20 lowercase origins, https or, for local development only, http on localhost, 127.0.0.1 or [::1]; a host may start with *. for its subdomains and a port may be *. The list is part of the request fingerprint. The create response then also returns embed_url, which carries no credential. Frame embed_url + "&parent=" + encodeURIComponent(location.origin) with allow="microphone; autoplay". Only the listed origins may frame the strip, and it talks only to the parent you name when one of them allows it.

The strip posts studio.capture.ready to your page. When it reports needs_credential: true, post {type: "thisbit.capture.credential", recorder_url} to the Studio origin; the strip keeps the link in its own session storage and never posts it back. It then reports studio.capture.state, studio.capture.segment (with word timings), studio.capture.vad (level and speaking, at most ten times a second), studio.capture.key (the D, K, F, J and Escape keys pressed while the strip has focus) and studio.capture.error, each with capture_id. Start, Pause, Resume and Finish remain the strip's own buttons: your page cannot operate the microphone.

The strip's Finish & review ↗ click immediately posts {type: "thisbit.capture.review_requested", capture_id, sessionId: capture_id}, before saving, so your HUD can open its full review page at once. Keep the strip mounted until it reports state: "stopping" (or a terminal state) with busy: false. Host stop commands and save retries do not request another review tab. The strip also forwards actual D/d, K/k and Escape keys as {type: "thisbit.capture.key", capture_id, action: "keydown" | "keyup", key, repeat}, except while editing text. Consume this or the older physical-key messages, not both.

3. Follow live text

Open GET /v1/captures/{capture_id}/events with the bearer credential and Accept: text/event-stream. Use streaming fetch or a backend SSE client: browser EventSource cannot supply the required Authorization header. Persist the last applied numeric event ID. Reconnect with ?after=23 or Last-Event-ID: 23; query after takes precedence. Replay is ordered and may duplicate events across reconnects.

id: 3
event: transcript.segment
data: {"id":3,"type":"transcript.segment","capture_id":"44444444-4444-4444-8444-444444444444","at":1791712805,"data":{"id":"audio-0-0","revision":1,"final":true,"text":"Synthetic example","speaker":"SPEAKER_00","source":"microphone","start_ms":0,"end_ms":950,"audio_start_ms":0,"audio_end_ms":950,"words":[{"text":"Synthetic","start_ms":0,"end_ms":420,"audio_start_ms":0,"audio_end_ms":420},{"text":"example","start_ms":420,"end_ms":950,"audio_start_ms":420,"audio_end_ms":950}]}}

Upsert text by segment data.id and revision. Microphone readings arrive as finalized chunk readings, usually after each five-second audio packet and model inference; this is not token-by-token recognition. Caption sources can supply final: false revisions. Finalized live text can still differ from the later refined result. Preserve both.

Events include capture.created, recording.started, recording.paused, recording.resumed, recording.stopped, recording.cancelled, transcript.segment, transcription.warning, transcription.completed and transcription.failed. The stream checks current access on each batch. An access.unavailable event closes it without further content. A temporary control-service outage sends control.unavailable; reconnect with backoff while retaining local audio. Heartbeat comments keep idle streams open.

4. Link text to the browser timeline

started_at_ms is the recording’s epoch-millisecond origin, supplied by the recorder’s start command. Segment start_ms and end_ms are relative to that origin and retain pauses. The offset in your browser session is:

browser_offset_ms = started_at_ms - timeline_origin_ms + segment.start_ms

Microphone segments list their words on the same two clocks, clamped into their audio packet; the list may be empty, and caption segments carry words: []. Refined review segments carry words as {text, start, end} in WAV seconds when the recognizer produced word timings, in pinned revisions too.

audio_start_ms and audio_end_ms address the assembled WAV, which excludes pauses. Refined segment times are recognizer estimates in seconds on that WAV timeline; preserve them in citations. They are not guaranteed to stay within the exact sample duration. A playback adapter may bound a small tail overrun for mapping while retaining the source values and marking timing uncertainty. Use the original capture’s chunk map (samples at 16,000 Hz plus offset_ms) to convert refined positions back to the external timeline. Keep client clocks aligned if browser evidence and microphone recording originate on different devices.

5. Receive completion and fetch the result

After Finish recording, state moves through stopping and processing to complete or failed. Studio drains accepted live chunks before queueing full refinement. Repeated live recognition failure emits a warning and preserves that chunk for full refinement; it does not end the recording. Processing has a 24-hour deadline, and pending completion checks back off without idle catalog writes. A completed caption-only recording has no refinement. Cancellations use cancelled. Original accepted input survives failures and expiry.

The configured webhook receives identifier-only JSON; it never receives transcript text or an authorization token:

{
  "id": "44444444-4444-4444-8444-444444444444:9",
  "type": "transcription.completed",
  "capture_id": "44444444-4444-4444-8444-444444444444",
  "workspace_id": "55555555-5555-4555-8555-555555555555",
  "result_url": "https://studio.example/v1/captures/44444444-4444-4444-8444-444444444444/result"
}

Verify X-Studio-Signature: t=<epoch seconds>,v1=<hex digest> before parsing or acting. Calculate HMAC-SHA256 with the webhook signing secret over the ASCII timestamp, a period and the exact raw request bytes. Use a constant-time comparison, reject timestamps outside a short tolerance such as five minutes, and deduplicate the payload ID against X-Studio-Event-ID in durable storage. A retry keeps its event ID and signs a fresh timestamp. Return 2xx after durably accepting the event.

Completion, failure and cancellation are delivered at least once with exponential retries capped at one hour between attempts. Delivery is retained across restarts and stops after success or capture deletion. Current integration membership and project access are required for each attempt; restore access to resume delivery after revocation. Fetch the result with your own integration token at your configured customer origin; do not follow an untrusted callback URL. Result JSON includes the preserved original, all available results and audio_url. Refined microphone results include a canonical review snapshot, which can later reflect workspace edits. Voice-match suggestions and reusable voice evidence are never returned; identities explicitly confirmed by a reviewer are preserved. GET the capture remains available for polling if your receiver is offline.

Custom recorders and AWOW meeting captions

A custom recorder uses commands for start, pause, resume, stop or cancel. Retain each operation’s UUID and exact request on retry. Upload consecutive immutable PCM chunks while recording, beginning at index zero. Supply their SHA-256 and source offset. Drain uploads before pause or stop; stop includes the accepted chunk_count. The server never starts a computer’s microphone remotely.

Creation and stop payloads may include vocabulary, vocabulary_hints or prompt_terms: arrays of strings such as ["Thisbit", "AWOW"], or objects such as {"term":"Thisbit","aliases":["this bit"]}. Each array and the combined session vocabulary allow at most 200 terms of 1–120 characters, with up to 20 aliases of 1–120 characters each. Stop adds to the session hints, preserving aliases on matching terms. Refinement freezes the session hints alongside project and remembered vocabulary, with session terms taking precedence. These hints affect only the additional full reading (up to 2,000 prompt characters); live text and the unhinted reading are preserved. Repeat the exact hints on retries.

Caption sessions do not receive browser recorder links and accept captions only from their integration credential. For AWOW’s meeting canvas / Listening Coach, create a captions session and start it from the trusted gateway. Submit its existing ACS CaptureLine values through studio.capture_client.CaptureClient.captions(capture_id, line, started_at_ms). Notices are ignored; finalized captions retain their source speaker label as provenance and receive generic transcript speaker IDs. For adapters with provisional text, call the captions endpoint with stable utterance IDs and increasing revisions. Stop with chunk_count: 0.

CaptureClient.events reads Studio events and raises ConnectionError on a temporary control outage (reconnect with backoff from the last applied ID) or PermissionError after access loss; awow_line(event, started_at_ms) maps finalized segments to AWOW’s current room transcript input. Persist the Studio event ID before applying downstream room changes. Choose one source direction to avoid a feedback loop. AWOW still owns room admission, consent, custody and its transcript gateway; its deployed adapter must be wired and configured separately. This repository supplies the tested boundary, not a Teams media bot.

Limits, recovery and deletion

Usage accounting remains a separate monthly subscription and measurement design; capture IDs are correlation keys, not a per-session price.

Keep citations stable

Microphone capture IDs reserve the future workspace conversation ID at creation. Once refined, the result guarantees a canonical review snapshot even before anybody opens the workspace. review.content contains workspace_id, project_id, conversation_id, transcript_id and transcript_revision_id. Each segment’s source repeats those fields with segment_id, start and end in WAV seconds. Retain the exact source and quoted text. Fetch /result?revision_id=<transcript_revision_id> to retrieve that immutable snapshot in review, subject to current capture access. A revision from another capture is refused.

workspace_url opens the current workspace conversation; append ?focus=<segment_id> to focus its current passage. This link is not a pinned revision view. Your application retains its own browser-review backlink using external_session_id; Studio does not accept or display an external review URL. Capture deletion removes the stored revisions as well.