# Audio files view error

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faudio-files-view-error%2F31624%3E%5C
**Category:** 🤗Datasets\
**Created:** [February 13, 2023, 3:34pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faudio-files-view-error%2F31624 "2023-02-13T15:34:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![j-krzywdziak](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/j-krzywdziak/32/18678_2.png) [@j-krzywdziak](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fj-krzywdziak)%5C
**Post date:** [February 13, 2023, 3:34pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faudio-files-view-error%2F31624%2F1 "2023-02-13T15:34:01Z")

</div>

Hi, recently I am having a problem with dataset viewer. I cannot get the preview of audio files in my dataset. I am getting this error :  
`ERROR: type should be audio, got [{ "src": "/static-proxy?url=https%3A%2F%2Fdatasets-server.huggingface.co%2Fassets%2Fj-krzywdziak%2Ftest%2F--%2FTest Dataset/test/2/audio/audio.mp3", "type": "audio/mpeg" }, { "src": "/static-proxy?url=https%3A%2F%2Fdatasets-server.huggingface.co%2Fassets%2Fj-krzywdziak%2Ftest%2F--%2FTest Dataset/test/2/audio/audio.wav", "type": "audio/wav" }]`  
Audio files are zipped and are in wav format. Anyone have any idea?

---

<div class="post-metadata">

**Author:** ![lhoestq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lhoestq/32/52888_2.png) [@lhoestq](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flhoestq)%5C
**Post date:** [February 13, 2023, 4:31pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faudio-files-view-error%2F31624%2F2 "2023-02-13T16:31:18Z")

</div>

Hi ! Which dataset is it ? The audio type must contain either

- a list of strings pointing to the WAV files
- a list of dictionaries with “bytes” and “path” field - containing the file bytes and the file name or path

---

<div class="post-metadata">

**Author:** ![j-krzywdziak](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/j-krzywdziak/32/18678_2.png) [@j-krzywdziak](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fj-krzywdziak)%5C
**Post date:** [February 13, 2023, 4:54pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faudio-files-view-error%2F31624%2F3 "2023-02-13T16:54:04Z")

</div>

Hi! it is [j-krzywdziak/test · Datasets at Hugging Face](https://huggingface.co/datasets/j-krzywdziak/test) , In [test.py · j-krzywdziak/test at main](https://huggingface.co/datasets/j-krzywdziak/test/blob/main/test.py) in \_generate\_examples i added path and bytes but something gone wrong along the way.

---

<div class="post-metadata">

**Author:** ![j-krzywdziak](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/j-krzywdziak/32/18678_2.png) [@j-krzywdziak](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fj-krzywdziak)%5C
**Post date:** [February 15, 2023, 8:23am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faudio-files-view-error%2F31624%2F4 "2023-02-15T08:23:22Z")

</div>

@lhoestq Do you have any idea why do I have this error? I would appreciate any help because i spent almost 3 days trying to solve this ;p

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [February 15, 2023, 10:39pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faudio-files-view-error%2F31624%2F5 "2023-02-15T22:39:26Z")

</div>

sorry @j-krzywdziak maybe @severo can help you?

---

<div class="post-metadata">

**Author:** ![lhoestq](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lhoestq/32/52888_2.png) [@lhoestq](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flhoestq)%5C
**Post date:** [February 16, 2023, 11:53am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faudio-files-view-error%2F31624%2F6 "2023-02-16T11:53:11Z")

</div>

Your code looks all good to me, this sounds like a bug on our side. I’m forcing a refresh of your dataset preview. If it persists, please open an issue at [GitHub - huggingface/datasets-server: Lightweight web API for visualizing and exploring all types of datasets - computer vision, speech, text, and tabular - stored on the Hugging Face Hub](https://github.com/huggingface/datasets-server)

---

<div class="post-metadata">

**Author:** ![severo](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/severo/32/27449_2.png) [@severo](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsevero)%5C
**Post date:** [March 20, 2023, 5:51pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faudio-files-view-error%2F31624%2F7 "2023-03-20T17:51:46Z")

</div>

created [Dataset Viewer issue for j-krzywdziak/test · Issue #966 · huggingface/datasets-server · GitHub](https://github.com/huggingface/datasets-server/issues/966)

---

<div class="post-metadata">

**Author:** ![polinaeterna](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/polinaeterna/32/19055_2.png) [@polinaeterna](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpolinaeterna)%5C
**Post date:** [March 27, 2023, 11:47am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Faudio-files-view-error%2F31624%2F8 "2023-03-27T11:47:28Z")

</div>

@severo fyi - it’s a duplicate of [Problem with Dataset Preview with audio files](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fproblem-with-dataset-preview-with-audio-files%2F31475) and the error is caused by a space symbol in the config name, you already opened an [issue for that](https://github.com/huggingface/datasets-server/issues/853) 🙂
