Code Block |
---|
|
{
"playback": {
"name": "my.mp3",
"type": "mp3"
}
} |
Value | Description |
---|
name | Uploaded file name |
type | Supported file formats: mp3 or wav, wav, shout or tone. |
Shout
Play remote audio stream or MP3 file via http.
Tone
Generate tone. [L=x;][v=y;]%(<on-duration>, <off-duration>, <freq-1> [, freq-2] [, freq-3] [, freq-n] [;loops=x])
- Durations are specified in milliseconds
- Frequencies are specified in Hz
L=x; create x copies of the specified tone stream in memory before playing. Note that L=-1 is not valid, use loops=-1 to loop continuously. Specify L= at the beginning of the tone definition string.
;loops=x Loop x times, use ;loops=-1 for endless loop. This generates the tone, then repeats the generation process so it presumably consumers less cpu and memory than the L= parameter. Note that ;loops=x is postfix notation so it should appear at the end of the tone definition string.
v=y Volume of tones expressed as the equivalent in dB (deciBels) in a PCM waveform. 0 = maximum volume, negative integers represent softer volume (loudness). Do not enter positive values greater than zero! Note that non-linear formats such as G.711 and G.723 will offer slightly lower amplitudes as an artifact of their algorithms.
For example, plays a stutter-like tone 100 times:
Code Block |
---|
|
{
"playback": {
"name": "L=100;%(100,100,350,440)",
"type": "tone"
}
} |
TGML complete listing of capabilities and syntax.