Zao SDK for Jetson / libzep API Reference
Loading...
Searching...
No Matches
Sample Program ZaoAudioSourceAlsa

This is a sample program to capture audio from Capture device recognized by ALSA and send the audio data to the cloud side (Source).

■ Build and Installation

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

## ■ Command line options.

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.
      • Example: -d plughw:CARD=2.
    • This option is required.
  • -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.
    • If omitted, it is unix:///run/zao/RemoteEndpoint.sock.

■ Main operations

  • To stop fetching and sending, type Ctrl-C.

■ Limitations

  • The selected Capture device must support 48 kHz sampling rate and stereo input.