To download NI software, including the products shown below, visit ni.com/downloads.
Overview
Given a valid file path to a .wav file, this code is an example of how to read sound data and write it to a text file. This example will also include information about the wave read as a header in the text file.
Description
The VI operates by first opening the sound file to be read using the specified path. The sound file is read and output as Waveform data. Information about the sound itself is extracted from the .wav file, which is then closed. After that, the Y components of all the Waveform samples are unbundled, and sound information is converted into a string. The final step is to write sound information to the output file specified by the output file path and append the Y component array to the output file.
Steps to Implement or Execute Code
Requirements
Additional Information or References
Front panel
VI snippet
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
thanks for the info.is there any way to remove header information from a file and then save it as text