LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Voice signal to bits

Hello. 

I have a problem. I want to modulate a voice signal (WAV format) in 8PSK modulation. My problem is that I want to take the voice signal to a bit stream, having it quantized in 256 levels, and I don't know how. I just get to receive the voice signal but I don't know how to start to get to this quantization and then to the bit stream.

Thank you very much.

Jose Rafael Monagas

0 Kudos
Message 1 of 10
(3,747 Views)

you cant simply read your signal by the "sound file read.vi" and use the data output, which is a simple waveform (cluster) and do all your calculations on this cluster?


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 2 of 10
(3,719 Views)

It is not what I am trying to do. I need to record the sound right there in the VI and then see how it is being modulated and demodulated. So I start with an analogic voice signal and have to do everything to have it modulated. which includes quantize it. This is where I have problems. I need to have it quantized to 256 levels. 

Thank you very much anyways

0 Kudos
Message 3 of 10
(3,708 Views)

I am sorry cschneider, I didn't understand well what you tried to say. I do now. I am trying to work with that waveform. It is what I was trying to do since I started the project. But my problem is that I don't know how to take that waveform all the way to a bit stream to modulate it PSK, and then demodulate it and try to listen to it again. My problem is really that I need to maintain as much information as I can so at the other side it keeps sounding alike. 

Thank you very much. 

I hope I can get suggestions or answers very soon because I am running out of time. 

0 Kudos
Message 4 of 10
(3,698 Views)

it will work like this for you? i am not familiar with your calculation, but this is a way, you can modify your waveform...

 

23194i0FB1405D3E94B0FA


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 5 of 10
(3,684 Views)

This should be it. Then working with sound file data the range is +/- 1 

23204iFBA383D3AD07C1B4



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 6 of 10
(3,663 Views)

I am sorry coq rouge I don't get your diagram very well.. where should I plug the sound waveform?

 

And cschneider, my problem is that at the end of the diagram I need to have a bit stream.. a 0,1 type of data.. 

 

thank you very much

0 Kudos
Message 7 of 10
(3,655 Views)

Please look to the example from cschneider. Then replace the constant array with data from the sound card.



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 8 of 10
(3,651 Views)

Hello. Good afternoon. 

I have done what you recommended me. What you showed on the diagram. It works perfectly fine. Thank you very much. But I have another problem now, and it is that I don't know how to reverse the process at the other side of the mod-demod so I can play the sound waveform again.

Again thank you very much for your help Coq Rouge and cschneider.

Jose Rafel Monagas.

0 Kudos
Message 9 of 10
(3,635 Views)

I do not mean to be rude, but I think I have given you a push in the correct direction, and to bring balance in the account it is time for you to present some code for further discussion. If you reverse engineer what I have done, and read up on AD/DA conversion it should be a breeze 😉



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 10 of 10
(3,626 Views)