00 研究計畫與驗證設計
問題
Hugging Face 資料集 adi-gov-tw/Taiwan-Tongues-ASR-CE-dataset-zhtw的資料卡說它是「Taiwan-Tongues-ASR-CE 專案收集與處理的語音語料」。外界質疑它只是把 Mozilla Common Voice 的 zh-TW / zh-CN 錄音換名後重新上傳。
本研究要回答三個可檢驗的問題:
| 編號 | 問題 | 若 Taiwan-Tongues 資料集是原始錄製,預期會看到 | 若 Taiwan-Tongues 資料集是 Common Voice 複製品,預期會看到 |
|---|---|---|---|
| Q1 | Taiwan-Tongues 資料集的中繼資料(檔名、說話人 ID、句子 ID、文字)是否與 Common Voice 相同? | 自有的命名與 ID 體系 | 與 Common Voice TSV 逐欄相同 |
| Q2 | Taiwan-Tongues 資料集的音檔是否與 Common Voice 音檔是同一段錄音? | 位元組、指紋都不同 | 位元組相同;或重編碼後指紋仍相同 |
| Q3 | Taiwan-Tongues 資料集的說話人是否就是 Common Voice 的說話人(用 Taiwan-Tongues 資料集 沒有收錄 的 Common Voice 錄音來驗證)? | 聲紋與 Common Voice 說話人不相符 | 聲紋與同一 client_id 的 Common Voice 保留錄音高度相符 |
Q1 與 Q2 任一成立即可判定「複製」。Q3 是獨立於檔案層的佐證,用來排除「只是借用了 Common Voice 的中繼資料格式,音檔另外錄製」的可能。
分層驗證設計
Tier 0 中繼資料/文字稿比對 scripts/01_metadata_transcript_check.py → results/01_metadata/
Tier 1 位元組雜湊(MD5 + SHA-256)scripts/02_audio_hash_check.py → results/02_audio_hash/
Tier 2 強健聲學指紋(audfprint) scripts/03_fingerprint_audfprint.py → results/03_fingerprint/
Tier 3 說話人 embedding scripts/04_speaker_embedding.py → results/04_speaker/
- Tier 0:以檔名(
common_voice_<locale>_<id>.mp3)為鍵,把 Taiwan-Tongues 資料集的 train.tsv / test.tsv 與 tar 內 JSON,對 Common Voice 的 validated / other / invalidated TSV 做內部連結。逐欄比較client_id、sentence_id、sentence、age、gender。另外檢查 Taiwan-Tongues 資料集的 train 是否含 Common Voice 官方 test / dev 片段(評測洩漏)。zh-CN 句子若為繁體,用 OpenCC 把 Common Voice 的簡體句子轉繁體後再比。 - Tier 1:對 Taiwan-Tongues 資料集全部 120,012 個 MP3 計算 MD5 與 SHA-256,對照 Common Voice 鏡像 parquet 內嵌的 MP3 位元組。兩個雜湊皆相同 → 檔案未經任何重新編碼直接複製。另對位元組不同的配對解碼成 PCM 再比,排除只改 ID3 標籤的情況。
- Tier 2:為了證明「即使對方有重新編碼也抓得到」,用 audfprint(Shazam 式 landmark 指紋)對抽樣的 3,787 個 Taiwan-Tongues 資料集片段查詢一個含 8,400 個 Common Voice 片段(含 5,000 個不在 Taiwan-Tongues 資料集內的干擾片段)的索引。並對 300 個片段做人工劣化(32 kbps 重編碼、16 kHz 重取樣、裁頭 0.3 秒、−6 dB、全部疊加)再查詢,記錄真配對分數、劣化分數、負對照分數與門檻。
- Tier 3:抽 100 位 Taiwan-Tongues 資料集說話人(
client_id),各取 10 段 Taiwan-Tongues 資料集片段;再取同一client_id在 Common Voice 中 未被 Taiwan-Tongues 資料集收錄 的 10 段錄音;另取 100 位不在 Taiwan-Tongues 資料集內的 Common Voice 說話人當負對照。用 ReDimNet2-B6(主)與 SpeechBrain ECAPA-TDNN(基線)計算 cosine,先用 Common Voice 自身配對校準 EER 門檻,再看 Taiwan-Tongues 資料集說話人質心的最近鄰是否就是同一client_id,以及打亂標籤後的對照組。
對照資料來源與限制
- zh-TW:
OpenFormosa/common_voice_25_zh-TW,內含 Mozilla 原始source/*.tsv與原始 MP3 位元組。覆蓋 Taiwan-Tongues 資料集全部 zh-TW 片段。 - zh-CN:沒有完整鏡像。使用 Common Voice 21.0 官方切分(
keeve101/...)與 Common Voice 17.0 子集(masuidrive/...)。覆蓋 Taiwan-Tongues 資料集 zh-CN 片段 28,286 / 35,497 個;其餘 7,211 個無對照,不能 當成「原始錄製」的證據。 - 官方管道(Mozilla Data Collective)需登入下載;任何人取得官方 tar.gz 後,可用本 repo 的腳本把官方檔案當對照源重跑(見
docs/03_reproduce.md)。 - Common Voice 版本差異:Common Voice 的 clip 一旦發布就不再重新編碼,
clip_id跨版本固定,因此用 Common Voice 25 比對 2025-10 上傳的 Taiwan-Tongues 資料集不會造成假陰性;只有 Taiwan-Tongues 資料集上傳後才新增的 Common Voice 片段不會出現在 Taiwan-Tongues 資料集中。
判讀規則(事前訂定)
| 結果 | 判讀 |
|---|---|
| Tier 1 位元組相同比例 ≥ 99%(有對照者) | Taiwan-Tongues 資料集為 Common Voice 的直接複製,無重新錄製 |
| Tier 1 不同但 Tier 2 指紋相同 | Taiwan-Tongues 資料集為 Common Voice 重新編碼的複製 |
| Tier 1、Tier 2 皆不同,Tier 3 說話人相同 | 可能是同一批人另外錄製(需進一步查) |
| 三層皆不同 | 無法證明 Taiwan-Tongues 資料集來自 Common Voice |
工具與環境
- Python 3.11,pandas 3、pyarrow、ffmpeg、librosa;Tier 3 需 PyTorch + CUDA(RTX 3090,24 GB)。
- 所有腳本固定隨機種子(20251203),輸出 CSV / JSON / Markdown,放在
results/。 - 研究由 Claude Code(Claude Fable 5.1)協調,子代理分工:方法調查(Fable)、Tier 0 實作(Claude Opus)、Tier 2 與 Tier 3 實作(Fable)。所有結論以腳本輸出為準。