synthetic-wav-sample

Generate a deterministic 16 kHz mono PCM WAV sine tone using Python's standard library.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/jfriisj/real-time-speech-translation-mvp --skill synthetic-wav-sample
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: synthetic-wav-sample
Source: https://github.com/jfriisj/real-time-speech-translation-mvp/tree/main/.github/skills/synthetic-wav-sample
Command: npx skills add https://github.com/jfriisj/real-time-speech-translation-mvp --skill synthetic-wav-sample

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill generates a tiny non-sensitive WAV file using only the Python standard library. It is designed for deterministic smoke tests without committing real user audio.

Core Features & Use Cases

  • Generate a 1-second, mono WAV at 16 kHz using only Python's standard library
  • Output is deterministic, enabling reliable CI and local tests without sensitive data
  • Use Case: validate audio pipelines, test speech-to-text flows, or mock inputs in development

Quick Start

Set OUT to a desired filename (default: live_test_sample.wav) and run the embedded Python snippet to create the file.

Frequently Asked Questions about synthetic-wav-sample

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a deterministic WAV file for smoke tests in Python?

Generate a deterministic WAV file for smoke tests using a Python script that writes a 16 kHz mono PCM sine tone. This produces a reproducible audio sample without committing real user data to your repository.

Do I need external libraries to create a WAV file for CI pipeline testing?

You do not need external libraries to create a WAV file for CI pipeline testing. The script uses only the Python standard library to generate audio, ensuring your tests have zero external dependencies.

What is the best way to mock speech-to-text inputs without exposing sensitive audio?

The best way to mock speech-to-text inputs is generating a tiny non-sensitive WAV file. This provides a deterministic sine tone to validate audio pipelines safely in development and CI environments.

Can I specify a custom output filename when generating a test audio file?

You can specify a custom output filename by setting the OUT variable before running the Python snippet. It defaults to live_test_sample.wav if no custom filename is provided.

Are there limitations to the audio format generated by Python standard library scripts?

Limitations of this audio format include a fixed 1-second duration and 16 kHz mono PCM specification. It is designed strictly for smoke testing rather than high-fidelity audio processing or varied format generation.