(chunks: any[])
| 8 | |
| 9 | // Helper to create a base recording |
| 10 | function createRecording(chunks: any[]): ChunkRecording { |
| 11 | return { |
| 12 | version: '1.0', |
| 13 | timestamp: Date.now(), |
| 14 | chunks: chunks.map((chunk, index) => ({ |
| 15 | chunk, |
| 16 | timestamp: Date.now() + index * 10, |
| 17 | index, |
| 18 | })), |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Simple text streaming - "Hello world!" character by character |