Zao SDK for Jetson / libzep API Reference
|
This is a sample program to capture audio from Capture device recognized by ALSA and send the audio data to the cloud side (Source).
Follow the build instructions to obtain audio-source-alsa/ZaoAudioSourceAlsa. To replace the pre-built binary installed by the SDK setup, execute the command as follows. ```` $ sudo install -m 755 -o root -g root audio-source-alsa/ZaoAudioSourceAlsa /usr/local/bin
ZaoAudioSourceAlsa -d <device> [-s <stream_name>] [-p <link-path>] ```
-d <device>
: specify ALSA device name.-d <device>
: specifies a PCM device name enumerated by arecord -L
etc. * Example: -d plugh -L
: specifies a PCM device name.-d plughw:CARD=2
.-s <stream_name>
: specify stream name.-s <stream_name>
: specify one stream name to connect.embedded
: send as embedded audio superimposed on the video signal.external
: send as additional external audio.external
: send as additional external audio.-p <link-path>
: specify path for linkage.-p <link-path>
: path for linking with ZaoRemoteEndpoint.unix:///run/zao/RemoteEndpoint.sock
.