update api doc
This commit is contained in:
parent
8434ef5efc
commit
971f8473eb
1 changed files with 3 additions and 8 deletions
11
docs/API.md
11
docs/API.md
|
|
@ -40,19 +40,14 @@ The current API sends complete state snapshots on each update (several time per
|
||||||
|
|
||||||
### Philosophy
|
### Philosophy
|
||||||
|
|
||||||
Designed with the following principles:
|
Principles:
|
||||||
|
|
||||||
1. **Incremental Updates**: Only updates and new segments are sent
|
- **Incremental Updates**: Only updates and new segments are sent
|
||||||
2. **Word-Level Granularity**: Each word includes timing and validation status for text and speaker
|
- **Ephemeral Buffers**: Temporary, unvalidated data displayed in real-time but overwritten on next update, at speaker level
|
||||||
3. **Per-Segment Buffers**: Buffers are associated with specific speakers
|
|
||||||
4. **Efficient Client-Side Handling**: Segments have IDs for easy front updates
|
|
||||||
5. **Ephemeral Buffers**: Temporary, unvalidated data displayed in real-time but overwritten on next update
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Message Format
|
## Message Format
|
||||||
|
|
||||||
### Transcript Update Message
|
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue