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