fix: Align Xunfei frontdesk room input defaults#9
Merged
Conversation
…runtime-fixes # Conflicts: # app-config.ts # hooks/useRoom.ts
|
Claude encountered an error after 0s —— View job I'll analyze this and get back to you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更概述
本 PR 对讯飞前台运行时的 room input 默认配置做对齐:前端默认识别后端发布的
room_video视频轨道,过滤输入音频轨道的网页播放,并把 room input / 讯飞服务侧转录归到用户侧展示。这组改动面向 server room input 场景,避免浏览器本地麦克风和后端输入链路同时工作,同时降低 LiveKit 房间刷新后自动重连到旧会话的概率。
主要改动
1. 前台 room input 轨道默认值
.env.example补充连接详情接口覆盖项NEXT_PUBLIC_CONN_DETAILS_ENDPOINT。.env.example新增NEXT_PUBLIC_FRONTDESK_VIDEO_TRACK_NAME=room_video,并说明后端 room input 默认发布room_video。app-config.ts通过NEXT_PUBLIC_FRONTDESK_VIDEO_TRACK_NAME配置前台视频轨道名,未配置时默认使用room_video。2. 输入音频过滤和字幕身份映射
excludeAudioTracks同时过滤xunfei_audio_track和room_audio,避免网页扬声器播放输入采集音频。userTranscriptionIdentities增加xunfei_service_agent、room_input和room_audio_input,让这些来源的转录按用户输入归类。3. server room input 会话行为
useRoom初始化 LiveKitRoom时禁用自动重连重试。usesServerRoomInput场景下,连接后显式关闭本地浏览器麦克风,保留后端 room input 作为默认输入来源。影响说明
room_audio/room_videoroom input 合同。