Skip to content

Commit b252a29

Browse files
authored
Added deepgram flux plugin (#938)
1 parent ad01170 commit b252a29

File tree

5 files changed

+510
-0
lines changed

5 files changed

+510
-0
lines changed

.changeset/bitter-dogs-slide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@livekit/agents-plugin-deepgram': patch
3+
---
4+
5+
Added deepgram flux functionality to the agents-js

plugins/deepgram/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import { Plugin } from '@livekit/agents';
55

66
export * from './stt.js';
7+
export * from './stt_v2.js';
78
export * from './tts.js';
89

910
class DeepgramPlugin extends Plugin {

plugins/deepgram/src/models.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export type TTSModels =
1818

1919
export type TTSEncoding = 'linear16' | 'mulaw' | 'alaw' | 'mp3' | 'opus' | 'flac' | 'aac';
2020

21+
export type V2Models = 'flux-general-en';
22+
2123
export type STTModels =
2224
| 'nova-general'
2325
| 'nova-phonecall'
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// SPDX-FileCopyrightText: 2025 LiveKit, Inc.
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
import { initializeLogger } from '@livekit/agents';
5+
import { VAD } from '@livekit/agents-plugin-silero';
6+
import { stt } from '@livekit/agents-plugins-test';
7+
import { describe } from 'vitest';
8+
import { STTv2 } from './stt_v2.js';
9+
10+
describe('Deepgram STTv2 (Flux)', async () => {
11+
initializeLogger({ pretty: false });
12+
await stt(new STTv2(), await VAD.load(), { nonStreaming: false });
13+
});

0 commit comments

Comments
 (0)