Audio Processing

The Audio Processing toolbox works with sound. It reads and writes audio files, makes sound from nothing (tones, noise, game sound effects, a synthesizer patch), and edits clips: cut, join, mix, fade, normalize, filter, compress, add echo and reverb, shift pitch, stretch time. It measures them (peak, loudness, dominant frequency, tempo, key) and draws their waveform, spectrum and spectrogram. It also speaks English text aloud and recognizes spoken commands and words, with no internet connection.

Use it for sound design, batch audio jobs, measuring recordings, or adding speech to a program.

  • Included in: Divooka Explore and Divooka Compute Standard. In Compute, start a document from the Audio Processing workload, or add the Audio Processing reference with Add reference (Ctrl+Shift+L).
  • Maturity: Usable · Support: Tier 2 (proposed) · what these mean
  • Open it: node library (Ctrl+Shift+Space) → Audio Processing, or search for a node with Ctrl+Space.
  • Examples and reference: Ctrl+Shift+E → Audio (14 examples) and Text to Speech · node reference

New to graphs? Start with Your first program.

Main ideas

A clip is a value. Most nodes take an audio clip and return a new one. After a run, select a node that makes a clip: the preview shows its waveform with a play button.

Signals describe, clips hold samples. The Signal and Audio Signals categories build a sound as a description (oscillators, filters, envelopes) that costs nothing until Render turns it into a clip of a given length.

Levels are in decibels of full scale. A sine at full scale reads 0 dB. Anything louder is cut off and distorts.

Example: mix a chord

The task: play C, E and G together, set the level, and let the chord fade out.

Open Audio > Mixing a Chord (Ctrl+Shift+E). It is a Routine graph:

  1. Three Tone nodes, Duration 2, Amplitude 0.3, Waveform Sine. Their Frequency comes from Note Frequency with Note C4, E4 and G4.
  2. Two Mix nodes lay the three tones over each other.
  3. Normalize, Peak Decibels -1, sets the loudest point to -1 dB.
  4. Fade Out, Duration 1, Curve Smooth, lets the chord die away over the last second.
  5. Draw Waveform, Width 800, Height 200, draws the result:

The chord's waveform: a dense green band that narrows to nothing over the last second

Two Describe nodes report the clip before and after:

Mixed: 2.00 s, 44100 Hz, mono, peak -0.9 dB
Normalized and faded: 2.00 s, 44100 Hz, mono, peak -1.0 dB

Select Fade Out after the run and press Play to hear it. Mix adds levels rather than averaging them: three tones at 0.3 can reach 0.9, and three at 0.5 would clip.

To use your own sound: start from Load Audio with a WAV, MP3, AAC, FLAC, Ogg Vorbis or Ogg Opus file.

Example: speech in and out

Open Audio > Sound Effects and Speech and Audio > Speech Commands. Speak Text reads English text aloud in CMU Flite's voice. Recognize Speech listens for one of the phrases you list, separated by |, and answers with the one it heard. Spot Keywords finds given phrases anywhere in a stretch of talk, and Align Speech places each word of a known text in a recording, to the hundredth of a second. All of them run on your computer, with no microphone or network needed for these examples.

More examples to open

Example What it shows
Audio > Tones and Noise Sine, saw, square and colored noise
Audio > Filters Low-pass, high-pass, band-pass on noise
Audio > Spectrogram A sweep and a steady tone, seen over time
Audio > A Synthesizer Patch Wavetable, FM bell and plucked string, rendered
Audio > Measuring a Filter Design a filter and measure what it removed
Audio > Live Voice Effects A voice changer, live from the microphone
Audio > Saving and Loading FLAC and WAV files

Tips and limits

  • Files in: WAV, MP3, AAC, FLAC, Ogg Vorbis and Ogg Opus, recognized by content. Files out: Save WAV and Save FLAC. FLAC is lossless and about half the size of WAV.
  • Speech is English only, with one voice for speaking and a US English model for recognizing.
  • Live input needs a microphone. Listen Live and the Live Input nodes use your recording device; rendering offline, the microphone is silent.
  • Speech recognition is offline. It uses CMU PocketSphinx inside Divooka; nothing is sent to a cloud service.

Goes well with: Music for notes and scores, Synth for MIDI playback.

What is in the toolbox

Category Some of its nodes
Signal Make Signal, Abs, Bandpass, Clip and 46 more
Audio Signals Chorus, Compress Signal, Constant Signal, Bitcrush Signal and 34 more
Signal Processing Apply Filter, Apply Zero-Phase Filter, Audio Features, Cross Correlate and 21 more
Edit Concatenate, Fade In, Fade Out, Gain and 9 more
Mix Track Audio, Delay Send, Gain, Mute and 8 more
Analysis Channel Count, Describe, Dominant Frequency, Duration and 7 more
Audio Spectrum Decibels, Frequencies, Bin Count, Bin Width and 7 more
Stereo Signal Make Stereo Signal, Left, Mono, Right and 7 more
Audio Spectrogram Frequency Of, Bin Count, Bin Width, Channel Count and 6 more
Live Latency Make Live Latency, Block Frames, Clicks, Delays and 6 more
Effects Band Pass, Bit Crush, Distort, Echo and 5 more
Wavetable Frame Length, Maximum Frames, Frame Count, Name and 5 more
Live Signal Session Dispose, Added Delay, Elapsed, Engine and 5 more
Format Change Speed, From Samples, Pan, Resample and 4 more
Music Analysis Chroma, Detect Key, Detect Onsets, Detect Pitch and 4 more
Spectral Draw Short-Time Transform, Inverse Transform, Keep Band, Remove Band and 4 more
Live Input Default Recording Device, Listen Live, Measure Live Latency, Microphone and 4 more
Generate Noise, Note Frequency, Silence, Sound Effect and 3 more
Pitch Point Make Pitch Point, Cents, Confidence, Frequency and 3 more
Files Load Audio, Load Audio Bytes, Save FLAC, Save WAV and 2 more
Dynamics Compress, Duck, Limit, Loudness and 2 more
Equalizer Butterworth, Chebyshev, High Shelf, Inverse Chebyshev and 2 more
Digital Filter Coefficients, Description, Is Fir, Sample Rate and 2 more
Speech Align Speech, Find Speech, Recognize Speech, Speak and 2 more
Pronunciation Phonics, Phonics Parts, Pinyin Breakdown, Text to IPA and 2 more
Phonics Part Is Silent, Letters, Phonemes, Sound and 2 more
Spoken Word Confidence, Duration, Start, Word and 1 more
Aligned Phone Duration, Phone, Start, Word and 1 more
Key Phrase Detection Confidence, Duration, Phrase, Start and 1 more
Time and Pitch Capture Noise Profile, Pitch Shift, Reduce Noise, Time Stretch
Studio Effects Phaser, Studio Reverb, Vocoder, Wah
Aligned Word Duration, Start, Word, To String
Speech Interval Duration, End, Start, To String
Noise Profile Data Channel Count, Sample Rate, To String
Pictures Draw Spectrogram, Draw Spectrum, Draw Waveform
Audio Mixing Mixdown, Mix Track
Playback Is Playback Available, Play

See also