Example Code

Simultaneous Sound Record and Playback in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example simultaneously acquires and plays back the sound capture on a microphone, on a speaker.

 

Description

This VI uses the producer and consumer design pattern, and can be adapted to create a speach jammer by implementing a playback delay and using noise-cancelling headphones This VI could even serve as the basis for a voice modulator.

 

Requirements

  • LabVIEW 2013 (or compatible).

 

Steps to Implement or Execute Code

  1. Run the program.
  2. Say something into the microphone.
  3. Observe your voice being played back over the audio device.

Additional Information or References 

Main VI Block Diagram

 

capture.JPG

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Tim, CLD, CTD
National Instruments (UK & Ireland)
________________________________________________
"No problem is insoluble in all conceivable circumstances"

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
RCab
Member
Member
on

Very interesting subject.  Any chance for the example to be re-compiled for LabVIEW 2012?

na1992
Member
Member
on

i have tried it but it does not indicate that its taking any sound in and it does not playback :s what could be the issue