fix(asr): 删除 retranscribe 里重复的 ElevenLabs 匹配分支 (#906)
该分支与上一条完全一致,属于死代码,cargo check 会报 warning: unreachable pattern。 Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f22eb54d90
commit
9dbb316ff8
1 file changed
-6
@@ -2193,12 +2193,6 @@ impl Coordinator {
|
||||
.map_err(|_| "重新转录超时".to_string())?
|
||||
.map_err(|e| e.to_string())?
|
||||
}
|
||||
ActiveAsr::ElevenLabs(e) => {
|
||||
tokio::time::timeout(elevenlabs_timeout, e.transcribe())
|
||||
.await
|
||||
.map_err(|_| "重新转录超时".to_string())?
|
||||
.map_err(|e| e.to_string())?
|
||||
}
|
||||
#[cfg(target_os = "windows")]
|
||||
ActiveAsr::FoundryLocalWhisper(local) => {
|
||||
let audio_secs = (local.buffer_duration_ms() as f64) / 1000.0;
|
||||
|
||||
Reference in new issue
Block a user