Skip to content

play

Play an audio file

Terminal window
conhive-agent audiomanagement play

Plays the specified audio file using the system’s default audio output device. Requires the path to the audio file, typically provided via a JSON payload or a dedicated flag (e.g., —file-path). Uses FFplay/FFmpeg for playback.

Terminal window
conhive-agent audiomanagement play [flags]
Terminal window
am play --json '{"file_path":"/data/recordings/meeting_audio.mp3"}'
Terminal window
-h, --help help for play
--json string JSON input (required) (with default values):
{
"filePath": "",
"volume": 50,
"channel": 1,
"maxPlayDurationSec": 3600
}
-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)