Test tone generator
Generate a test tone as an audio file: sine, square or sawtooth wave at the frequency, length and volume you choose.
Input
Result
Choose a file and press Run.
Files you upload and the results are stored for one hour, then deleted. Anyone who has the link can open them, so don't upload anything private.
Use it from code or an agent
curl -s https://setget.net/v1/tools/audio-tone \
-H 'Content-Type: application/json' \
-d '{"input":{"frequency":440,"duration":1},"wait":30}'
import json, urllib.request
body = {'input': {'frequency': 440, 'duration': 1}, 'wait': 30}
request = urllib.request.Request("https://setget.net/v1/tools/audio-tone", json.dumps(body).encode(),
{"Content-Type": "application/json"})
print(json.load(urllib.request.urlopen(request))["result"])
const response = await fetch("https://setget.net/v1/tools/audio-tone", {
method: "POST",
headers: {"Content-Type": "application/json"},
body: JSON.stringify({"input":{"frequency":440,"duration":1},"wait":30}),
});
console.log((await response.json()).result);
Tool: run_tool
Arguments:
{
"slug": "audio-tone",
"input": {
"frequency": 440,
"duration": 1
},
"wait": 30
}
{
"input": {
"frequency": 440,
"duration": 1
},
"wait": 30
}
This is a file tool, so a call takes three steps: upload the file to get a reference, run the tool with that reference, then read the result and download its files. Uploads and results are public by link and expire after one hour.
Endpoint: POST /v1/tools/audio-tone. Over MCP: run_tool with slug: "audio-tone".
Machine-readable: input schema, Markdown. Connect an agent.
Inputs
| Name | Type | Required | What it does |
|---|---|---|---|
frequency |
number | no | Pitch of the tone in Hz. 440 is the note A; 1000 is the usual test tone. Default: 440. From 20 to 20000. |
duration |
number | no | Length of the tone in seconds, up to 60. Default: 2. From 0.1 to 60. |
waveform |
string | no | Shape of the wave: sine is a pure tone, square and sawtooth sound buzzy. One of: sine, square, sawtooth. Default: "sine". |
volume |
number | no | Peak level in dB below full volume: 0 is the loudest possible, -12 is comfortable. Default: -12. From -60 to 0. |
format |
string | no | Format of the result. One of: mp3, wav, ogg, opus, flac, m4a. Default: "wav". |
sample_rate |
integer | no | Sample rate in Hz. One of: 16000, 22050, 44100, 48000, 96000. Default: 44100. |
channels |
string | no | Mono, or stereo with the same tone on both sides. One of: mono, stereo. Default: "mono". |
Examples
One second of A at 440 Hz
Input
{
"frequency": 440,
"duration": 1
}Result
Press the example button above to make it.
A quiet 1 kHz square wave as MP3
Input
{
"frequency": 1000,
"duration": 2,
"waveform": "square",
"volume": -20,
"format": "mp3"
}Result
Press the example button above to make it.
Questions
- Why is there a limit on the frequency?
- A file can only hold tones below half its sample rate. For tones above 20 kHz the limit of human hearing is passed anyway.
- Is it safe for speakers and ears?
- Start with your volume low. Steady tones sound much louder than music at the same level, and square and sawtooth waves more so.
Related tools
- Audio file infoShow the format, length, bitrate, codec, sample rate, channels and tags of an audio file, plus its peak and average volume.
audio-info - Audio spectrogram imageDraw a spectrogram of an audio file as a PNG: time across, pitch upwards, brightness for loudness.
audio-spectrogram - Audio waveform imageDraw the waveform of an audio file as a PNG picture, in the size and colours you choose.
audio-waveform - Mix audio files togetherLayer 2 to 8 audio files on top of each other, such as a voice over music, with a volume for each file.
audio-mix - Change audio speedSpeed audio up or slow it down from 0.5x to 4x, keeping the pitch natural or letting it rise and fall.
audio-speed - Convert audioConvert audio between MP3, WAV, OGG, Opus, FLAC and M4A, or pull the sound out of a video as an audio file.
audio-convert