Sources
The ways a transcript reaches Sparkle, and when to use each.
A source is how a conversation's transcript reaches Sparkle. Every source produces turns under the same turn contract, and the moments arrive the same way whichever one sent them.
| You have | Use |
|---|---|
| Your own speech-to-text, or any transcript as it's spoken | Your app sends turns. |
| A microphone or meeting tab in a web page, or raw audio | Audio: Sparkle transcribes it. |
| Recall.ai bots or Deepgram streams that start outside your code | A connection: one URL, a conversation per call. |
| A Recall.ai bot or Deepgram stream your code starts | A per-conversation receiver. |
| A finished recording's transcript | Import it with POST /conversations/import. |
| Zoom meetings with cloud recording | A Zoom connection: sign in with Zoom once. |
Your app sends turns
Your code creates the conversation, then posts what people said to
POST /conversations/{id}/turns, through the API or @sparkle/sdk. Use it when you already have
text: your own speech-to-text, a vendor you read yourself, or a chat. You choose the speaker keys
and turn ids, and you end the conversation when the call is over. See
the turn contract.
Audio
Sparkle transcribes the audio for you, and stores only the turns.
- In a web page,
recordAudiofrom@sparkle/sdk/browserstreams the microphone and a meeting tab. See Capture audio in the browser. - On a server, a phone bridge or a mobile app, speak the audio streaming protocol directly.
Both need a conversation your code created, and bill transcription minutes.
Connections
A connection is one permanent receiver URL for a vendor, set up once for the organization. You give the URL to Recall.ai or Deepgram, and every call the vendor sends to it becomes a conversation of its own: Sparkle creates it on the call's first event, in the connection's environment, and tags its metadata with the connection and the vendor's id for the call.
A call's conversation ends when the vendor reports the end of the call. If that report never comes, it ends after 60 minutes without a turn, as any live conversation does.
Set one up in the guides for Recall.ai and Deepgram.
Per-conversation receivers
Your code creates the conversation with "receivers": ["recall"] or ["deepgram"], and the
response holds a receiver path for that conversation alone. You give that URL to the bot or stream
you start for the call. See the Recall.ai and
Deepgram receivers.
Connection or per-conversation receiver?
Use a connection when calls start outside your code and you don't want to create conversations
yourself. Use a per-conversation receiver when your code already creates the conversation and wants
its id, its own webhook_url or its title up front.
| Connection | Per-conversation receiver | |
|---|---|---|
| URL | One per connection, for every call. | One per conversation. |
| Conversation | Created by Sparkle on the call's first event. | Created by your code, before the call. |
| Title and metadata | Set from the vendor: Recall.ai call 3f2a9c1e, the call's id in metadata. | Yours. |
| Events | The organization's webhook subscriptions. | Subscriptions, and the conversation's own webhook_url. |
| Ends | On the vendor's end of the call, or after 60 minutes without a turn. | When you end it, or after 60 minutes without a turn. |
| Recall.ai bots | In your own Recall.ai workspace, given its verification secret, or Sparkle's. | In Sparkle's Recall.ai workspace only. |