profileShare

rasmusjy / voicetask

Read-only snapshot

No repository description.

main default branch 105 files Expires Sep 13, 2026, 9:06 AM
transcript.ts 462 bytes
1 import type { Segment } from './types'
2
3 export function formatTranscript(segments: Segment[], projectName?: string): string {
4 const lines: string[] = [projectName ? `# ${projectName}: Interview Transcript` : '# Interview Transcript', '']
5
6 for (const segment of segments) {
7 const speakerLabel = segment.speaker === 'user' ? 'You' : 'Interviewer'
8 lines.push(`**${speakerLabel}:** ${segment.text}`, '')
9 }
10
11 return `${lines.join('\n').trimEnd()}\n`
12 }
13