音處理】基于matlab GUI海寧窗錄音信號(hào)時(shí)域頻域分析(帶面板)【含Matlab源碼 064期】)
歡迎來(lái)到海神之光博客之家?博主簡(jiǎn)介熱愛(ài)科研的Matlab仿真開發(fā)者修心和技術(shù)同步精進(jìn)個(gè)人主頁(yè)海神之光代碼獲取方式海神之光Matlab王者學(xué)習(xí)之路—代碼獲取方式??座右銘行百里者半于九十。更多Matlab語(yǔ)音處理仿真內(nèi)容點(diǎn)擊①M(fèi)atlab語(yǔ)音處理 進(jìn)階版②付費(fèi)專欄Matlab語(yǔ)音處理初級(jí)版??關(guān)注微信公眾號(hào)Matlab王者助手或Matlab海神之光更多資源等你來(lái)?一、語(yǔ)音處理簡(jiǎn)介MATLAB GUI是用戶與計(jì)算機(jī)或計(jì)算機(jī)程序的接觸點(diǎn)或交互方式,是用戶與計(jì)算機(jī)進(jìn)行信息交流的方式。圖形用戶界面Graphical User Interfaces,GUI則是由窗口、光標(biāo)、按鍵、菜單、文字說(shuō)明等對(duì)象Object構(gòu)成的一個(gè)用戶界面。用戶通過(guò)一定的方法如鼠標(biāo)或鍵盤選擇、激活這些圖形對(duì)象,使計(jì)算機(jī)產(chǎn)生某種動(dòng)作或變化,比如實(shí)現(xiàn)計(jì)算、繪圖等。本設(shè)計(jì)基于MATLAB GUI技術(shù),完成了語(yǔ)音信號(hào)處理的界面平臺(tái),可進(jìn)行語(yǔ)音的選取、線性預(yù)測(cè)分析LPC、語(yǔ)譜圖、頻譜等相關(guān)波形的顯示。這樣可以更直觀、更方便地分析和處理語(yǔ)音信號(hào),得到用戶需要的實(shí)驗(yàn)結(jié)果。具體理論知識(shí)參考基于MATLAB GUI的語(yǔ)音處理界面設(shè)計(jì)?二、部分源代碼function varargout music_show1(varargin)% MUSIC_SHOW1 MATLAB code for music_show1.fig% MUSIC_SHOW1, by itself, creates a new MUSIC_SHOW1 or raises the existing% singleton*.%% H MUSIC_SHOW1 returns the handle to a new MUSIC_SHOW1 or the handle to% the existing singleton*.%% MUSIC_SHOW1(‘CALLBACK’,hObject,eventData,handles,…) calls the local% function named CALLBACK in MUSIC_SHOW1.M with the given input arguments.%% MUSIC_SHOW1(‘Property’,‘Value’,…) creates a new MUSIC_SHOW1 or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the GUI before music_show1_OpeningFcn gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to music_show1_OpeningFcn via varargin.%% *See GUI Options on GUIDE’s Tools menu. Choose “GUI allows only one% instance to run (singleton)”.%% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help music_show1% Last Modified by GUIDE v2.5 07-Jan-2022 12:02:06% Begin initialization code - DO NOT EDITgui_Singleton 1;gui_State struct(‘gui_Name’, mfilename, …‘gui_Singleton’, gui_Singleton, …‘gui_OpeningFcn’, music_show1_OpeningFcn, …‘gui_OutputFcn’, music_show1_OutputFcn, …‘gui_LayoutFcn’, [] , …‘gui_Callback’, []);if nargin ischar(varargin{1})gui_State.gui_Callback str2func(varargin{1});endif nargout[varargout{1:nargout}] gui_mainfcn(gui_State, varargin{:});elsegui_mainfcn(gui_State, varargin{:});end% End initialization code - DO NOT EDIT% — Executes just before music_show1 is made visible.function music_show1_OpeningFcn(hObject, eventdata, handles, varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% varargin command line arguments to music_show1 (see VARARGIN)% Choose default command line output for music_show1handles.output hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes music_show1 wait for user response (see UIRESUME)% uiwait(handles.figure1);clear global variablesglobal hmwarning offAlinspace(0,6.3,1000);xk9cos(pi/2);yk9sin(pi/2);plot([xk/98 xk/97],[yk/98 yk/97],‘k’)hold ontext(xk-0.3,yk,‘0’)for k1:5;xk9cos(-pi/20(2k-1)pi/2);yk9sin(-pi/20*(2k-1)pi/2);plot([xk/97.5 xk/97],[yk/97.5 yk/97],‘k’)xk9cos(-pi/20*(2k)pi/2);yk9sin(-pi/20*(2k)pi/2);plot([xk/98 xk/97],[yk/98 yk/97],‘k’)text(xk,yk,num2str(2k))endfor k1:5;xk9cos(pi/20(2k-1)pi/2);yk9sin(pi/20*(2k-1)pi/2);plot([xk/97.5 xk/97],[yk/97.5 yk/97],‘k’)xk9cos(pi/20*(2k)pi/2);yk9sin(pi/20*(2k)pi/2);plot([xk/98 xk/97],[yk/98 yk/97],‘k’)if k5text(xk-1,yk,num2str(-2k))elsetext(xk-1,yk,num2str(-2*k))endendtmpi/2;xm36.0cos?;ym36.0sin?;xm2xm3/20.5cos(tm-pi/2);ym2ym3/20.5sin(tm-pi/2);xm4xm3/2-0.5cos(tm-pi/2);ym4ym3/2-0.5sin(tm-pi/2);hmfill([0 xm2 xm3 xm4 0],[0 ym2 ym3 ym4 0],‘k’);axis offaxis([-10 10 -8 10])axis equal% — Outputs from this function are returned to the command line.function varargout music_show1_OutputFcn(hObject, eventdata, handles)% varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Get default command line output from handles structurevarargout{1} handles.output;function edit6_Callback(hObject, eventdata, handles)% hObject handle to edit6 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,‘String’) returns contents of edit6 as text% str2double(get(hObject,‘String’)) returns contents of edit6 as a double% — Executes during object creation, after setting all properties.function edit6_CreateFcn(hObject, eventdata, handles)% hObject handle to edit6 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc isequal(get(hObject,‘BackgroundColor’), get(0,‘defaultUicontrolBackgroundColor’))set(hObject,‘BackgroundColor’,‘white’);end% — Executes on button press in pushbutton10.function pushbutton10_Callback(hObject, eventdata, handles)% hObject handle to pushbutton10 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)%% 進(jìn)行播放global music_pathif isempty(music_path)warndlg(‘請(qǐng)進(jìn)行聲音的錄入,再進(jìn)行播放’);return;end[h, Fs] audioread(music_path);h h * 10;sound(h,Fs);% — Executes on button press in pushbutton11.function pushbutton11_Callback(hObject, eventdata, handles)% hObject handle to pushbutton11 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% 把錄入的相關(guān)音頻進(jìn)行保存global Rglobal music_pathmyvoicegetaudiodata?;audiowrite(‘myvoice.wav’,myvoice,44100); % 保存相關(guān)音頻數(shù)據(jù)set(handles.edit1,‘String’,‘myvoice.wav’);music_path ‘myvoice.wav’;set(handles.edit1,‘enable’,‘off’)% — Executes during object creation, after setting all properties.function axes4_CreateFcn(hObject, eventdata, handles)% hObject handle to axes4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: place code in OpeningFcn to populate axes4?三、運(yùn)行結(jié)果?四、matlab版本及參考文獻(xiàn)1 matlab版本2014a2 參考文獻(xiàn)[1]韓紀(jì)慶,張磊,鄭鐵然.語(yǔ)音信號(hào)處理第3版[M].清華大學(xué)出版社2019.[2]柳若邊.深度學(xué)習(xí):語(yǔ)音識(shí)別技術(shù)實(shí)踐[M].清華大學(xué)出版社2019.[3]宋云飛,姜占才,魏中華.基于MATLAB GUI的語(yǔ)音處理界面設(shè)計(jì)[J].科技信息. 2013,(02)3 備注簡(jiǎn)介此部分摘自互聯(lián)網(wǎng)僅供參考若侵權(quán)聯(lián)系刪除 仿真咨詢1 各類智能優(yōu)化算法改進(jìn)及應(yīng)用生產(chǎn)調(diào)度、經(jīng)濟(jì)調(diào)度、裝配線調(diào)度、充電優(yōu)化、車間調(diào)度、發(fā)車優(yōu)化、水庫(kù)調(diào)度、三維裝箱、物流選址、貨位優(yōu)化、公交排班優(yōu)化、充電樁布局優(yōu)化、車間布局優(yōu)化、集裝箱船配載優(yōu)化、水泵組合優(yōu)化、解醫(yī)療資源分配優(yōu)化、設(shè)施布局優(yōu)化、可視域基站和無(wú)人機(jī)選址優(yōu)化2 機(jī)器學(xué)習(xí)和深度學(xué)習(xí)方面卷積神經(jīng)網(wǎng)絡(luò)CNN、LSTM、支持向量機(jī)SVM、最小二乘支持向量機(jī)LSSVM、極限學(xué)習(xí)機(jī)ELM、核極限學(xué)習(xí)機(jī)KELM、BP、RBF、寬度學(xué)習(xí)、DBN、RF、RBF、DELM、XGBOOST、TCN實(shí)現(xiàn)風(fēng)電預(yù)測(cè)、光伏預(yù)測(cè)、電池壽命預(yù)測(cè)、輻射源識(shí)別、交通流預(yù)測(cè)、負(fù)荷預(yù)測(cè)、股價(jià)預(yù)測(cè)、PM2.5濃度預(yù)測(cè)、電池健康狀態(tài)預(yù)測(cè)、水體光學(xué)參數(shù)反演、NLOS信號(hào)識(shí)別、地鐵停車精準(zhǔn)預(yù)測(cè)、變壓器故障診斷3 圖像處理方面圖像識(shí)別、圖像分割、圖像檢測(cè)、圖像隱藏、圖像配準(zhǔn)、圖像拼接、圖像融合、圖像增強(qiáng)、圖像壓縮感知4 路徑規(guī)劃方面旅行商問(wèn)題TSP、車輛路徑問(wèn)題VRP、MVRP、CVRP、VRPTW等、無(wú)人機(jī)三維路徑規(guī)劃、無(wú)人機(jī)協(xié)同、無(wú)人機(jī)編隊(duì)、機(jī)器人路徑規(guī)劃、柵格地圖路徑規(guī)劃、多式聯(lián)運(yùn)運(yùn)輸問(wèn)題、車輛協(xié)同無(wú)人機(jī)路徑規(guī)劃、天線線性陣列分布優(yōu)化、車間布局優(yōu)化5 無(wú)人機(jī)應(yīng)用方面無(wú)人機(jī)路徑規(guī)劃、無(wú)人機(jī)控制、無(wú)人機(jī)編隊(duì)、無(wú)人機(jī)協(xié)同、無(wú)人機(jī)任務(wù)分配6 無(wú)線傳感器定位及布局方面?zhèn)鞲衅鞑渴饍?yōu)化、通信協(xié)議優(yōu)化、路由優(yōu)化、目標(biāo)定位優(yōu)化、Dv-Hop定位優(yōu)化、Leach協(xié)議優(yōu)化、WSN覆蓋優(yōu)化、組播優(yōu)化、RSSI定位優(yōu)化7 信號(hào)處理方面信號(hào)識(shí)別、信號(hào)加密、信號(hào)去噪、信號(hào)增強(qiáng)、雷達(dá)信號(hào)處理、信號(hào)水印嵌入提取、肌電信號(hào)、腦電信號(hào)、信號(hào)配時(shí)優(yōu)化8 電力系統(tǒng)方面微電網(wǎng)優(yōu)化、無(wú)功優(yōu)化、配電網(wǎng)重構(gòu)、儲(chǔ)能配置9 元胞自動(dòng)機(jī)方面交通流 人群疏散 病毒擴(kuò)散 晶體生長(zhǎng)10 雷達(dá)方面卡爾曼濾波跟蹤、航跡關(guān)聯(lián)、航跡融合