LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

+Labview project

I'm a student.  I'm trying to get this labview program to filter and amplify sound.  I have an audio file that plays through speakers into a microphone.  The audio is recorded and played in its original form.  Then it's run through a low pass and high pass filter and an amplifier(For an amp I used the waveform scale and offset).  Then the filtered amplified audio is played.  Its's doing a good job filtering the unwanted high and low frequencies but the playback over the speakers isn't amplified at all.  I have a graph of the sound before and after the amplifier and they show that the waveform is being amplified by about the ammount that I scale it but when it plays over the speakers it isn't amplified at all no matter how much I scale it by.  I want to attach my VI but I don't know how.  Please help.  Let me know if there's a way to attach my VI as this may help you to understand what I've done.  Thank you so much.
0 Kudos
Message 1 of 9
(4,207 Views)
Below the box for entering messages, there's a field labeled "Attachment" with a browse button next to the field. Click on the browse button and find the file you want to attach and select it. When you submit the post the file should be uploaded and attached to your post.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 9
(4,194 Views)
Here is the VI and the audio sample(only 4 seconds long) I was using. (attached)  When I run from the VI, I put the mic next to the speaker so it can pick up the audio clip.  It then plays it back as is and then plays the filtered/amplified version.  The filtered/amplified version sounds filtered but not amplified even though the graph shows that the waveform is amplified.  I want to hear the voice louder.  Thank you so much for your help.
I just got a message back that says that the audio file (.wav) does not have a valid extension for an attachment (whatever that means) so I guess I'm just attaching the VI.  If there is a way to send the .wav file let me know.  Thanks
0 Kudos
Message 3 of 9
(4,189 Views)
I attached that vi but it's not appearing here and I don't know why.  I browsed, selected it hit open and it showed it in the attachments bar
0 Kudos
Message 4 of 9
(4,180 Views)
Your VI shows up as being attached.  As for a .wav file, that apparently is not permitted to be attached.  The way around that would be to zip it up and attach the .zip file.
Message 5 of 9
(4,170 Views)
Thanks for your suggestion. I have attached the audio wav file as a zip file. I am currently at an impasse that I need to solve to make forward progress. Any help would be greatly appreciated. Thanks.
0 Kudos
Message 6 of 9
(4,134 Views)
Hi EducProject,

I noticed the same behavior when I ran your file, so I consulted the Example Finder to see how other VIs implemented volume controls.  That's when I came across the Sound Output to Sound File.vi.  It contains a numeric slider that allows the volume to be adjusted on the fly.  The function used to perform this action is simply the Sound Output Set Volume.vi.  When I tried to modify your program to include this VI, however, I realized that I did not have the task ID for input.  Thus, I right-clicked on the Play Waveform Express VI and selected "Open Front Panel."  With that complete, I dove into the background code until I found where the sound device is actually configured (Sound Output Write Simple.vi).  After modifying this VI to include a volume input, I was able to adjust the volume.  Please give the attached code a shot and let me know your results (requires slight modification to play the .wav file).  Goodnight!
Message 7 of 9
(4,064 Views)
I'm working with EducProject. We've been working on our project(thank you very much Pakman your help has been invaluable) and have been running into a new problem (I've attached the most recent VI).  The computer seems to generate its own internal noise that is being processed through even when there is no sound file playing or microphone on.  I've been attempting to use a band stop to get rid of this noise, but it doesn't work.  Any suggestions would be greatly appreciated.

0 Kudos
Message 8 of 9
(4,015 Views)
Discussion has apparently moved here.
0 Kudos
Message 9 of 9
(3,971 Views)