Skip to content

feat: streaming transcription with openAI #359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: next
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"typescript": "^5.0.0"
},
"dependencies": {
"openai": "^4.91.1",
"openai": "^4.93.0",
"sharp": "^0.33.5",
"ws": "^8.16.0"
},
Expand Down
1 change: 1 addition & 0 deletions plugins/openai/src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export type ChatModels =
| 'gpt-3.5-turbo-16k-0613';

export type WhisperModels = 'whisper-1';
export type OpenAISTTModels = 'whisper-1' | 'gpt-4o-transcribe' | 'gpt-4o-mini-transcribe';

export type TTSModels = 'tts-1' | 'tts-1-hd' | 'gpt-4o-mini-tts';

Expand Down
2 changes: 1 addition & 1 deletion plugins/openai/src/stt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ import { describe } from 'vitest';
import { STT } from './stt.js';

describe('OpenAI', async () => {
await stt(new STT(), await VAD.load(), { streaming: false });
await stt(new STT(), await VAD.load(), { streaming: true });
});
Loading