@@ -639,18 +639,82 @@ import '../styles/global.css';
639639<script >
640640 // ── Terminal typewriter ──────────────────────────────────────
641641 const LINES = [
642- { p: '❯ ', t: 'dg transcribe keynote.mp3 --diarize', c: '' },
643- { p: '', t: '✓ Transcribing · nova-3 · 2 speakers detected', c: '#13ef95' },
644- { p: '', t: '[Speaker 1] "Welcome to our annual product keynote."', c: '#949498' },
645- { p: '', t: '[Speaker 2] "This year we ship the fastest model yet."', c: '#7a7a7e' },
642+ // ── Auth check ────────────────────────────────
643+ { p: '❯ ', t: 'dg whoami', c: '' },
644+ { p: '', t: '✓ Authenticated', c: '#13ef95' },
645+ { p: '', t: ' Profile: default', c: '#949498' },
646+ { p: '', t: ' API Key: sk-3a8f****c91b (keyring)', c: '#7a7a7e' },
647+ { p: '', t: ' Project ID: a1b2c3d4-5e6f-7890-abcd', c: '#7a7a7e' },
646648 { p: '', t: '', c: '' },
647- { p: '❯ ', t: 'dg speak "Hello from Deepgram" | ffplay -nodisp -', c: '' },
648- { p: '', t: '✓ Synthesizing · aura-2-en-us', c: '#13ef95' },
649+ // ── Projects ──────────────────────────────────
650+ { p: '❯ ', t: 'dg projects --list', c: '' },
651+ { p: '', t: 'Found 2 project(s):', c: '#13ef95' },
652+ { p: '', t: ' • my-deepgram-project a1b2c3d4-5e6f-7890', c: '#949498' },
653+ { p: '', t: ' • staging-env b2c3d4e5-6f78-90ab', c: '#7a7a7e' },
654+ { p: '', t: '', c: '' },
655+ // ── File transcription with diarization ───────
656+ { p: '❯ ', t: 'dg transcribe keynote.mp3 --diarize --model nova-3', c: '' },
657+ { p: '', t: '✓ Transcribing · nova-3', c: '#13ef95' },
658+ { p: '', t: 'Welcome to our annual product keynote. This year', c: '#949498' },
659+ { p: '', t: 'we ship the fastest model yet.', c: '#7a7a7e' },
660+ { p: '', t: '', c: '' },
661+ // ── URL transcription ─────────────────────────
662+ { p: '❯ ', t: 'dg transcribe https://cdn.example.com/podcast.mp3', c: '' },
663+ { p: '', t: 'Fetching remote audio…', c: '#949498' },
664+ { p: '', t: '"This week on Developer Stories: the future of speech AI."', c: '#edede2' },
665+ { p: '', t: '', c: '' },
666+ // ── JSON pipeline ─────────────────────────────
667+ { p: '❯ ', t: "dg transcribe standup.mp3 -o json | jq '.results.channels[0].alternatives[0].transcript'", c: '' },
668+ { p: '', t: '"Blocked on auth; need a review on PR 847 by EOD."', c: '#edede2' },
669+ { p: '', t: '', c: '' },
670+ // ── Text intelligence ─────────────────────────
671+ { p: '❯ ', t: 'dg read earnings.txt --sentiment --summarize --topics', c: '' },
672+ { p: '', t: 'Analyzing text...', c: '#949498' },
673+ { p: '', t: 'Summary: Revenue beat forecasts by 23%; guidance raised.', c: '#edede2' },
674+ { p: '', t: 'Sentiment: positive (0.96)', c: '#13ef95' },
675+ { p: '', t: 'Topics: • earnings (98%) • revenue growth (91%)', c: '#7a7a7e' },
676+ { p: '', t: '', c: '' },
677+ // ── TTS → pipe to player ──────────────────────
678+ { p: '❯ ', t: 'dg speak "Hello from Deepgram" | ffplay -nodisp -autoexit -', c: '' },
679+ { p: '', t: '✓ Synthesizing · aura-2-asteria-en', c: '#13ef95' },
649680 { p: '', t: '▶ Streaming 3.2s of audio…', c: '#949498' },
650681 { p: '', t: '', c: '' },
682+ // ── Live mic transcription ────────────────────
651683 { p: '❯ ', t: 'dg listen --mic --model nova-3 --interim', c: '' },
652684 { p: '', t: '✓ Listening on Built-in Microphone…', c: '#13ef95' },
653685 { p: '', t: '"The quick brown fox jumps over the lazy dog."', c: '#edede2' },
686+ { p: '', t: '', c: '' },
687+ // ── Explore models ────────────────────────────
688+ { p: '❯ ', t: 'dg models --type stt', c: '' },
689+ { p: '', t: ' nova-3 STT en 2024-01-24', c: '#edede2' },
690+ { p: '', t: ' nova-2 STT en 2024-01-09', c: '#949498' },
691+ { p: '', t: ' enhanced STT en 2022-05-09', c: '#7a7a7e' },
692+ { p: '', t: ' 24 model(s) found', c: '#7a7a7e' },
693+ { p: '', t: '', c: '' },
694+ // ── Key management (dry run) ──────────────────
695+ { p: '❯ ', t: "dg keys --create --comment 'ci-pipeline' --dry-run", c: '' },
696+ { p: '', t: 'Dry run — no changes made', c: '#949498' },
697+ { p: '', t: " Would create key: comment='ci-pipeline' scopes=member", c: '#7a7a7e' },
698+ { p: '', t: '', c: '' },
699+ // ── Usage stats ───────────────────────────────
700+ { p: '❯ ', t: 'dg usage --last-month', c: '' },
701+ { p: '', t: 'Usage Summary (2026-02-01 to 2026-02-28):', c: '#13ef95' },
702+ { p: '', t: ' Total Requests: 1,247', c: '#949498' },
703+ { p: '', t: ' Total Duration: 42.30 hours', c: '#7a7a7e' },
704+ { p: '', t: '', c: '' },
705+ // ── Debug: failed requests ────────────────────
706+ { p: '❯ ', t: 'dg requests --status failed --endpoint listen', c: '' },
707+ { p: '', t: ' /v1/listen streaming failed 2026-03-28 a3f8c1d2…', c: '#949498' },
708+ { p: '', t: ' 1 request(s) shown', c: '#7a7a7e' },
709+ { p: '', t: '', c: '' },
710+ // ── Raw API call ──────────────────────────────
711+ { p: '❯ ', t: "dg api /v1/projects --jq '.projects[0].name'", c: '' },
712+ { p: '', t: '"my-deepgram-project"', c: '#edede2' },
713+ { p: '', t: '', c: '' },
714+ // ── MCP server for AI editors ─────────────────
715+ { p: '❯ ', t: 'dg mcp --transport sse --port 8000', c: '' },
716+ { p: '', t: 'Starting MCP proxy (sse) on 127.0.0.1:8000…', c: '#13ef95' },
717+ { p: '', t: ' Add to your AI editor: http://127.0.0.1:8000/sse', c: '#949498' },
654718 ];
655719
656720 const out = document.getElementById('terminal-output');
0 commit comments