CASP models can interface with multimedia devices such as cameras, microphones and speakers. This example, demonstrates a model that interfaces audio microphone and speaker on host PC as well as between two supported targets (two different computers or SBCs) connected through a network.

Pre-Requisites

  • USB microphone and speaker.
  • CASP software is installed.
  • The project files are located at CASP installed directory ‘CASP/support/examples/multimedia/02_audio_mic_speaker’. These are also available for download at this link.

Description

A microphone and a speaker are connected to the host PC and are configured as default audio input and output devices respectively in the operating system. Two models are developed to interface with these two devices. User may enable one model at a time. On running the first model, user can hear his/her voice from the speaker if talks in front of the microphone. In the second model, when user speaks in front of microphone connected to one target his/her voice should be heard on the second target via LAN. Please go through the individual block parameters used in the model along with respective documentation for better understanding.

CASP Model

Procedure

  • Run CASP and open the project ‘CASP/support/examples/multimedia/02_audio_mic_speaker/02_audio_mic_speaker.prj’ from CASP installed directory.
  • In the model, enable only one model at a time as per your setup. Setup microphone and speaker settings as relevant.
  • Click Run button to build and start simulation.