// SPDX-FileCopyrightText: 2024 LiveKit, Inc. // // SPDX-License-Identifier: Apache-2.0 import { VAD } from '@livekit/agents-plugin-silero'; import { stt } from '@livekit/agents-plugins-test'; import { describe, it } from 'vitest'; import { STT } from './stt.js'; const hasOpenAIApiKey = Boolean(process.env.OPENAI_API_KEY); if (hasOpenAIApiKey) { describe('OpenAI', async () => { await stt(new STT(), await VAD.load(), { streaming: false }); }); } else { describe('OpenAI', () => { it.skip('requires OPENAI_API_KEY', () => {}); }); }