--- annotations_creators: - expert-generated - crowdsourced - machine-generated language_creators: - crowdsourced - expert-generated language: - afr - amh - ara - asm - ast - azj - bel - ben - bos - cat - ceb - cmn - ces - cym - dan - deu - ell - eng - spa - est - fas - ful - fin - tgl - fra - gle - glg - guj - hau - heb - hin - hrv - hun - hye - ind - ibo - isl - ita - jpn - jav - kat - kam - kea - kaz - khm - kan - kor - ckb - kir - ltz - lug - lin - lao - lit - luo - lav - mri - mkd - mal - mon - mar - msa - mlt - mya - nob - npi - nld - nso - nya - oci - orm - ory - pan - pol - pus - por - ron - rus - bul - snd - slk - slv - sna - som - srp - swe - swh - tam - tel - tgk - tha - tur - ukr - umb - urd - uzb - vie - wol - xho - yor - yue - zul license: cc-by-sa-4.0 multilinguality: - multilingual size_categories: - 10K/audio/`. [Split counts and release metadata](release-info.json) · [Full file inventory](source/inventory.jsonl) · [Data Studio](https://huggingface.co/datasets/lance-format/fleurs-lance/viewer/en_us/test) ## Search transcripts and locate recordings This release generates normalized 256-dimensional float32 vectors from each complete `raw_transcription` using the multilingual `minishlab/potion-multilingual-128M` checkpoint at revision `73908c3438cf03b6a01bcb9611d62b23d0726f08`. Recordings of the same transcript share the same vector. The table has a cosine IVF_PQ index for larger searches. The example computes exact cosine distances within the English test split. It prints the cosine similarity, the sentence ID, and the distinct recording filename for five matches. [Pinned query encoder](https://huggingface.co/minishlab/potion-multilingual-128M/tree/73908c3438cf03b6a01bcb9611d62b23d0726f08) Install the dependencies with `python -m pip install "pylance==14.0.3" "model2vec==0.10.0" huggingface_hub scipy`. ```python import lance from huggingface_hub import HfApi, snapshot_download from model2vec import StaticModel repo = "lance-format/fleurs-lance" revision = HfApi(token=False).dataset_info(repo, token=False).sha base = f"hf://datasets/{repo}" options = {"hf_revision": revision} utterances = lance.dataset(f"{base}/lance/utterances.lance", storage_options=options) model_dir = snapshot_download( "minishlab/potion-multilingual-128M", revision="73908c3438cf03b6a01bcb9611d62b23d0726f08", allow_patterns=["config.json", "tokenizer.json", "model.safetensors"], token=False, ) encoder = StaticModel.from_pretrained(model_dir, max_length=None) query = "Fashion styles in the west lagged for decades because communication was slow." vector = encoder.encode(query, max_length=None, normalize=True) matches = utterances.to_table( columns=["id", "lang_code", "split", "path", "raw_transcription", "text_source_url", "_distance"], filter="lang_code = 'en_us' AND split = 'test'", prefilter=True, nearest={"column": "embedding", "q": vector, "k": 5, "metric": "cosine", "use_index": False}, ).to_pylist() for hit in matches: print(f"{1 - hit['_distance']:.4f} {hit['lang_code']}/{hit['split']} {hit['id']} {hit['path']} {hit['raw_transcription']}") ``` ## Read an original WAV from Lance The example reads a bounded prefix of the original English test archive as a Lance Blob v2 and exports the first WAV, one of the top matches above. For later members, stream the corresponding gzip archive and match the WAV filename in the utterance row. ```python import hashlib import io import tarfile from pathlib import Path import lance from huggingface_hub import HfApi from scipy.io import wavfile repo = "lance-format/fleurs-lance" revision = HfApi(token=False).dataset_info(repo, token=False).sha base = f"hf://datasets/{repo}" options = {"hf_revision": revision} files = lance.dataset( f"{base}/lance/source-files.lance", storage_options=options, base_store_params={base: options}, ) entry, = files.to_table( columns=["source_path"], filter="source_path = 'data/en_us/audio/test.tar.gz'", with_row_id=True, ).to_pylist() with files.take_blobs("payload", ids=[entry["_rowid"]])[0] as audio_archive: prefix = audio_archive.read(768000) with tarfile.open(fileobj=io.BytesIO(prefix), mode="r|gz") as archive: member = next(item for item in archive if item.isfile()) assert member.name == "test/1003119935936341070.wav" with archive.extractfile(member) as stream: wav = stream.read() assert hashlib.sha256(wav).hexdigest() == "33aca50159ec2e3cbcc894eb26faa916d6badb1b49fb75994973561540a7f012" sample_rate, samples = wavfile.read(io.BytesIO(wav)) assert sample_rate == 16000 print(f"{sample_rate} Hz, {len(samples)} samples") Path("1003119935936341070.wav").write_bytes(wav) ``` ## Source licenses and attribution Google and the FLEURS authors release the speech dataset under CC BY 4.0. The included text derives from Meta's FLORES-101 dev and devtest transcripts, which retain CC BY-SA 4.0. The native table credits the original Wikinews, Wikivoyage, or Wikibooks page on every row through `text_source_url`, matched against Meta's first-party metadata. The linked pages preserve source contributor and license history. This conversion adds Lance tables, range-access references, the provenance join, and search embeddings. Original WAVs, TSVs, and Parquets are byte-identical. [Original FLEURS card](source/README.md) · [CC BY 4.0 text](LICENSE-CC-BY-4.0.txt) · [FLORES-101 source and citation](source/flores101/README.md) · [FLORES-101 CC BY-SA 4.0 text](source/flores101/LICENSE.txt) · [Sentence-by-sentence attribution](source/flores101/utterance-attribution.tsv)