import{s as la,n as sa,o as ia}from"../chunks/scheduler.12fdeddc.js";import{S as na,i as Ta,g as n,s,r as o,A as Ja,h as T,f as a,c as i,j as ea,u as p,x as J,k as aa,y as oa,a as l,v as u,d as U,t as d,w as r}from"../chunks/index.88dae322.js";import{C as M}from"../chunks/CodeBlock.8e54a086.js";import{H as y,E as pa}from"../chunks/getInferenceSnippets.00466244.js";function ua(Ie){let f,ct,wt,ht,w,Ct,m,ve='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>.',$t,c,je='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.',gt,It,vt,h,ke="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>).",jt,C,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.',kt,$,bt,g,Fe="If your dataset only consists of one column with audio, you can simply store your audio files at the root:",Ft,I,Bt,v,Be="or in a subdirectory:",At,j,Qt,k,Ae='Multiple <a href="./datasets-adding#file-formats">formats</a> are supported at the same time, including AIFF, FLAC, MP3, OGG and WAV.',Nt,b,Vt,F,Qe="If you have several splits, you can put your audio files into directories named accordingly:",Ot,B,Yt,A,Ne='See <a href="./datasets-file-names-and-splits">File names and splits</a> for more information and other ways to organize data by splits.',Dt,Q,_t,N,Ve='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>.',Rt,V,xt,O,Oe="Your <code>metadata.csv</code> file must have a <code>file_name</code> column which links image files with their metadata:",Lt,Y,Xt,D,Ye='You can also use a <a href="https://jsonlines.org/" rel="nofollow">JSONL</a> file <code>metadata.jsonl</code>:',qt,_,Zt,R,De='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>.',Et,x,Ht,L,_e="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:",Gt,X,Pt,q,Re="In this case, the <code>file_name</code> column must be a full relative path to the audio files, not just the filename:",St,Z,Wt,E,xe="Metadata files cannot be put in subdirectories of a directory with the audio files.",zt,H,Le="More generally, any column named <code>file_name</code> or <code>*_file_name</code> should contain the full relative path to the audio files.",Kt,G,Xe='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.',te,P,ee,S,qe="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:",ae,W,le,z,Ze="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>).",se,K,Ee='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):',ie,tt,ne,et,He='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:',Te,at,Je,lt,oe,st,pe,it,Ge=`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.`,ue,nt,Ue,Tt,Pe=`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:`,de,Jt,re,ot,Se=`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.`,Me,pt,fe,ut,We=`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.`,ye,Ut,we,dt,ze='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>.',me,rt,Ke="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,Mt,he,ft,ta="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).",Ce,yt,$e,mt,ge;return w=new y({props:{title:"Audio Dataset",local:"audio-dataset",headingTag:"h1"}}),$=new y({props:{title:"Only audio files",local:"only-audio-files",headingTag:"h2"}}),I=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS53YXYlMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLndhdiUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMud2F2JTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC53YXY=",highlighted:`my_dataset_repository/
├── 1.wav
├── 2.wav
├── 3.wav
└── 4.wav`,wrap:!1}}),j=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwYXVkaW8lMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLndhdiUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDIud2F2JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMy53YXYlMEElMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjA0Lndhdg==",highlighted:`my_dataset_repository/
└── audio
    ├── 1.wav
    ├── 2.wav
    ├── 3.wav
    └── 4.wav`,wrap:!1}}),b=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwYXVkaW8lMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLmFpZmYlMEElMjAlMjAlMjAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLm9nZyUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMubXAzJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC5mbGFj",highlighted:`my_dataset_repository/
└── audio
    ├── 1.aiff
    ├── 2.ogg
    ├── 3.mp3
    └── 4.flac`,wrap:!1}}),B=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4lMEElRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAxLndhdiUwQSVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMDIud2F2JTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdGVzdCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMud2F2JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC53YXY=",highlighted:`my_dataset_repository/
├── train
│   ├── 1.wav
│   └── 2.wav
└── test
    ├── 3.wav
    └── 4.wav`,wrap:!1}}),Q=new y({props:{title:"Additional columns",local:"additional-columns",headingTag:"h2"}}),V=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS53YXYlMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLndhdiUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMud2F2JTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwNC53YXYlMEElRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBtZXRhZGF0YS5jc3Y=",highlighted:`my_dataset_repository/
├── 1.wav
├── 2.wav
├── 3.wav
├── 4.wav
└── metadata.csv`,wrap:!1}}),Y=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}}),_=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}}),x=new y({props:{title:"Relative paths",local:"relative-paths",headingTag:"h2"}}),X=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdGVzdCUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMGF1ZGlvJTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJUMyJUEwJUMyJUEwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS53YXYlMEElMjAlMjAlMjAlMjAlRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAyLndhdiUwQSUyMCUyMCUyMCUyMCVFMiU5NCU4MiVDMiVBMCVDMiVBMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMud2F2JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTgyJUMyJUEwJUMyJUEwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC53YXYlMEElMjAlMjAlMjAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjBtZXRhZGF0YS5jc3Y=",highlighted:`my_dataset_repository/
└── test
    ├── audio
    │   ├── 1.wav
    │   ├── 2.wav
    │   ├── 3.wav
    │   └── 4.wav
    └── metadata.csv`,wrap:!1}}),Z=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}}),P=new y({props:{title:"Audio classification",local:"audio-classification",headingTag:"h2"}}),W=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwY2F0JTBBJUUyJTk0JTgyJUMyJUEwJUMyJUEwJTIwJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMS53YXYlMEElRTIlOTQlODIlQzIlQTAlQzIlQTAlMjAlRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjAyLndhdiUwQSVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMGRvZyUwQSUyMCUyMCUyMCUyMCVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDMud2F2JTBBJTIwJTIwJTIwJTIwJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwNC53YXY=",highlighted:`my_dataset_repository/
├── cat
│   ├── 1.wav
│   └── 2.wav
└── dog
    ├── 3.wav
    └── 4.wav`,wrap:!1}}),tt=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}}),at=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}}),lt=new y({props:{title:"Large scale datasets",local:"large-scale-datasets",headingTag:"h2"}}),st=new y({props:{title:"WebDataset format",local:"webdataset-format",headingTag:"h3"}}),nt=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4tMDAwMC50YXIlMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjB0cmFpbi0wMDAxLnRhciUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMC4uLiUwQSVFMiU5NCU5NCVFMiU5NCU4MCVFMiU5NCU4MCUyMHRyYWluLTEwMjMudGFy",highlighted:`my_dataset_repository/
├── train-0000.tar
├── train-0001.tar
├── ...
└── train-1023.tar`,wrap:!1}}),Jt=new M({props:{code:"dHJhaW4tMDAwMCUyRiUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDAwMC5mbGFjJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwMDAwLmpzb24lMEElRTIlOTQlOUMlRTIlOTQlODAlRTIlOTQlODAlMjAwMDEuZmxhYyUwQSVFMiU5NCU5QyVFMiU5NCU4MCVFMiU5NCU4MCUyMDAwMS5qc29uJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwLi4uJTBBJUUyJTk0JTlDJUUyJTk0JTgwJUUyJTk0JTgwJTIwOTk5LmZsYWMlMEElRTIlOTQlOTQlRTIlOTQlODAlRTIlOTQlODAlMjA5OTkuanNvbg==",highlighted:`train-0000/
├── 000.flac
├── 000.json
├── 001.flac
├── 001.json
├── ...
├── 999.flac
└── 999.json`,wrap:!1}}),pt=new y({props:{title:"Parquet format",local:"parquet-format",headingTag:"h3"}}),Ut=new M({props:{code:"bXlfZGF0YXNldF9yZXBvc2l0b3J5JTJGJTBBJUUyJTk0JTk0JUUyJTk0JTgwJUUyJTk0JTgwJTIwdHJhaW4ucGFycXVldA==",highlighted:`my_dataset_repository/
└── train.parquet`,wrap:!1}}),Mt=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}}),yt=new pa({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/hub/datasets-audio.md"}}),{c(){f=n("meta"),ct=s(),wt=n("p"),ht=s(),o(w.$$.fragment),Ct=s(),m=n("p"),m.innerHTML=ve,$t=s(),c=n("p"),c.innerHTML=je,gt=s(),It=n("hr"),vt=s(),h=n("p"),h.innerHTML=ke,jt=s(),C=n("p"),C.innerHTML=be,kt=s(),o($.$$.fragment),bt=s(),g=n("p"),g.textContent=Fe,Ft=s(),o(I.$$.fragment),Bt=s(),v=n("p"),v.textContent=Be,At=s(),o(j.$$.fragment),Qt=s(),k=n("p"),k.innerHTML=Ae,Nt=s(),o(b.$$.fragment),Vt=s(),F=n("p"),F.textContent=Qe,Ot=s(),o(B.$$.fragment),Yt=s(),A=n("p"),A.innerHTML=Ne,Dt=s(),o(Q.$$.fragment),_t=s(),N=n("p"),N.innerHTML=Ve,Rt=s(),o(V.$$.fragment),xt=s(),O=n("p"),O.innerHTML=Oe,Lt=s(),o(Y.$$.fragment),Xt=s(),D=n("p"),D.innerHTML=Ye,qt=s(),o(_.$$.fragment),Zt=s(),R=n("p"),R.innerHTML=De,Et=s(),o(x.$$.fragment),Ht=s(),L=n("p"),L.textContent=_e,Gt=s(),o(X.$$.fragment),Pt=s(),q=n("p"),q.innerHTML=Re,St=s(),o(Z.$$.fragment),Wt=s(),E=n("p"),E.textContent=xe,zt=s(),H=n("p"),H.innerHTML=Le,Kt=s(),G=n("p"),G.innerHTML=Xe,te=s(),o(P.$$.fragment),ee=s(),S=n("p"),S.textContent=qe,ae=s(),o(W.$$.fragment),le=s(),z=n("p"),z.innerHTML=Ze,se=s(),K=n("p"),K.innerHTML=Ee,ie=s(),o(tt.$$.fragment),ne=s(),et=n("p"),et.innerHTML=He,Te=s(),o(at.$$.fragment),Je=s(),o(lt.$$.fragment),oe=s(),o(st.$$.fragment),pe=s(),it=n("p"),it.innerHTML=Ge,ue=s(),o(nt.$$.fragment),Ue=s(),Tt=n("p"),Tt.innerHTML=Pe,de=s(),o(Jt.$$.fragment),re=s(),ot=n("p"),ot.innerHTML=Se,Me=s(),o(pt.$$.fragment),fe=s(),ut=n("p"),ut.innerHTML=We,ye=s(),o(Ut.$$.fragment),we=s(),dt=n("p"),dt.innerHTML=ze,me=s(),rt=n("p"),rt.innerHTML=Ke,ce=s(),o(Mt.$$.fragment),he=s(),ft=n("p"),ft.innerHTML=ta,Ce=s(),o(yt.$$.fragment),$e=s(),mt=n("p"),this.h()},l(t){const e=Ja("svelte-u9bgzb",document.head);f=T(e,"META",{name:!0,content:!0}),e.forEach(a),ct=i(t),wt=T(t,"P",{}),ea(wt).forEach(a),ht=i(t),p(w.$$.fragment,t),Ct=i(t),m=T(t,"P",{"data-svelte-h":!0}),J(m)!=="svelte-v9402u"&&(m.innerHTML=ve),$t=i(t),c=T(t,"P",{"data-svelte-h":!0}),J(c)!=="svelte-u1gdfq"&&(c.innerHTML=je),gt=i(t),It=T(t,"HR",{}),vt=i(t),h=T(t,"P",{"data-svelte-h":!0}),J(h)!=="svelte-1o7lelv"&&(h.innerHTML=ke),jt=i(t),C=T(t,"P",{"data-svelte-h":!0}),J(C)!=="svelte-1rrmshh"&&(C.innerHTML=be),kt=i(t),p($.$$.fragment,t),bt=i(t),g=T(t,"P",{"data-svelte-h":!0}),J(g)!=="svelte-1sswc1h"&&(g.textContent=Fe),Ft=i(t),p(I.$$.fragment,t),Bt=i(t),v=T(t,"P",{"data-svelte-h":!0}),J(v)!=="svelte-19pjkki"&&(v.textContent=Be),At=i(t),p(j.$$.fragment,t),Qt=i(t),k=T(t,"P",{"data-svelte-h":!0}),J(k)!=="svelte-j6ojj5"&&(k.innerHTML=Ae),Nt=i(t),p(b.$$.fragment,t),Vt=i(t),F=T(t,"P",{"data-svelte-h":!0}),J(F)!=="svelte-1r5r2c6"&&(F.textContent=Qe),Ot=i(t),p(B.$$.fragment,t),Yt=i(t),A=T(t,"P",{"data-svelte-h":!0}),J(A)!=="svelte-kefeul"&&(A.innerHTML=Ne),Dt=i(t),p(Q.$$.fragment,t),_t=i(t),N=T(t,"P",{"data-svelte-h":!0}),J(N)!=="svelte-8s10tf"&&(N.innerHTML=Ve),Rt=i(t),p(V.$$.fragment,t),xt=i(t),O=T(t,"P",{"data-svelte-h":!0}),J(O)!=="svelte-16f2gib"&&(O.innerHTML=Oe),Lt=i(t),p(Y.$$.fragment,t),Xt=i(t),D=T(t,"P",{"data-svelte-h":!0}),J(D)!=="svelte-1md2l6g"&&(D.innerHTML=Ye),qt=i(t),p(_.$$.fragment,t),Zt=i(t),R=T(t,"P",{"data-svelte-h":!0}),J(R)!=="svelte-17vzj19"&&(R.innerHTML=De),Et=i(t),p(x.$$.fragment,t),Ht=i(t),L=T(t,"P",{"data-svelte-h":!0}),J(L)!=="svelte-c0rggd"&&(L.textContent=_e),Gt=i(t),p(X.$$.fragment,t),Pt=i(t),q=T(t,"P",{"data-svelte-h":!0}),J(q)!=="svelte-mpi8q6"&&(q.innerHTML=Re),St=i(t),p(Z.$$.fragment,t),Wt=i(t),E=T(t,"P",{"data-svelte-h":!0}),J(E)!=="svelte-lyn1gs"&&(E.textContent=xe),zt=i(t),H=T(t,"P",{"data-svelte-h":!0}),J(H)!=="svelte-1wau2b4"&&(H.innerHTML=Le),Kt=i(t),G=T(t,"P",{"data-svelte-h":!0}),J(G)!=="svelte-1s5wxb5"&&(G.innerHTML=Xe),te=i(t),p(P.$$.fragment,t),ee=i(t),S=T(t,"P",{"data-svelte-h":!0}),J(S)!=="svelte-1g6y1ku"&&(S.textContent=qe),ae=i(t),p(W.$$.fragment,t),le=i(t),z=T(t,"P",{"data-svelte-h":!0}),J(z)!=="svelte-1v9svuv"&&(z.innerHTML=Ze),se=i(t),K=T(t,"P",{"data-svelte-h":!0}),J(K)!=="svelte-jxxgnh"&&(K.innerHTML=Ee),ie=i(t),p(tt.$$.fragment,t),ne=i(t),et=T(t,"P",{"data-svelte-h":!0}),J(et)!=="svelte-op9ivs"&&(et.innerHTML=He),Te=i(t),p(at.$$.fragment,t),Je=i(t),p(lt.$$.fragment,t),oe=i(t),p(st.$$.fragment,t),pe=i(t),it=T(t,"P",{"data-svelte-h":!0}),J(it)!=="svelte-1jmplob"&&(it.innerHTML=Ge),ue=i(t),p(nt.$$.fragment,t),Ue=i(t),Tt=T(t,"P",{"data-svelte-h":!0}),J(Tt)!=="svelte-16cu7sn"&&(Tt.innerHTML=Pe),de=i(t),p(Jt.$$.fragment,t),re=i(t),ot=T(t,"P",{"data-svelte-h":!0}),J(ot)!=="svelte-1uixi8y"&&(ot.innerHTML=Se),Me=i(t),p(pt.$$.fragment,t),fe=i(t),ut=T(t,"P",{"data-svelte-h":!0}),J(ut)!=="svelte-1f2q8wv"&&(ut.innerHTML=We),ye=i(t),p(Ut.$$.fragment,t),we=i(t),dt=T(t,"P",{"data-svelte-h":!0}),J(dt)!=="svelte-ixyuoj"&&(dt.innerHTML=ze),me=i(t),rt=T(t,"P",{"data-svelte-h":!0}),J(rt)!=="svelte-1atrbtq"&&(rt.innerHTML=Ke),ce=i(t),p(Mt.$$.fragment,t),he=i(t),ft=T(t,"P",{"data-svelte-h":!0}),J(ft)!=="svelte-18gye75"&&(ft.innerHTML=ta),Ce=i(t),p(yt.$$.fragment,t),$e=i(t),mt=T(t,"P",{}),ea(mt).forEach(a),this.h()},h(){aa(f,"name","hf:doc:metadata"),aa(f,"content",Ua)},m(t,e){oa(document.head,f),l(t,ct,e),l(t,wt,e),l(t,ht,e),u(w,t,e),l(t,Ct,e),l(t,m,e),l(t,$t,e),l(t,c,e),l(t,gt,e),l(t,It,e),l(t,vt,e),l(t,h,e),l(t,jt,e),l(t,C,e),l(t,kt,e),u($,t,e),l(t,bt,e),l(t,g,e),l(t,Ft,e),u(I,t,e),l(t,Bt,e),l(t,v,e),l(t,At,e),u(j,t,e),l(t,Qt,e),l(t,k,e),l(t,Nt,e),u(b,t,e),l(t,Vt,e),l(t,F,e),l(t,Ot,e),u(B,t,e),l(t,Yt,e),l(t,A,e),l(t,Dt,e),u(Q,t,e),l(t,_t,e),l(t,N,e),l(t,Rt,e),u(V,t,e),l(t,xt,e),l(t,O,e),l(t,Lt,e),u(Y,t,e),l(t,Xt,e),l(t,D,e),l(t,qt,e),u(_,t,e),l(t,Zt,e),l(t,R,e),l(t,Et,e),u(x,t,e),l(t,Ht,e),l(t,L,e),l(t,Gt,e),u(X,t,e),l(t,Pt,e),l(t,q,e),l(t,St,e),u(Z,t,e),l(t,Wt,e),l(t,E,e),l(t,zt,e),l(t,H,e),l(t,Kt,e),l(t,G,e),l(t,te,e),u(P,t,e),l(t,ee,e),l(t,S,e),l(t,ae,e),u(W,t,e),l(t,le,e),l(t,z,e),l(t,se,e),l(t,K,e),l(t,ie,e),u(tt,t,e),l(t,ne,e),l(t,et,e),l(t,Te,e),u(at,t,e),l(t,Je,e),u(lt,t,e),l(t,oe,e),u(st,t,e),l(t,pe,e),l(t,it,e),l(t,ue,e),u(nt,t,e),l(t,Ue,e),l(t,Tt,e),l(t,de,e),u(Jt,t,e),l(t,re,e),l(t,ot,e),l(t,Me,e),u(pt,t,e),l(t,fe,e),l(t,ut,e),l(t,ye,e),u(Ut,t,e),l(t,we,e),l(t,dt,e),l(t,me,e),l(t,rt,e),l(t,ce,e),u(Mt,t,e),l(t,he,e),l(t,ft,e),l(t,Ce,e),u(yt,t,e),l(t,$e,e),l(t,mt,e),ge=!0},p:sa,i(t){ge||(U(w.$$.fragment,t),U($.$$.fragment,t),U(I.$$.fragment,t),U(j.$$.fragment,t),U(b.$$.fragment,t),U(B.$$.fragment,t),U(Q.$$.fragment,t),U(V.$$.fragment,t),U(Y.$$.fragment,t),U(_.$$.fragment,t),U(x.$$.fragment,t),U(X.$$.fragment,t),U(Z.$$.fragment,t),U(P.$$.fragment,t),U(W.$$.fragment,t),U(tt.$$.fragment,t),U(at.$$.fragment,t),U(lt.$$.fragment,t),U(st.$$.fragment,t),U(nt.$$.fragment,t),U(Jt.$$.fragment,t),U(pt.$$.fragment,t),U(Ut.$$.fragment,t),U(Mt.$$.fragment,t),U(yt.$$.fragment,t),ge=!0)},o(t){d(w.$$.fragment,t),d($.$$.fragment,t),d(I.$$.fragment,t),d(j.$$.fragment,t),d(b.$$.fragment,t),d(B.$$.fragment,t),d(Q.$$.fragment,t),d(V.$$.fragment,t),d(Y.$$.fragment,t),d(_.$$.fragment,t),d(x.$$.fragment,t),d(X.$$.fragment,t),d(Z.$$.fragment,t),d(P.$$.fragment,t),d(W.$$.fragment,t),d(tt.$$.fragment,t),d(at.$$.fragment,t),d(lt.$$.fragment,t),d(st.$$.fragment,t),d(nt.$$.fragment,t),d(Jt.$$.fragment,t),d(pt.$$.fragment,t),d(Ut.$$.fragment,t),d(Mt.$$.fragment,t),d(yt.$$.fragment,t),ge=!1},d(t){t&&(a(ct),a(wt),a(ht),a(Ct),a(m),a($t),a(c),a(gt),a(It),a(vt),a(h),a(jt),a(C),a(kt),a(bt),a(g),a(Ft),a(Bt),a(v),a(At),a(Qt),a(k),a(Nt),a(Vt),a(F),a(Ot),a(Yt),a(A),a(Dt),a(_t),a(N),a(Rt),a(xt),a(O),a(Lt),a(Xt),a(D),a(qt),a(Zt),a(R),a(Et),a(Ht),a(L),a(Gt),a(Pt),a(q),a(St),a(Wt),a(E),a(zt),a(H),a(Kt),a(G),a(te),a(ee),a(S),a(ae),a(le),a(z),a(se),a(K),a(ie),a(ne),a(et),a(Te),a(Je),a(oe),a(pe),a(it),a(ue),a(Ue),a(Tt),a(de),a(re),a(ot),a(Me),a(fe),a(ut),a(ye),a(we),a(dt),a(me),a(rt),a(ce),a(he),a(ft),a(Ce),a($e),a(mt)),a(f),r(w,t),r($,t),r(I,t),r(j,t),r(b,t),r(B,t),r(Q,t),r(V,t),r(Y,t),r(_,t),r(x,t),r(X,t),r(Z,t),r(P,t),r(W,t),r(tt,t),r(at,t),r(lt,t),r(st,t),r(nt,t),r(Jt,t),r(pt,t),r(Ut,t),r(Mt,t),r(yt,t)}}}const Ua='{"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 da(Ie){return ia(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class wa extends na{constructor(f){super(),Ta(this,f,da,ua,la,{})}}export{wa as component};
