Datasets:
|
Download README.md from lance-format/small-overlapping-speech-bench-lance: direct link, hf CLI and curl.
- Browser
- Download file 4.16 kB
-
https://huggingface.co/datasets/lance-format/small-overlapping-speech-bench-lance/resolve/main/README.md
- Command line
-
hf download hf://datasets/lance-format/small-overlapping-speech-bench-lance/README.md
-
curl -L -o README.md https://huggingface.co/datasets/lance-format/small-overlapping-speech-bench-lance/resolve/main/README.md
4.16 kB
| pretty_name: Small Overlapping Speech Bench in Lance | |
| license: cc-by-4.0 | |
| license_link: LICENSE.md | |
| language: | |
| - de | |
| - fr | |
| - es | |
| - it | |
| - nl | |
| - pt | |
| task_categories: | |
| - automatic-speech-recognition | |
| source_datasets: | |
| - laion/small-overlapping-speech-bench | |
| - facebook/multilingual_librispeech | |
| tags: | |
| - lance | |
| - multilingual | |
| - audio | |
| - overlapping-speech | |
| - speaker-diarization | |
| - vector-search | |
| size_categories: | |
| - n<1K | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: test | |
| path: source/data/** | |
| # Small Overlapping Speech Bench in Lance | |
| LAION's [Small Overlapping Speech Bench](https://huggingface.co/datasets/laion/small-overlapping-speech-bench) tests speech recognition on synthetic mixtures of three overlapping audiobook speakers. Each clip contains three languages chosen from Dutch, French, German, Italian, Portuguese, and Spanish. This release pins [upstream revision `ff83755c3dc4967732956337e4c5036070a5f68e`](https://huggingface.co/datasets/laion/small-overlapping-speech-bench/tree/ff83755c3dc4967732956337e4c5036070a5f68e). | |
| | Lance path | Rows | Contents | | |
| | --- | ---: | --- | | |
| | `data/test.lance` | 100 | All original test clips with byte-exact MP3 audio, filenames, and nested ground-truth speaker IDs, languages, transcripts, and timestamps | | |
| | `search/test-speakers.lance` | 300 | One searchable row per speaker segment, with clip ID, source speaker ID, transcript, and start and end times | | |
| The [source folder](source/) preserves the pinned AudioFolder files, original card, ground truth, benchmark reports, scores, and reproduction scripts. Use the `test` split in the viewer to preview the original AudioFolder data. | |
| ## Search by spoken transcript | |
| This release generates one 256-dimensional float32 embedding from each original per-speaker `transcript` using [`minishlab/potion-multilingual-128M`](https://huggingface.co/minishlab/potion-multilingual-128M/tree/73908c3438cf03b6a01bcb9611d62b23d0726f08) at revision `73908c3438cf03b6a01bcb9611d62b23d0726f08`. The multilingual model encodes complete transcripts without truncation and L2-normalizes the vectors. The example searches the French speaker segments by cosine distance, displaying cosine similarity as `1 - distance`. Each match identifies its source clip, speaker, and time range. Use the clip ID to retrieve the original mixture from `data/test.lance`. | |
| Install dependencies with `pip install "pylance==14.0.3" "model2vec==0.10.0" "huggingface_hub==2.4.0"`. | |
| ```python | |
| from huggingface_hub import snapshot_download | |
| import lance | |
| from model2vec import StaticModel | |
| model_dir = snapshot_download( | |
| "minishlab/potion-multilingual-128M", | |
| revision="73908c3438cf03b6a01bcb9611d62b23d0726f08", | |
| allow_patterns=["config.json", "model.safetensors", "tokenizer.json"], | |
| token=False, | |
| ) | |
| encoder = StaticModel.from_pretrained(model_dir, max_length=None) | |
| query = "Un génie demande pardon au prophète Salomon." | |
| query_vector = encoder.encode([query], max_length=None, normalize=True)[0] | |
| segments = lance.dataset( | |
| "hf://datasets/lance-format/small-overlapping-speech-bench-lance/search/test-speakers.lance" | |
| ) | |
| hits = segments.to_table( | |
| filter="code = 'fr'", | |
| prefilter=True, | |
| columns=["clip_id", "id", "code", "start_time", "end_time", "transcript", "_distance"], | |
| nearest={"column": "embedding", "q": query_vector, "k": 5, "metric": "cosine"}, | |
| ).to_pylist() | |
| for hit in hits: | |
| similarity = 1 - hit["_distance"] | |
| print(f"{similarity:.4f} {hit['clip_id']} {hit['id']} " | |
| f"({hit['code']}, {hit['start_time']:.2f}–{hit['end_time']:.2f}s) " | |
| f"{hit['transcript']}") | |
| ``` | |
| ## Attribution and license | |
| Credit LAION e.V. for Small Overlapping Speech Bench and Vineel Pratap, Qiantong Xu, Anuroop Sriram, Gabriel Synnaeve, and Ronan Collobert for [Multilingual LibriSpeech](https://www.openslr.org/94/) (Interspeech 2020), which is derived from LibriVox audiobook readings. Both releases declare [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/). This release adds a Lance conversion and transcript embeddings. See the [original benchmark card](source/README.md) and [license details](LICENSE.md). | |