import{s as ia,n as na,o as Ta}from"../chunks/scheduler.9cda857a.js";import{S as Ja,i as oa,e as n,s,c as o,h as pa,a as T,d as a,b as i,f as la,g as p,j as J,k as sa,l as ua,m as l,n as u,t as U,o as d,p as r}from"../chunks/index.003612b0.js";import{C as Ua}from"../chunks/CopyLLMTxtMenu.44d08a39.js";import{C as M}from"../chunks/CodeBlock.a90632f1.js";import{H as y,E as da}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.e5cfda8c.js";function ra(je){let f,ht,wt,Ct,m,$t,w,gt,c,ke='This guide will show you how to configure your dataset repository with audio files. You can find accompanying examples of repositories in this <a href="https://huggingface.co/collections/datasets-examples/audio-dataset-66aca0b73e8f69e3d069e607" rel="nofollow">Audio datasets examples collection</a>.',It,h,be='A dataset with a supported structure and <a href="./datasets-adding#file-formats">file formats</a> automatically has a Dataset Viewer on its page on the Hub.',vt,jt,kt,C,Fe="Additional information about your audio files - such as transcriptions - is automatically loaded as long as you include this information in a metadata file (<code>metadata.csv</code>/<code>metadata.jsonl</code>/<code>metadata.parquet</code>).",bt,$,Be='Alternatively, audio files can be in Parquet files or in TAR archives following the <a href="https://github.com/webdataset/webdataset" rel="nofollow">WebDataset</a> format.',Ft,g,Bt,I,Ae="If your dataset only consists of one column with audio, you can simply store your audio files at the root:",At,v,Qt,j,Qe="or in a subdirectory:",Nt,k,Vt,b,Ne='Multiple <a href="./datasets-adding#file-formats">formats</a> are supported at the same time, including AIFF, FLAC, MP3, OGG and WAV.',Ot,F,Yt,B,Ve="If you have several splits, you can put your audio files into directories named accordingly:",Dt,A,_t,Q,Oe='See <a href="./datasets-file-names-and-splits">File names and splits</a> for more information and other ways to organize data by splits.',xt,N,Rt,V,Ye='If there is additional information you’d like to include about your dataset, like the transcription, add it as a <code>metadata.csv</code> file in your repository. This lets you quickly create datasets for different audio tasks like <a href="https://huggingface.co/tasks/text-to-speech" rel="nofollow">text-to-speech</a> or <a href="https://huggingface.co/tasks/automatic-speech-recognition" rel="nofollow">automatic speech recognition</a>.',Lt,O,Xt,Y,De="Your <code>metadata.csv</code> file must have a <code>file_name</code> column which links image files with their metadata:",qt,D,Zt,_,_e='You can also use a <a href="https://jsonlines.org/" rel="nofollow">JSONL</a> file <code>metadata.jsonl</code>:',Et,x,Ht,R,xe='And for bigger datasets or if you are interested in advanced data retrieval features, you can use a <a href="https://parquet.apache.org/" rel="nofollow">Parquet</a> file <code>metadata.parquet</code>.',Gt,L,Pt,X,Re="Metadata file must be located either in the same directory with the audio files it is linked to, or in any parent directory, like in this example:",St,q,Wt,Z,Le="In this case, the <code>file_name</code> column must be a full relative path to the audio files, not just the filename:",zt,E,Kt,H,Xe="Metadata files cannot be put in subdirectories of a directory with the audio files.",te,G,qe="More generally, any column named <code>file_name</code> or <code>*_file_name</code> should contain the full relative path to the audio files.",ee,P,Ze='In this example, the <code>test</code> directory is used to setup the name of the training split. See <a href="./datasets-file-names-and-splits">File names and splits</a> for more information.',ae,S,le,W,Ee="For audio classification datasets, you can also use a simple setup: use directories to name the audio classes. Store your audio files in a directory structure like:",se,z,ie,K,He="The dataset created with this structure contains two columns: <code>audio</code> and <code>label</code> (with values <code>cat</code> and <code>dog</code>).",ne,tt,Ge='You can also provide multiple splits. To do so, your dataset directory should have the following structure (see <a href="./datasets-file-names-and-splits">File names and splits</a> for more information):',Te,et,Je,at,Pe='You can disable this automatic addition of the <code>label</code> column in the <a href="./datasets-manual-configuration">YAML configuration</a>. If your directory names have no special meaning, set <code>drop_labels: true</code> in the README header:',oe,lt,pe,st,ue,it,Ue,nt,Se=`The <a href="./datasets-webdataset">WebDataset</a> format is well suited for large scale audio datasets (see <a href="https://huggingface.co/datasets/AlienKevin/sbs_cantonese" rel="nofollow">AlienKevin/sbs_cantonese</a> for example).
It consists of TAR archives containing audio files and their metadata and is optimized for streaming. It is useful if you have a large number of audio files and to get streaming data loaders for large scale training.`,de,Tt,re,Jt,We=`To make a WebDataset TAR archive, create a directory containing the audio files and metadata files to be archived and create the TAR archive using e.g. the <code>tar</code> command.
The usual size per archive is generally around 1GB.
Make sure each audio file and metadata pair share the same file prefix, for example:`,Me,ot,fe,pt,ze=`Note that for user convenience and to enable the <a href="./datasets-viewer">Dataset Viewer</a>, every dataset hosted in the Hub is automatically converted to Parquet format up to 5GB.
Read more about it in the <a href="./datasets-viewer#access-the-parquet-files">Parquet format</a> documentation.`,ye,ut,me,Ut,Ke=`Instead of uploading the audio files and metadata as individual files, you can embed everything inside a <a href="https://parquet.apache.org/" rel="nofollow">Parquet</a> file.
This is useful if you have a large number of audio files, if you want to embed multiple audio columns, or if you want to store additional information about the audio in the same file.
Parquet is also useful for storing data such as raw bytes, which is not supported by JSON/CSV.`,we,dt,ce,rt,ta='Parquet files with audio data can be created using <code>pandas</code> or the <code>datasets</code> library. To create Parquet files with audio data in <code>pandas</code>, you can use <a href="https://github.com/lhoestq/pandas-audio-methods" rel="nofollow">pandas-audio-methods</a> and <code>df.to_parquet()</code>. In <code>datasets</code>, you can set the column type to <code>Audio()</code> and use the <code>ds.to_parquet(...)</code> method or <code>ds.push_to_hub(...)</code>. You can find a guide on loading audio datasets in <code>datasets</code> <a href="/docs/datasets/audio_load">here</a>.',he,Mt,ea="Alternatively you can manually set the audio type of Parquet created using other tools. First, make sure your audio columns are of type <em>struct</em>, with a binary field <code>&quot;bytes&quot;</code> for the audio data and a string field <code>&quot;path&quot;</code> for the audio file name or path. Then you should specify the feature types of the columns directly in YAML in the README header, for example:",Ce,ft,$e,yt,aa="Note that Parquet is recommended for small audio files (&lt;1MB per audio file) and small row groups (100 rows per row group, which is what <code>datasets</code> uses for audio). For larger audio files it is recommended to use the WebDataset format, or to share the original audio files (optionally with metadata files).",ge,mt,Ie,ct,ve;return m=new Ua({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),w=new y({props:{title:"Audio Dataset",local:"audio-dataset",headingTag:"h1"}}),g=new y({props:{title:"Only audio files",local:"only-audio-files",headingTag:"h2"}}),v=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS53YXYlMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLndhdiUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMud2F2JTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC53YXY=",highlighted:`my_dataset_repository/
├── 1.wav
├── 2.wav
├── 3.wav
└── 4.wav`,wrap:!1}}),k=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwYXVkaW8lMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLndhdiUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDIud2F2JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMy53YXYlMEElMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjA0Lndhdg==",highlighted:`my_dataset_repository/
└── audio
    ├── 1.wav
    ├── 2.wav
    ├── 3.wav
    └── 4.wav`,wrap:!1}}),F=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwYXVkaW8lMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLmFpZmYlMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLm9nZyUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMubXAzJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC5mbGFj",highlighted:`my_dataset_repository/
└── audio
    ├── 1.aiff
    ├── 2.ogg
    ├── 3.mp3
    └── 4.flac`,wrap:!1}}),A=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4lMEElRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLndhdiUwQSVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMDIud2F2JTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdGVzdCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMud2F2JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC53YXY=",highlighted:`my_dataset_repository/
├── train
│   ├── 1.wav
│   └── 2.wav
└── test
    ├── 3.wav
    └── 4.wav`,wrap:!1}}),N=new y({props:{title:"Additional columns",local:"additional-columns",headingTag:"h2"}}),O=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS53YXYlMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLndhdiUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMud2F2JTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwNC53YXYlMEElRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBtZXRhZGF0YS5jc3Y=",highlighted:`my_dataset_repository/
├── 1.wav
├── 2.wav
├── 3.wav
├── 4.wav
└── metadata.csv`,wrap:!1}}),D=new M({props:{code:"ZmlsZV9uYW1lJTJDYW5pbWFsJTBBMS53YXYlMkNjYXQlMEEyLndhdiUyQ2NhdCUwQTMud2F2JTJDZG9nJTBBNC53YXYlMkNkb2c=",highlighted:`file_name,animal
<span class="hljs-number">1</span><span class="hljs-selector-class">.wav</span>,cat
<span class="hljs-number">2</span><span class="hljs-selector-class">.wav</span>,cat
<span class="hljs-number">3</span><span class="hljs-selector-class">.wav</span>,dog
<span class="hljs-number">4</span><span class="hljs-selector-class">.wav</span>,dog`,wrap:!1}}),x=new M({props:{code:"JTdCJTIyZmlsZV9uYW1lJTIyJTNBJTIwJTIyMS53YXYlMjIlMkMlMjJ0ZXh0JTIyJTNBJTIwJTIyY2F0JTIyJTdEJTBBJTdCJTIyZmlsZV9uYW1lJTIyJTNBJTIwJTIyMi53YXYlMjIlMkMlMjJ0ZXh0JTIyJTNBJTIwJTIyY2F0JTIyJTdEJTBBJTdCJTIyZmlsZV9uYW1lJTIyJTNBJTIwJTIyMy53YXYlMjIlMkMlMjJ0ZXh0JTIyJTNBJTIwJTIyZG9nJTIyJTdEJTBBJTdCJTIyZmlsZV9uYW1lJTIyJTNBJTIwJTIyNC53YXYlMjIlMkMlMjJ0ZXh0JTIyJTNBJTIwJTIyZG9nJTIyJTdE",highlighted:`<span class="hljs-punctuation">{</span><span class="hljs-attr">&quot;file_name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;1.wav&quot;</span><span class="hljs-punctuation">,</span><span class="hljs-attr">&quot;text&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;cat&quot;</span><span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">{</span><span class="hljs-attr">&quot;file_name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;2.wav&quot;</span><span class="hljs-punctuation">,</span><span class="hljs-attr">&quot;text&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;cat&quot;</span><span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">{</span><span class="hljs-attr">&quot;file_name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;3.wav&quot;</span><span class="hljs-punctuation">,</span><span class="hljs-attr">&quot;text&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;dog&quot;</span><span class="hljs-punctuation">}</span>
<span class="hljs-punctuation">{</span><span class="hljs-attr">&quot;file_name&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;4.wav&quot;</span><span class="hljs-punctuation">,</span><span class="hljs-attr">&quot;text&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;dog&quot;</span><span class="hljs-punctuation">}</span>`,wrap:!1}}),L=new y({props:{title:"Relative paths",local:"relative-paths",headingTag:"h2"}}),q=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdGVzdCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMGF1ZGlvJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJUMyJUEwJUMyJUEwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS53YXYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLndhdiUwQSUyMCUyMCUyMCUyMCVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMud2F2JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJUMyJUEwJUMyJUEwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC53YXYlMEElMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBtZXRhZGF0YS5jc3Y=",highlighted:`my_dataset_repository/
└── test
    ├── audio
    │   ├── 1.wav
    │   ├── 2.wav
    │   ├── 3.wav
    │   └── 4.wav
    └── metadata.csv`,wrap:!1}}),E=new M({props:{code:"ZmlsZV9uYW1lJTJDYW5pbWFsJTBBYXVkaW8lMkYxLndhdiUyQ2NhdCUwQWF1ZGlvJTJGMi53YXYlMkNjYXQlMEFhdWRpbyUyRjMud2F2JTJDZG9nJTBBYXVkaW8lMkY0LndhdiUyQ2RvZw==",highlighted:`<span class="hljs-attribute">file_name</span>,animal
<span class="hljs-attribute">audio</span>/<span class="hljs-number">1</span>.wav,cat
<span class="hljs-attribute">audio</span>/<span class="hljs-number">2</span>.wav,cat
<span class="hljs-attribute">audio</span>/<span class="hljs-number">3</span>.wav,dog
<span class="hljs-attribute">audio</span>/<span class="hljs-number">4</span>.wav,dog`,wrap:!1}}),S=new y({props:{title:"Audio classification",local:"audio-classification",headingTag:"h2"}}),z=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwY2F0JTBBJUUyJTk0JTgyJUMyJUEwJUMyJUEwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS53YXYlMEElRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjAyLndhdiUwQSVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMGRvZyUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMud2F2JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC53YXY=",highlighted:`my_dataset_repository/
├── cat
│   ├── 1.wav
│   └── 2.wav
└── dog
    ├── 3.wav
    └── 4.wav`,wrap:!1}}),et=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwdGVzdCUwQSVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMGNhdCUwQSVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMDIud2F2JTBBJUUyJTk0JTgyJUMyJUEwJUMyJUEwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwZG9nJTBBJUUyJTk0JTgyJUMyJUEwJUMyJUEwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC53YXYlMEElRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjB0cmFpbiUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMGNhdCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMDEud2F2JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwZG9nJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwMy53YXY=",highlighted:`my_dataset_repository/
├── test
│   ├── cat
│   │   └── 2.wav
│   └── dog
│       └── 4.wav
└── train
    ├── cat
    │   └── 1.wav
    └── dog
        └── 3.wav`,wrap:!1}}),lt=new M({props:{code:"Y29uZmlncyUzQSUwQSUyMCUyMC0lMjBjb25maWdfbmFtZSUzQSUyMGRlZmF1bHQlMjAlMjAlMjMlMjBOYW1lJTIwb2YlMjB0aGUlMjBkYXRhc2V0JTIwc3Vic2V0JTJDJTIwaWYlMjBhcHBsaWNhYmxlLiUwQSUyMCUyMCUyMCUyMGRyb3BfbGFiZWxzJTNBJTIwdHJ1ZQ==",highlighted:`<span class="hljs-attr">configs:</span>
  <span class="hljs-bullet">-</span> <span class="hljs-attr">config_name:</span> <span class="hljs-string">default</span>  <span class="hljs-comment"># Name of the dataset subset, if applicable.</span>
    <span class="hljs-attr">drop_labels:</span> <span class="hljs-literal">true</span>`,wrap:!1}}),st=new y({props:{title:"Large scale datasets",local:"large-scale-datasets",headingTag:"h2"}}),it=new y({props:{title:"WebDataset format",local:"webdataset-format",headingTag:"h3"}}),Tt=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4tMDAwMC50YXIlMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjB0cmFpbi0wMDAxLnRhciUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMC4uLiUwQSVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMHRyYWluLTEwMjMudGFy",highlighted:`my_dataset_repository/
├── train-0000.tar
├── train-0001.tar
├── ...
└── train-1023.tar`,wrap:!1}}),ot=new M({props:{code:"dHJhaW4tMDAwMCUyRiUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDAwMC5mbGFjJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMDAwLmpzb24lMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAwMDEuZmxhYyUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDAwMS5qc29uJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwLi4uJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwOTk5LmZsYWMlMEElRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjA5OTkuanNvbg==",highlighted:`train-0000/
├── 000.flac
├── 000.json
├── 001.flac
├── 001.json
├── ...
├── 999.flac
└── 999.json`,wrap:!1}}),ut=new y({props:{title:"Parquet format",local:"parquet-format",headingTag:"h3"}}),dt=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4ucGFycXVldA==",highlighted:`my_dataset_repository/
└── train.parquet`,wrap:!1}}),ft=new M({props:{code:"ZGF0YXNldF9pbmZvJTNBJTBBJTIwJTIwZmVhdHVyZXMlM0ElMEElMjAlMjAtJTIwbmFtZSUzQSUyMGF1ZGlvJTBBJTIwJTIwJTIwJTIwZHR5cGUlM0ElMjBhdWRpbyUwQSUyMCUyMC0lMjBuYW1lJTNBJTIwY2FwdGlvbiUwQSUyMCUyMCUyMCUyMGR0eXBlJTNBJTIwc3RyaW5n",highlighted:`<span class="hljs-attr">dataset_info:</span>
  <span class="hljs-attr">features:</span>
  <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string">audio</span>
    <span class="hljs-attr">dtype:</span> <span class="hljs-string">audio</span>
  <span class="hljs-bullet">-</span> <span class="hljs-attr">name:</span> <span class="hljs-string">caption</span>
    <span class="hljs-attr">dtype:</span> <span class="hljs-string">string</span>`,wrap:!1}}),mt=new da({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/datasets-audio.md"}}),{c(){f=n("meta"),ht=s(),wt=n("p"),Ct=s(),o(m.$$.fragment),$t=s(),o(w.$$.fragment),gt=s(),c=n("p"),c.innerHTML=ke,It=s(),h=n("p"),h.innerHTML=be,vt=s(),jt=n("hr"),kt=s(),C=n("p"),C.innerHTML=Fe,bt=s(),$=n("p"),$.innerHTML=Be,Ft=s(),o(g.$$.fragment),Bt=s(),I=n("p"),I.textContent=Ae,At=s(),o(v.$$.fragment),Qt=s(),j=n("p"),j.textContent=Qe,Nt=s(),o(k.$$.fragment),Vt=s(),b=n("p"),b.innerHTML=Ne,Ot=s(),o(F.$$.fragment),Yt=s(),B=n("p"),B.textContent=Ve,Dt=s(),o(A.$$.fragment),_t=s(),Q=n("p"),Q.innerHTML=Oe,xt=s(),o(N.$$.fragment),Rt=s(),V=n("p"),V.innerHTML=Ye,Lt=s(),o(O.$$.fragment),Xt=s(),Y=n("p"),Y.innerHTML=De,qt=s(),o(D.$$.fragment),Zt=s(),_=n("p"),_.innerHTML=_e,Et=s(),o(x.$$.fragment),Ht=s(),R=n("p"),R.innerHTML=xe,Gt=s(),o(L.$$.fragment),Pt=s(),X=n("p"),X.textContent=Re,St=s(),o(q.$$.fragment),Wt=s(),Z=n("p"),Z.innerHTML=Le,zt=s(),o(E.$$.fragment),Kt=s(),H=n("p"),H.textContent=Xe,te=s(),G=n("p"),G.innerHTML=qe,ee=s(),P=n("p"),P.innerHTML=Ze,ae=s(),o(S.$$.fragment),le=s(),W=n("p"),W.textContent=Ee,se=s(),o(z.$$.fragment),ie=s(),K=n("p"),K.innerHTML=He,ne=s(),tt=n("p"),tt.innerHTML=Ge,Te=s(),o(et.$$.fragment),Je=s(),at=n("p"),at.innerHTML=Pe,oe=s(),o(lt.$$.fragment),pe=s(),o(st.$$.fragment),ue=s(),o(it.$$.fragment),Ue=s(),nt=n("p"),nt.innerHTML=Se,de=s(),o(Tt.$$.fragment),re=s(),Jt=n("p"),Jt.innerHTML=We,Me=s(),o(ot.$$.fragment),fe=s(),pt=n("p"),pt.innerHTML=ze,ye=s(),o(ut.$$.fragment),me=s(),Ut=n("p"),Ut.innerHTML=Ke,we=s(),o(dt.$$.fragment),ce=s(),rt=n("p"),rt.innerHTML=ta,he=s(),Mt=n("p"),Mt.innerHTML=ea,Ce=s(),o(ft.$$.fragment),$e=s(),yt=n("p"),yt.innerHTML=aa,ge=s(),o(mt.$$.fragment),Ie=s(),ct=n("p"),this.h()},l(t){const e=pa("svelte-u9bgzb",document.head);f=T(e,"META",{name:!0,content:!0}),e.forEach(a),ht=i(t),wt=T(t,"P",{}),la(wt).forEach(a),Ct=i(t),p(m.$$.fragment,t),$t=i(t),p(w.$$.fragment,t),gt=i(t),c=T(t,"P",{"data-svelte-h":!0}),J(c)!=="svelte-v9402u"&&(c.innerHTML=ke),It=i(t),h=T(t,"P",{"data-svelte-h":!0}),J(h)!=="svelte-u1gdfq"&&(h.innerHTML=be),vt=i(t),jt=T(t,"HR",{}),kt=i(t),C=T(t,"P",{"data-svelte-h":!0}),J(C)!=="svelte-1o7lelv"&&(C.innerHTML=Fe),bt=i(t),$=T(t,"P",{"data-svelte-h":!0}),J($)!=="svelte-1rrmshh"&&($.innerHTML=Be),Ft=i(t),p(g.$$.fragment,t),Bt=i(t),I=T(t,"P",{"data-svelte-h":!0}),J(I)!=="svelte-1sswc1h"&&(I.textContent=Ae),At=i(t),p(v.$$.fragment,t),Qt=i(t),j=T(t,"P",{"data-svelte-h":!0}),J(j)!=="svelte-19pjkki"&&(j.textContent=Qe),Nt=i(t),p(k.$$.fragment,t),Vt=i(t),b=T(t,"P",{"data-svelte-h":!0}),J(b)!=="svelte-j6ojj5"&&(b.innerHTML=Ne),Ot=i(t),p(F.$$.fragment,t),Yt=i(t),B=T(t,"P",{"data-svelte-h":!0}),J(B)!=="svelte-1r5r2c6"&&(B.textContent=Ve),Dt=i(t),p(A.$$.fragment,t),_t=i(t),Q=T(t,"P",{"data-svelte-h":!0}),J(Q)!=="svelte-kefeul"&&(Q.innerHTML=Oe),xt=i(t),p(N.$$.fragment,t),Rt=i(t),V=T(t,"P",{"data-svelte-h":!0}),J(V)!=="svelte-8s10tf"&&(V.innerHTML=Ye),Lt=i(t),p(O.$$.fragment,t),Xt=i(t),Y=T(t,"P",{"data-svelte-h":!0}),J(Y)!=="svelte-16f2gib"&&(Y.innerHTML=De),qt=i(t),p(D.$$.fragment,t),Zt=i(t),_=T(t,"P",{"data-svelte-h":!0}),J(_)!=="svelte-1md2l6g"&&(_.innerHTML=_e),Et=i(t),p(x.$$.fragment,t),Ht=i(t),R=T(t,"P",{"data-svelte-h":!0}),J(R)!=="svelte-17vzj19"&&(R.innerHTML=xe),Gt=i(t),p(L.$$.fragment,t),Pt=i(t),X=T(t,"P",{"data-svelte-h":!0}),J(X)!=="svelte-c0rggd"&&(X.textContent=Re),St=i(t),p(q.$$.fragment,t),Wt=i(t),Z=T(t,"P",{"data-svelte-h":!0}),J(Z)!=="svelte-mpi8q6"&&(Z.innerHTML=Le),zt=i(t),p(E.$$.fragment,t),Kt=i(t),H=T(t,"P",{"data-svelte-h":!0}),J(H)!=="svelte-lyn1gs"&&(H.textContent=Xe),te=i(t),G=T(t,"P",{"data-svelte-h":!0}),J(G)!=="svelte-1wau2b4"&&(G.innerHTML=qe),ee=i(t),P=T(t,"P",{"data-svelte-h":!0}),J(P)!=="svelte-1s5wxb5"&&(P.innerHTML=Ze),ae=i(t),p(S.$$.fragment,t),le=i(t),W=T(t,"P",{"data-svelte-h":!0}),J(W)!=="svelte-1g6y1ku"&&(W.textContent=Ee),se=i(t),p(z.$$.fragment,t),ie=i(t),K=T(t,"P",{"data-svelte-h":!0}),J(K)!=="svelte-1v9svuv"&&(K.innerHTML=He),ne=i(t),tt=T(t,"P",{"data-svelte-h":!0}),J(tt)!=="svelte-jxxgnh"&&(tt.innerHTML=Ge),Te=i(t),p(et.$$.fragment,t),Je=i(t),at=T(t,"P",{"data-svelte-h":!0}),J(at)!=="svelte-op9ivs"&&(at.innerHTML=Pe),oe=i(t),p(lt.$$.fragment,t),pe=i(t),p(st.$$.fragment,t),ue=i(t),p(it.$$.fragment,t),Ue=i(t),nt=T(t,"P",{"data-svelte-h":!0}),J(nt)!=="svelte-1jmplob"&&(nt.innerHTML=Se),de=i(t),p(Tt.$$.fragment,t),re=i(t),Jt=T(t,"P",{"data-svelte-h":!0}),J(Jt)!=="svelte-16cu7sn"&&(Jt.innerHTML=We),Me=i(t),p(ot.$$.fragment,t),fe=i(t),pt=T(t,"P",{"data-svelte-h":!0}),J(pt)!=="svelte-1uixi8y"&&(pt.innerHTML=ze),ye=i(t),p(ut.$$.fragment,t),me=i(t),Ut=T(t,"P",{"data-svelte-h":!0}),J(Ut)!=="svelte-1f2q8wv"&&(Ut.innerHTML=Ke),we=i(t),p(dt.$$.fragment,t),ce=i(t),rt=T(t,"P",{"data-svelte-h":!0}),J(rt)!=="svelte-ixyuoj"&&(rt.innerHTML=ta),he=i(t),Mt=T(t,"P",{"data-svelte-h":!0}),J(Mt)!=="svelte-1atrbtq"&&(Mt.innerHTML=ea),Ce=i(t),p(ft.$$.fragment,t),$e=i(t),yt=T(t,"P",{"data-svelte-h":!0}),J(yt)!=="svelte-18gye75"&&(yt.innerHTML=aa),ge=i(t),p(mt.$$.fragment,t),Ie=i(t),ct=T(t,"P",{}),la(ct).forEach(a),this.h()},h(){sa(f,"name","hf:doc:metadata"),sa(f,"content",Ma)},m(t,e){ua(document.head,f),l(t,ht,e),l(t,wt,e),l(t,Ct,e),u(m,t,e),l(t,$t,e),u(w,t,e),l(t,gt,e),l(t,c,e),l(t,It,e),l(t,h,e),l(t,vt,e),l(t,jt,e),l(t,kt,e),l(t,C,e),l(t,bt,e),l(t,$,e),l(t,Ft,e),u(g,t,e),l(t,Bt,e),l(t,I,e),l(t,At,e),u(v,t,e),l(t,Qt,e),l(t,j,e),l(t,Nt,e),u(k,t,e),l(t,Vt,e),l(t,b,e),l(t,Ot,e),u(F,t,e),l(t,Yt,e),l(t,B,e),l(t,Dt,e),u(A,t,e),l(t,_t,e),l(t,Q,e),l(t,xt,e),u(N,t,e),l(t,Rt,e),l(t,V,e),l(t,Lt,e),u(O,t,e),l(t,Xt,e),l(t,Y,e),l(t,qt,e),u(D,t,e),l(t,Zt,e),l(t,_,e),l(t,Et,e),u(x,t,e),l(t,Ht,e),l(t,R,e),l(t,Gt,e),u(L,t,e),l(t,Pt,e),l(t,X,e),l(t,St,e),u(q,t,e),l(t,Wt,e),l(t,Z,e),l(t,zt,e),u(E,t,e),l(t,Kt,e),l(t,H,e),l(t,te,e),l(t,G,e),l(t,ee,e),l(t,P,e),l(t,ae,e),u(S,t,e),l(t,le,e),l(t,W,e),l(t,se,e),u(z,t,e),l(t,ie,e),l(t,K,e),l(t,ne,e),l(t,tt,e),l(t,Te,e),u(et,t,e),l(t,Je,e),l(t,at,e),l(t,oe,e),u(lt,t,e),l(t,pe,e),u(st,t,e),l(t,ue,e),u(it,t,e),l(t,Ue,e),l(t,nt,e),l(t,de,e),u(Tt,t,e),l(t,re,e),l(t,Jt,e),l(t,Me,e),u(ot,t,e),l(t,fe,e),l(t,pt,e),l(t,ye,e),u(ut,t,e),l(t,me,e),l(t,Ut,e),l(t,we,e),u(dt,t,e),l(t,ce,e),l(t,rt,e),l(t,he,e),l(t,Mt,e),l(t,Ce,e),u(ft,t,e),l(t,$e,e),l(t,yt,e),l(t,ge,e),u(mt,t,e),l(t,Ie,e),l(t,ct,e),ve=!0},p:na,i(t){ve||(U(m.$$.fragment,t),U(w.$$.fragment,t),U(g.$$.fragment,t),U(v.$$.fragment,t),U(k.$$.fragment,t),U(F.$$.fragment,t),U(A.$$.fragment,t),U(N.$$.fragment,t),U(O.$$.fragment,t),U(D.$$.fragment,t),U(x.$$.fragment,t),U(L.$$.fragment,t),U(q.$$.fragment,t),U(E.$$.fragment,t),U(S.$$.fragment,t),U(z.$$.fragment,t),U(et.$$.fragment,t),U(lt.$$.fragment,t),U(st.$$.fragment,t),U(it.$$.fragment,t),U(Tt.$$.fragment,t),U(ot.$$.fragment,t),U(ut.$$.fragment,t),U(dt.$$.fragment,t),U(ft.$$.fragment,t),U(mt.$$.fragment,t),ve=!0)},o(t){d(m.$$.fragment,t),d(w.$$.fragment,t),d(g.$$.fragment,t),d(v.$$.fragment,t),d(k.$$.fragment,t),d(F.$$.fragment,t),d(A.$$.fragment,t),d(N.$$.fragment,t),d(O.$$.fragment,t),d(D.$$.fragment,t),d(x.$$.fragment,t),d(L.$$.fragment,t),d(q.$$.fragment,t),d(E.$$.fragment,t),d(S.$$.fragment,t),d(z.$$.fragment,t),d(et.$$.fragment,t),d(lt.$$.fragment,t),d(st.$$.fragment,t),d(it.$$.fragment,t),d(Tt.$$.fragment,t),d(ot.$$.fragment,t),d(ut.$$.fragment,t),d(dt.$$.fragment,t),d(ft.$$.fragment,t),d(mt.$$.fragment,t),ve=!1},d(t){t&&(a(ht),a(wt),a(Ct),a($t),a(gt),a(c),a(It),a(h),a(vt),a(jt),a(kt),a(C),a(bt),a($),a(Ft),a(Bt),a(I),a(At),a(Qt),a(j),a(Nt),a(Vt),a(b),a(Ot),a(Yt),a(B),a(Dt),a(_t),a(Q),a(xt),a(Rt),a(V),a(Lt),a(Xt),a(Y),a(qt),a(Zt),a(_),a(Et),a(Ht),a(R),a(Gt),a(Pt),a(X),a(St),a(Wt),a(Z),a(zt),a(Kt),a(H),a(te),a(G),a(ee),a(P),a(ae),a(le),a(W),a(se),a(ie),a(K),a(ne),a(tt),a(Te),a(Je),a(at),a(oe),a(pe),a(ue),a(Ue),a(nt),a(de),a(re),a(Jt),a(Me),a(fe),a(pt),a(ye),a(me),a(Ut),a(we),a(ce),a(rt),a(he),a(Mt),a(Ce),a($e),a(yt),a(ge),a(Ie),a(ct)),a(f),r(m,t),r(w,t),r(g,t),r(v,t),r(k,t),r(F,t),r(A,t),r(N,t),r(O,t),r(D,t),r(x,t),r(L,t),r(q,t),r(E,t),r(S,t),r(z,t),r(et,t),r(lt,t),r(st,t),r(it,t),r(Tt,t),r(ot,t),r(ut,t),r(dt,t),r(ft,t),r(mt,t)}}}const Ma='{"title":"Audio Dataset","local":"audio-dataset","sections":[{"title":"Only audio files","local":"only-audio-files","sections":[],"depth":2},{"title":"Additional columns","local":"additional-columns","sections":[],"depth":2},{"title":"Relative paths","local":"relative-paths","sections":[],"depth":2},{"title":"Audio classification","local":"audio-classification","sections":[],"depth":2},{"title":"Large scale datasets","local":"large-scale-datasets","sections":[{"title":"WebDataset format","local":"webdataset-format","sections":[],"depth":3},{"title":"Parquet format","local":"parquet-format","sections":[],"depth":3}],"depth":2}],"depth":1}';function fa(je){return Ta(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ca extends Ja{constructor(f){super(),oa(this,f,fa,ra,ia,{})}}export{Ca as component};
