NI產品與技術 討論區

取消
顯示結果 
搜尋替代 
您的意思是: 

如何读取声音波形並顯示出來

我在labview7.0中用sound控件把.wav文件讀進來,然後進行播放,但是我想獲取它的波形,利用snd read wave file.vi讀取文件時返回一個sound format,那麽請問這個是這它的波形嗎?如果是怎樣指定通過圖形顯示出來呢?如果不是又怎樣讀取波形然後顯示出來?
0 積分
1 條訊息(共 10 條)
7,788 檢視
Good day,
 
"Sound Format" gives the information about the sound wave file such as its Sampling Rate, Sound Quality as well as its Bits per Sample info.
By using these information, you are able to deter which returned data (8 bit mono, 16 bit mono, 8 bit stereo or 16 bit stereo) to use for plotting its corresponding waveform.
 
With "Build Waveform", you will then be able to obtain the waveform of the sound file.
 
Hope this make sense to you 😉
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
2 條訊息(共 10 條)
7,783 檢視

ian fung

 thank you for help response. I will try to do it ,If it still have a problem I will contract with you!!!

 

0 積分
3 條訊息(共 10 條)
7,780 檢視

你好,我想请问让波形连续显示的方法。

hello, if i want to obtain the waveform continous, what should i do?

 

thanks.

0 積分
4 條訊息(共 10 條)
6,561 檢視
please forgive my ignorance, the sound waveform "IFK" is what? this is not chart?
0 積分
5 條訊息(共 10 條)
6,557 檢視

Hi

 

If you want to read sound/ audio input to your PC's sound card, you may use Sound Input functions.

 

Try searching the LabVIEW shipped example... Simultaneous Sound IO.vi as reference.

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 積分
6 條訊息(共 10 條)
6,523 檢視

hello, I am sorry, I didn't explain clearly, I want to Read sound file WAV to graphic,I have seen the example, but itùs not continous. 

 

thanks

0 積分
7 條訊息(共 10 條)
6,518 檢視

Hi Xiuming

 

What do you mean by "continous"? Do you want to continously output the (read) wav file? You may explain it in Chinese, if it is easier for you.

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 積分
8 條訊息(共 10 條)
6,504 檢視

hi, ian fung, thanks very much.

 

i have done today, i use the split Array.vi to the file, after that write to the graphic, and feed it pieces of sound fast enough for  sound output also.

 

now the graphic is continous. it's the idea from another person.

 

thanks, all the nice guys.

 

Xiuming

0 積分
9 條訊息(共 10 條)
6,497 檢視

That's great!

 

Many years back, I used to code to output a 1k + 2.8k tone through PC sound card. The tone is few seconds (wav file), and it is being looped for continuous output.

 

Have a nice day!

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 積分
10 條訊息(共 10 條)
6,492 檢視