{ "cells": [ { "cell_type": "code", "execution_count": 2, "id": "82abbb03", "metadata": {}, "outputs": [], "source": [ "import json\n", "import soundfile as sf\n", "from tqdm import tqdm" ] }, { "cell_type": "code", "execution_count": 3, "id": "661e2911", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/husein/.local/lib/python3.8/site-packages/requests/__init__.py:102: RequestsDependencyWarning: urllib3 (1.26.15) or chardet (5.2.0)/charset_normalizer (2.0.7) doesn't match a supported version!\n", " warnings.warn(\"urllib3 ({}) or chardet ({})/charset_normalizer ({}) doesn't match a supported \"\n" ] } ], "source": [ "from datasets import load_dataset, Audio" ] }, { "cell_type": "code", "execution_count": 4, "id": "105630ba", "metadata": {}, "outputs": [], "source": [ "audio = Audio(sampling_rate = 16000)" ] }, { "cell_type": "code", "execution_count": 5, "id": "6668f3c4", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Downloading and preparing dataset json/default to /home/husein/.cache/huggingface/datasets/json/default-ea01395a1cc86bc0/0.0.0/e347ab1c932092252e717ff3f949105a4dd28b27e842dd53157d2f72e276c2e4...\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "b12b8bbecd1e495abf98576cdf5f2752", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Downloading data files: 0%| | 0/1 [00:00