Actions25
- Call Actions
- Dial Actions
- Media Actions
- Queue Actions
- Global recording Actions
- AI Actions
- Respond Actions
Media → Record Audio
AI-generatedSummary
Record audio from a SIP PBX leg with configurable format, duration, and output destination.
Inputs
- maxDurationSeconds — Maximum duration of the recording in seconds.
- recordFileFormat — Format of the recorded audio file (e.g., WAV, MP3, Opus, OGG).
- recordOutputType (required) — How the recording should be returned: binary, file, or HTTP.
- recordBinaryProperty — n8n item.binary property name to use for binary data (default: data).
- recordFilePath (required) — Final absolute or relative output file path on the n8n host (e.g., recordings/call-123.wav).
- recordHttpUrl (required) — HTTP or HTTPS destination URL for upload (e.g., https://api.example.com/upload/call.wav).
- recordHttpAuthentication — Authentication method for HTTP upload (None, Predefined, Generic).
- recordHttpNodeCredentialType (required) — Credential type for predefined credentials when using HTTP authentication.
- recordHttpGenericAuthType (required) — Credential type for generic authentication when using HTTP.
- interruptOn — Condition to interrupt recording (DTMF or Silence).
- legId — Identifier of the telephony leg to operate on.
- stopOtherMedia — Stop other active media on the same leg before starting this one.
- mediaExecutionMode — Execution mode: blocking (wait for completion) or background.
- recordWavSampleRate — Sample rate for WAV recordings (default: 8000).
- recordWavBitDepth — Bit depth for WAV recordings (default: 16).
- silenceThreshold — Silence threshold level for detecting silent audio.
- silenceDurationMs — Minimum silence duration in milliseconds to consider stopping.
- recordHttpMethod — HTTP method to use for upload (POST or PUT).
- recordHttpHeaders — Headers to include in HTTP requests.
- recordCompressedSampleRate — Sample rate for compressed audio recordings.
- recordCompressedBitrate — Bitrate for compressed audio recordings.
Output shape
binary data or file path (depends on Output Type)
When Output Type is 'binary' or 'file', the operation returns the recorded data; when 'http', it returns upload response; otherwise a simple success indicator.
Examples
Example 1: Record a call and store it as a local WAV file.
Set File Format to WAV, Output Type to File, define File Path, set Max DurationSeconds to 30.
Example 2: Upload the recording to an HTTP endpoint.
Set Output Type to HTTP, provide URL, choose authentication type, optionally set HTTP Method and add headers.
Example 3: Record compressed Opus audio in background mode.
Select File Format Opus, Output Type Binary, set Execution Mode to Background, configure Compressed Sample Rate and Bitrate.