Skip to content

record

Record audio to a file

Terminal window
conhive-agent audiomanagement record

Records audio using the system’s default or a specified input device and saves it to a file. Parameters such as duration, output file name/format, save directory, channel count, and sample rate can be configured, often via a JSON payload using the ‘—json’ flag. Requires appropriate permissions and audio hardware/drivers. Uses FFmpeg for recording.

Terminal window
conhive-agent audiomanagement record [flags]
Terminal window
am record --json '{"file_name":"meeting_audio","duration":60,"file_extension":"mp3","save_folder":"/data/recordings"}'
Terminal window
-h, --help help for record
--json string JSON input (with default values):
{
"duration": 3,
"fileExtension": "flac",
"filterVolume": 0,
"filterHighPass": 0,
"addTimestamp": true,
"saveFolder":
"~/divvoice/audiomanagement/recordings"
}
-f, --log-format string Specify the logging format (options: console,
json) (default "text")
-l, --log-level string Define the logging level (options: trace,
debug, info, warn, error, fatal, panic)
(default "info")
-o, --log-to-file Enable logging to a file (default true)
-p, --port int32 Port to run the server on (default 5050)
-w, --workdir string Set the working directory for agent operations
(default: $HOME/.conhive)