Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

test(web): remove Deepgram response fixtures

Richie McIlroy04cd48ae2b33
diff --git a/apps/web/__tests__/fixtures/deepgram-responses.ts b/apps/web/__tests__/fixtures/deepgram-responses.ts
deleted file mode 100644
index ce0c8ec5b..000000000
--- a/apps/web/__tests__/fixtures/deepgram-responses.ts
+++ /dev/null
@@ -1,409 +0,0 @@
-export const realDeepgramResponse = {
- metadata: {
- transaction_key: "deprecated",
- request_id: "bf8f9847-0f3a-4c88-9d67-8f3d2e1a5b6c",
- sha256: "abc123def456",
- created: "2025-01-08T12:00:00.000Z",
- duration: 15.5,
- channels: 1,
- models: ["nova-3"],
- model_info: {
- "nova-3": {
- name: "nova-3",
- version: "2025-01-01.0",
- arch: "nova-3",
- },
- },
- },
- results: {
- channels: [
- {
- alternatives: [
- {
- transcript:
- "Hello everyone. Welcome to this demo video. Today we're going to explore how the transcription system works.",
- confidence: 0.98,
- words: [
- {
- word: "hello",
- start: 0.08,
- end: 0.32,
- confidence: 0.99,
- punctuated_word: "Hello",
- },
- {
- word: "everyone",
- start: 0.4,
- end: 0.88,
- confidence: 0.99,
- punctuated_word: "everyone.",
- },
- {
- word: "welcome",
- start: 1.2,
- end: 1.6,
- confidence: 0.98,
- punctuated_word: "Welcome",
- },
- {
- word: "to",
- start: 1.68,
- end: 1.76,
- confidence: 0.99,
- punctuated_word: "to",
- },
- {
- word: "this",
- start: 1.84,
- end: 2.0,
- confidence: 0.99,
- punctuated_word: "this",
- },
- {
- word: "demo",
- start: 2.08,
- end: 2.4,
- confidence: 0.97,
- punctuated_word: "demo",
- },
- {
- word: "video",
- start: 2.48,
- end: 2.88,
- confidence: 0.99,
- punctuated_word: "video.",
- },
- {
- word: "today",
- start: 3.2,
- end: 3.52,
- confidence: 0.98,
- punctuated_word: "Today",
- },
- {
- word: "we're",
- start: 3.6,
- end: 3.84,
- confidence: 0.97,
- punctuated_word: "we're",
- },
- {
- word: "going",
- start: 3.92,
- end: 4.16,
- confidence: 0.99,
- punctuated_word: "going",
- },
- {
- word: "to",
- start: 4.24,
- end: 4.32,
- confidence: 0.99,
- punctuated_word: "to",
- },
- {
- word: "explore",
- start: 4.4,
- end: 4.8,
- confidence: 0.98,
- punctuated_word: "explore",
- },
- {
- word: "how",
- start: 4.88,
- end: 5.04,
- confidence: 0.99,
- punctuated_word: "how",
- },
- {
- word: "the",
- start: 5.12,
- end: 5.2,
- confidence: 0.99,
- punctuated_word: "the",
- },
- {
- word: "transcription",
- start: 5.28,
- end: 5.92,
- confidence: 0.96,
- punctuated_word: "transcription",
- },
- {
- word: "system",
- start: 6.0,
- end: 6.4,
- confidence: 0.98,
- punctuated_word: "system",
- },
- {
- word: "works",
- start: 6.48,
- end: 6.88,
- confidence: 0.99,
- punctuated_word: "works.",
- },
- ],
- },
- ],
- },
- ],
- utterances: [
- {
- start: 0.08,
- end: 0.88,
- confidence: 0.99,
- channel: 0,
- transcript: "Hello everyone.",
- words: [
- {
- word: "hello",
- start: 0.08,
- end: 0.32,
- confidence: 0.99,
- punctuated_word: "Hello",
- },
- {
- word: "everyone",
- start: 0.4,
- end: 0.88,
- confidence: 0.99,
- punctuated_word: "everyone.",
- },
- ],
- id: "utterance-1",
- },
- {
- start: 1.2,
- end: 2.88,
- confidence: 0.98,
- channel: 0,
- transcript: "Welcome to this demo video.",
- words: [
- {
- word: "welcome",
- start: 1.2,
- end: 1.6,
- confidence: 0.98,
- punctuated_word: "Welcome",
- },
- {
- word: "to",
- start: 1.68,
- end: 1.76,
- confidence: 0.99,
- punctuated_word: "to",
- },
- {
- word: "this",
- start: 1.84,
- end: 2.0,
- confidence: 0.99,
- punctuated_word: "this",
- },
- {
- word: "demo",
- start: 2.08,
- end: 2.4,
- confidence: 0.97,
- punctuated_word: "demo",
- },
- {
- word: "video",
- start: 2.48,
- end: 2.88,
- confidence: 0.99,
- punctuated_word: "video.",
- },
- ],
- id: "utterance-2",
- },
- {
- start: 3.2,
- end: 6.88,
- confidence: 0.98,
- channel: 0,
- transcript:
- "Today we're going to explore how the transcription system works.",
- words: [
- {
- word: "today",
- start: 3.2,
- end: 3.52,
- confidence: 0.98,
- punctuated_word: "Today",
- },
- {
- word: "we're",
- start: 3.6,
- end: 3.84,
- confidence: 0.97,
- punctuated_word: "we're",
- },
- {
- word: "going",
- start: 3.92,
- end: 4.16,
- confidence: 0.99,
- punctuated_word: "going",
- },
- {
- word: "to",
- start: 4.24,
- end: 4.32,
- confidence: 0.99,
- punctuated_word: "to",
- },
- {
- word: "explore",
- start: 4.4,
- end: 4.8,
- confidence: 0.98,
- punctuated_word: "explore",
- },
- {
- word: "how",
- start: 4.88,
- end: 5.04,
- confidence: 0.99,
- punctuated_word: "how",
- },
- {
- word: "the",
- start: 5.12,
- end: 5.2,
- confidence: 0.99,
- punctuated_word: "the",
- },
- {
- word: "transcription",
- start: 5.28,
- end: 5.92,
- confidence: 0.96,
- punctuated_word: "transcription",
- },
- {
- word: "system",
- start: 6.0,
- end: 6.4,
- confidence: 0.98,
- punctuated_word: "system",
- },
- {
- word: "works",
- start: 6.48,
- end: 6.88,
- confidence: 0.99,
- punctuated_word: "works.",
- },
- ],
- id: "utterance-3",
- },
- ],
- },
-};
-
-export const silentVideoDeepgramResponse = {
- metadata: {
- transaction_key: "deprecated",
- request_id: "silent-video-request-id",
- sha256: "silent123",
- created: "2025-01-08T12:00:00.000Z",
- duration: 10.0,
- channels: 1,
- models: ["nova-3"],
- },
- results: {
- channels: [
- {
- alternatives: [
- {
- transcript: "",
- confidence: 0,
- words: [],
- },
- ],
- },
- ],
- utterances: [],
- },
-};
-
-export const longVideoDeepgramResponse = {
- metadata: {
- transaction_key: "deprecated",
- request_id: "long-video-request-id",
- sha256: "long123",
- created: "2025-01-08T12:00:00.000Z",
- duration: 120.5,
- channels: 1,
- models: ["nova-3"],
- },
- results: {
- channels: [
- { alternatives: [{ transcript: "", confidence: 0, words: [] }] },
- ],
- utterances: [
- {
- start: 0.0,
- end: 8.5,
- confidence: 0.97,
- channel: 0,
- transcript:
- "This is a longer video with multiple sentences that should be broken up into multiple caption groups based on the eight word limit.",
- words: Array.from({ length: 20 }, (_, i) => ({
- word:
- [
- "this",
- "is",
- "a",
- "longer",
- "video",
- "with",
- "multiple",
- "sentences",
- "that",
- "should",
- "be",
- "broken",
- "up",
- "into",
- "multiple",
- "caption",
- "groups",
- "based",
- "on",
- "the",
- ][i] ?? "word",
- start: i * 0.4,
- end: i * 0.4 + 0.35,
- confidence: 0.97,
- punctuated_word:
- [
- "This",
- "is",
- "a",
- "longer",
- "video",
- "with",
- "multiple",
- "sentences",
- "that",
- "should",
- "be",
- "broken",
- "up",
- "into",
- "multiple",
- "caption",
- "groups",
- "based",
- "on",
- "the",
- ][i] ?? "word",
- })),
- id: "utterance-long-1",
- },
- ],
- },
-};