freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

matlab程式設(shè)計(jì)入門篇音訊讀寫、錄制與播放audio-資料下載頁

2024-10-12 15:26本頁面

【導(dǎo)讀】聲音訊號(hào)簡稱音訊,泛指由人耳。聽到的各種聲音的訊號(hào)。音訊的基本聲學(xué)特徵。代表音高越高;反之,聲音的基本頻率越低,不同的音色即代表不同的音訊內(nèi)容,例如不同的字有不同的發(fā)。音,或是不同的歌手有不同的特色,這些都是由於音色不同而產(chǎn)生。使用audioread讀取wav檔案,畫出音訊的波。放大波形後即可看到基本週期!fprintf('取樣點(diǎn)解析度=%g位元/取樣點(diǎn)\n',

  

【正文】 (39。Amplitude39。)。 設(shè)定錄音參數(shù) 取得音訊資料 MATLAB 程式設(shè)計(jì)入門篇:音訊讀寫、錄製與播放 Recording (2/2) ? Set recording parameters, record, plot the waveform: ? fs=16000。 % Sample rate nBits=16。 % Bit resolution (must be 8, 16, or 24) nChannel=1。 % No. of channels (must be 1 or 2) duration=3。 % Duration for recording in sec recObj=audiorecorder(fs, nBits, nChannel)。 fprintf(39。按任意鍵後開始 %g 秒錄音: 39。, duration)。 pause fprintf(39。錄音中 ...39。)。 recordblocking(recObj, duration)。 fprintf(39。錄音結(jié)束 \n39。)。 fprintf(39。按任意鍵後開始播放: 39。)。 pause play(recObj)。 y = getaudiodata(recObj, 39。double39。)。 % get data as a double array plot((1:length(data))/fs, y)。 xlabel(39。Time (sec)39。)。 ylabel(39。Amplitude39。)。 Set up recording parameters Obtain audio signals MATLAB 程式設(shè)計(jì)入門篇:音訊讀寫、錄製與播放 聲音訊號(hào)的寫檔 (1/2) ? 我們也可以經(jīng)由 MATLAB 將音訊資料直接儲(chǔ)存為音訊檔案,以便直接在電腦播放。寫入音訊檔案的指令是 audiowrite,其格式為 : ? audiowrite(audioFile, y, fs) ? audioFile 則是欲寫入資料的檔案名稱, y 是音訊變數(shù),fs 是取樣頻率。 ? 範(fàn)例: load audioFile=39。39。 % 欲儲(chǔ)存的 wav 檔案 fprintf(39。Saving to %s...\n39。, audioFile)。 audiowrite(audioFile, y, round(*Fs))。 fprintf(39。按任意鍵後開始播放 %s...\n39。, audioFile)。 dos([39。start 39。, audioFile])。 % 開啟與 wav 檔案對應(yīng)的應(yīng)用程式 MATLAB 程式設(shè)計(jì)入門篇:音訊讀寫、錄製與播放 Storing Audio Files (1/2) ? We can use “audiowrite” to save audio files, with the following I/O format: ? audiowrite(audioFile, y, fs) ? audioFile: file to write to, y: audio signals, fs: sample rate ? 範(fàn)例: load audioFile=39。39。 % wav file to write to fprintf(39。Saving to %s...\n39。, audioFile)。 audiowrite(audioFile, y, round(*Fs))。 fprintf(39。按任意鍵後開始播放 %s...\n39。, audioFile)。 dos([39。start 39。, audioFile])。 % Use default application to open the wav file MATLAB 程式設(shè)計(jì)入門篇:音訊讀寫、錄製與播放 聲音訊號(hào)的寫檔 (2/2) ? 錄音、播放、存檔的範(fàn)例: ? 範(fàn)例: fs=16000。 % 取樣頻率 nBits=16。 % 取樣點(diǎn)解析度,必須是 8 或 16 或 24 nChannel=1。 % 聲道個(gè)數(shù),必須是 1(單聲道) 或 2(雙聲道或立體音) duration=3。 % 錄音時(shí)間(秒) recObj=audiorecorder(fs, nBits, nChannel)。 fprintf(39。按任意鍵後開始 %g 秒錄音: 39。, duration)。 pause fprintf(39。錄音中 ...39。)。 recordblocking(recObj, duration)。 fprintf(39。錄音結(jié)束 \n39。)。 fprintf(39。按任意鍵後開始播放: \n39。)。 pause y = getaudiodata(recObj, 39。double39。)。 % get data as a double array plot((1:length(data))/fs, y)。 xlabel(39。Time (sec)39。)。 ylabel(39。Amplitude39。)。 sound(y, fs)。 audioFile=39。39。 % 欲儲(chǔ)存的 wav 檔案 fprintf(39。Saving to %s...\n39。, audioFile)。 audiowrite(audioFile, y, fs)。 system(audioFile)。 % Use default application to open the wav file MATLAB 程式設(shè)計(jì)入門篇:音訊讀寫、錄製與播放 Storing Audio Files (2/2) ? Example of recording, playback, and saving: ? 範(fàn)例: fs=16000。 % Sample rate nBits=16。 % Bit resolution (must be 8, 16, or 24) nChannel=1。 % No. of channels (must be 1 or 2) duration=3。 % Recording duration in sec recObj=audiorecorder(fs, nBits, nChannel)。 fprintf(39。按任意鍵後開始 %g 秒錄音: 39。, duration)。 pause fprintf(39。錄音中 ...39。)。 recordblocking(recObj, duration)。 fprintf(39。錄音結(jié)束 \n39。)。 fprintf(39。按任意鍵後開始播放: \n39。)。 pause y = getaudiodata(recObj, 39。double39。)。 % get data as a double array plot((1:length(data))/fs, y)。 xlabel(39。Time (sec)39。)。 ylabel(39。Amplitude39。)。 sound(y, fs)。 audioFile=39。39。 % wav file to be saved fprintf(39。Saving to %s...\n39。, audioFile)。 audiowrite(audioFile, y, fs)。 system(audioFile)。 % 開啟與 wav 檔案對應(yīng)的應(yīng)用程式 MATLAB 程式設(shè)計(jì)入門篇:音訊讀寫、錄製與播放 Crossversion Issues ? File mapping for different versions of MATLAB ? wavread ? audioread ? wavwrite ? audiowrite ? wavplay ? audioplayer, sound ? wavrecord ? audiorecorder ? Other supports ? audiodevinfo ? playblocking ? play ? SAP toolbox ? Versionindependent audio file reading ? ? Progressive bar ? MATLAB 程式設(shè)計(jì)入門篇:音訊讀寫、錄製與播放 Supplementary Material ? Other resources ? ASPR: Audio Signal Processing and Recognition ? Texts for this set of slides can be found at Chapter 4. ? Pitch tracking by visual inspection can be found at Section 4 of Chapter 5. (Slides
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1