Repository navigation
Conversation
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.
改动概述
抖音转写改为从实际视频提取音轨,避免把独立配乐当成完整口播。旧任务重试时备份并停用旧音频元数据和转写缓存。
为什么
现有下载器读取
aweme_detail.music.play_url.uri。该资源可能只是配乐,与视频最终混合音轨不同,导致遗漏人声或产生重复、无关的转写。本地复现中,配乐资源约 100 秒,转写仅返回 4 段
Thank you.;实际视频音轨约 85.6 秒,同一 Faster Whisper large-v3-turbo 模型直接读取 MP4 后得到 43 段中文口播。该对比用于验证音频来源问题,不代表转写已逐字校对。做了什么
download_video和已有LocalDownloader.convert_to_mp3,从视频提取音轨。_video_audio.mp3文件名,保留旧配乐文件;返回实际video_path。raw_info.audio_source=video_track_v1标记新来源。测试方式
python -m pytest -q tests/test_douyin_audio_source.py tests/test_whisper_config_forwarding.py(backend 目录)。回归风险
.legacy-music-*.bak文件保留,不自动清理。Checklist
codex/douyin-video-audio。master:检查时上游无develop分支。fix(douyin): ...格式。