优化语音中转模式

This commit is contained in:
mtvpls
2025-12-09 01:39:42 +08:00
parent c4c4843aa9
commit 0ffd0e1606
2 changed files with 32 additions and 3 deletions

View File

@@ -77,6 +77,7 @@ export interface ServerToClientEvents {
'voice:offer': (data: { userId: string; offer: RTCSessionDescriptionInit }) => void;
'voice:answer': (data: { userId: string; answer: RTCSessionDescriptionInit }) => void;
'voice:ice': (data: { userId: string; candidate: RTCIceCandidateInit }) => void;
'voice:mic-enabled': (data: { userId: string }) => void;
'voice:audio-chunk': (data: { userId: string; audioData: number[]; sampleRate?: number }) => void;
'state:cleared': () => void;
'error': (message: string) => void;