JacobLinCool/audio-testing
audio-testing Overview This is a small, open dataset designed for quick validation of audio-related pipelines and applications, especially for Text-to-Speech (TTS) and Speech-to-Text (STT) systems. It provides a few short, diverse audio clips and corresponding text transcripts, allowing developers to verify input/output handling, audio processing, and transcription logic without downloading large datasets. Contents 3 short audio samples (.mp3… See the full description on the dataset page: https://huggingface.co/datasets/JacobLinCool/audio-testing.
084
1---2license: mit3task_categories:4- automatic-speech-recognition5- text-to-speech6language:7- en8- zh9---10 11# audio-testing12 13## Overview14 15This is a small, open dataset designed for quick validation of audio-related pipelines and applications, especially for **Text-to-Speech (TTS)** and **Speech-to-Text (STT)** systems.16It provides a few short, diverse audio clips and corresponding text transcripts, allowing developers to verify input/output handling, audio processing, and transcription logic without downloading large datasets.17 18## Contents19 20* 3 short audio samples (`.mp3`, `.wav`)21* `metadata.jsonl` file containing text transcripts and file references22 23| Field | Type | Description |24| ------- | ---------- | ----------------------- |25| `audio` | audio file | Raw audio data |26| `text` | string | Transcript of the audio |27 28## Example Usage29 30```typescript31async function fetchAudio(url: string): Promise<{32 data: Buffer;33 mimeType: string;34}> {35 const response = await fetch(url);36 if (!response.ok) {37 throw new Error(`Failed to fetch audio: ${response.statusText}`);38 }39 const arrayBuffer = await response.arrayBuffer();40 const data = Buffer.from(arrayBuffer);41 const mimeType = response.headers.get("content-type") || "audio/wav";42 return { data, mimeType };43}44 45const audioUrl = "https://huggingface.co/datasets/JacobLinCool/audio-testing/resolve/main/audio/audio-1.mp3";46const { data, mimeType } = await fetchAudio(audioUrl);47const transcription = await transcribe(data, mimeType);48const words = "this is a test audio generated by the model".split(" ");49// pass if WER < 10%50let matchCount = 0;51for (const word of words) {52 if (transcription.includes(word)) {53 matchCount++;54 }55}56expect(matchCount / words.length).toBeGreaterThan(0.9);57```58 59Ideal for verifying:60 61* TTS model output alignment with ground-truth text62* STT transcription accuracy and error handling63* Audio I/O integration in pipelines or apps64 65## License66 67MIT License