1 简介
语音识别是处理语音信号的重要问题,当今社会,人工智能技术发展迅速,语音识别技术已经发展成为行业领域前列的先进技术.在以后的发展过程语音识别技术仍将发挥重大作用.语音信号是一种冗余度较高的非平稳随机信号,只有在短时间内才认为变化时缓慢的,在这个短的时间区间内语音信号特征保持稳定.因此,本课题提取小波变换、EMD分解、MEL倒谱特征、傅里叶变换信号。
2 部分代码
function varargout = GUI_2(varargin)% GUI_2 MATLAB code for GUI_2.fig% GUI_2, by itself, creates a new GUI_2 or raises the existing% singleton*.%% H = GUI_2 returns the handle to a new GUI_2 or the handle to% the existing singleton*.%% GUI_2('CALLBACK',hObject,eventData,handles,...) calls the local% function named CALLBACK in GUI_2.M with the given input arguments.%% GUI_2('Property','Value',...) creates a new GUI_2 or raises the% existing singleton*. Starting from the left, property value pairs are% applied to the GUI before GUI_2_OpeningFcn gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to GUI_2_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 GUI_2% Last Modified by GUIDE v2.5 29-Jan-2022 11:02:32% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name', mfilename, ...'gui_Singleton', gui_Singleton, ...'gui_OpeningFcn', @GUI_2_OpeningFcn, ...'gui_OutputFcn', @GUI_2_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 GUI_2 is made visible.function GUI_2_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 GUI_2 (see VARARGIN)% Choose default command line output for GUI_2handles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes GUI_2 wait for user response (see UIRESUME)% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.function varargout = GUI_2_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;% --- Executes on button press in pushbutton1.function pushbutton1_Callback(hObject, eventdata, handles)% hObject handle to pushbutton1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)global str;global s1;global fs1;[filename,pathname]=...uigetfile({'*.wav';'*.bmp';'*.gif'},'choose');str=[pathname filename];[s1,fs1] = audioread(str);%读取figure(1)s1=s1(1:3000,:);plot(s1)title('心音信号')% --- Executes on button press in pushbutton2.on, after setting all properties.function edit2_CreateFcn(hObject, eventdata, handles)% hObject handle to edit2 (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
3 仿真结果





4 参考文献
[1]董梅, 廖云霞, 刘海山,等. 基于Matlab的语音信号特征提取系统的设计[J]. 电脑知识与技术:学术版, 2018(7Z):4.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
本文介绍了一种使用MATLAB进行语音信号处理的方法,包括小波变换、EMD分解、MEL倒谱特征和傅里叶变换等技术。通过GUI界面实现,用户可以选择文件并查看心音信号的波形。代码示例展示了如何读取和显示音频数据,并提供了部分功能的回调函数。
628

被折叠的 条评论
为什么被折叠?



