Custom vocabulary on non-Latin speech: English-only CTC verifier scores Cyrillic words as <unk>, so Latin terms replace ordinary words; CLI also ignores JSON thresholds
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- json, machine-learning, swift
- Lĩnh vực
- cli, machine-learning, tooling
Hướng nghiên cứu
Start with BpeTokenizer.swift:177, VocabularyRescorer+TokenEvaluation.swift:170, and TranscribeCommand.swift:876, then compare them with VocabularyBoostingSession.swift:169 and loadWithCtcTokens. Run the transcription CLI with a Cyrillic custom vocabulary to reproduce the ignored thresholds and false Latin replacements. Done means JSON thresholds are honored consistently, the handling of <unk> and caller-provided ctcTokenIds is defined, and the selected behavior is covered by tests or a reproducible CLI report.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Setup. fluidaudiocli transcribe --local-model-dir <Parakeet TDT 0.6B v3 fine-tune> --custom-vocab vocab.json, main e2ea498. Speech is Russian/Ukrainian with English product names (MyRemotely, Rentvine, 1oT, lockbox). The vocab JSON uses FluidVoice's format (alpha, minCtcScore, minSimilarity, minCombinedConfidence, weight, Cyrillic and Latin aliases).
Results on 86 real Russian voice messages.
Good: My Remotely → MyRemotely, Rentwine → Rentvine, One Aut / вана уйти → 1oT.
False replacements:
онлайн/ассайн→ Rentvine (aliasандвайн, similarity 0.57)так как/но, как/логику→ lockboxпрямо на/времени→ Remoмы могли/мы можем→ MyRemotelyallow→ Zillow,сим→ eSIM,work order→work owner- Neighbour words get swallowed:
в логбаксе→локбакс
Changing weight (10 → 4) and the JSON minSimilarity (0.72 → 0.8) / minCombinedConfidence (0.64 → 0.75) changed nothing in the output.
Root causes found in the source.
- The verifier is
parakeet-ctc-110m(English, 1024 BPE pieces, no Cyrillic and no byte pieces). Cyrillic originals encode to<unk>pieces (BpeTokenizer.swift:177), so the original span's CTC score is degenerate andboosted(term) > original(VocabularyRescorer+TokenEvaluation.swift:170) passes for almost any Latin term, even with--vocab-cbw 0. #967 noted the spotter is English-only; this is the other half: non-Latin originals. - The batch CLI ignores vocabulary-level thresholds. It passes
args.vocabMinSimilarity ?? rescorerConfig(forVocabSize:).minSimilarity(TranscribeCommand.swift:876), so the JSONminSimilarityhas no effect, whileVocabularyBoostingSessionuses it as a floor (VocabularyBoostingSession.swift:169). App and CLI therefore behave differently.alpha,minCtcScoreandminCombinedConfidenceare decoded but not read by the Parakeet rescorer, andweightis unused on this path. - A JSON
ctcTokenIdsvalue is overwritten inloadWithCtcTokens, so a caller cannot supply its own spoken form.
Suggested options (any subset helps):
- Honour the JSON thresholds in the CLI batch path, the same way as the session (
max(override ?? sizeDefault, vocab.minSimilarity)). Wire or removeminCtcScore/minCombinedConfidence/alpha, and document thatweightis unused. - Script /
<unk>guard: skip the CTC comparison, or reject the candidate, when the original span tokenizes mostly to<unk>. Optionally do not let a Latin term replace a non-Latin span unless an alias matches exactly. Allow per-language stopword lists. - A per-term
pronunciation/spokenfield (a Latin spelling as spoken, or caller-keptctcTokenIds) used for CTC scoring, separate from the outputtext. Longer term: a multilingual CTC verifier. - Per-term
neverReplacewords, plus a CLI--vocab-report <json>that printsctcTokenEvaluateCandidates(term, alias, similarity, raw scores, boost, spotter-rescue origin) for debugging.
Related: #967, #1151, #702, #724, #647.
- Ngôn ngữ chính
- Swift
- Star
- 3k
- Fork
- 451
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 87
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của FluidInference/FluidAudio
-
Kokoro ANE legacy: Alignment still runs the graph that traps at 48 tokens (#1172 fixed v3 only)Đang mởbug text-to-speech
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
FluidInference/FluidAudio#1201 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
FluidInference/FluidAudio#1200 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
FluidInference/FluidAudio#1194 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
FluidInference/FluidAudio#1191 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
FluidInference/FluidAudio#1182 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của FluidInference/FluidAudio
Issue tương tự
-
area: build-and-ci S3: minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
manaflow-ai/cmux#65734 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
OneBusAway/onebusaway-ios#2025 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue help wanted
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
erkamyaman/rust-anything#930 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
contributor: external iOS needs review sdk-58 severity: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
expo/expo#54458 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
SwiftOldDriver/iOS-Weekly#5528 ·
Maintainer thường phản hồi trong vòng 1 ngày