AdrianInfante / 2wayAudio

0 stars 0 forks source link

Audio Streaming to ONVIF Camera

This project allows you to stream audio from your microphone to an ONVIF-compatible IP camera using RTP (Real-time Transport Protocol). It sets up the camera to enable audio output and handles audio capture, encoding, and transmission in real-time.

Features

Prerequisites

Before running this script, ensure you have the following prerequisites installed:

You can install the necessary packages using pip:

pip install requests onvif-zeep pyaudio numpy

Configuration

Update the following configuration variables in the script as per your setup:

Usage

  1. Ensure the ONVIF camera is connected and accessible over the network.
  2. Run the script:
    python audio_streaming_to_onvif_camera.py
  3. The script will:
    • Connect to the camera and configure it for audio streaming.
    • Capture audio from the microphone.
    • Send the encoded audio data to the camera via RTP.

Notes