一、语音处理简介

MATLAB GUI是用户与计算机或计算机程序的接触点或交互方式,是用户与计算机进行信息交流的方式。图形用户界面(Graphical User Interfaces,GUI)则是由窗口、光标、按键、菜单、文字说明等对象(Object)构成的一个用户界面。用户通过一定的方法(如鼠标或键盘)选择、激活这些图形对象,使计算机产生某种动作或变化,比如实现计算、绘图等。本设计基于MATLAB GUI技术,完成了语音信号处理的界面平台,可进行语音的选取、线性预测分析(LPC)、语谱图、频谱等相关波形的显示。这样可以更直观、更方便地分析和处理语音信号,得到用户需要的实验结果。
具体理论知识参考:基于MATLAB GUI的语音处理界面设计

二、部分源代码

function varargout = yonghujiemain(varargin)
% YONGHUJIEMAIN M-file for yonghujiemain.fig
%      YONGHUJIEMAIN, by itself, creates a new YONGHUJIEMAIN or raises the existing
%      singleton*.
%
%      H = YONGHUJIEMAIN returns the handle to a new YONGHUJIEMAIN or the handle to
%      the existing singleton*.
%
%      YONGHUJIEMAIN('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in YONGHUJIEMAIN.M with the given input arguments.
%
%      YONGHUJIEMAIN('Property','Value',...) creates a new YONGHUJIEMAIN or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before yonghujiemain_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to yonghujiemain_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 yonghujiemain% Last Modified by GUIDE v2.5 02-Jan-2021 16:50:18% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...'gui_Singleton',  gui_Singleton, ...'gui_OpeningFcn', @yonghujiemain_OpeningFcn, ...'gui_OutputFcn',  @yonghujiemain_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 yonghujiemain is made visible.
function yonghujiemain_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 yonghujiemain (see VARARGIN)% Choose default command line output for yonghujiemain
handles.output = hObject;% Update handles structure
guidata(hObject, handles);% UIWAIT makes yonghujiemain wait for user response (see UIRESUME)
% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.
function varargout = yonghujiemain_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 structure
varargout{1} = handles.output;% --- Executes on button press in turn_down.
function turn_down_Callback(hObject, eventdata, handles)
% hObject    handle to turn_down (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% --- Executes on button press in turn_up.
function turn_up_Callback(hObject, eventdata, handles)
% hObject    handle to turn_up (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% --- Executes on selection change in popupmenu1.
function popupmenu1_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns popupmenu1 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu1% --- Executes during object creation, after setting all properties.
function popupmenu1_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu 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 speed_up.
function speed_up_Callback(hObject, eventdata, handles)
% hObject    handle to speed_up (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% --- Executes on button press in slow_down.
function slow_down_Callback(hObject, eventdata, handles)
% hObject    handle to slow_down (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% --- Executes on selection change in popupmenu2.
function popupmenu2_Callback(hObject, eventdata, handles)
% hObject    handle to popupmenu2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hints: contents = get(hObject,'String') returns popupmenu2 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu2% --- Executes during object creation, after setting all properties.
function popupmenu2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called% Hint: popupmenu 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 insert.
function insert_Callback(hObject, eventdata, handles)
% hObject    handle to insert (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global  fn x Fs bits;
[fn,dirpath]=uigetfile('*.wav');
[x,Fs,bits] = wavread(fn);
t=(0:length(x)-1)/Fs;
plot(handles.axes1,t,x);
legend('Waveform');
xlabel( 'Time(s)');
ylabel('Amplitude');
xlength=length(x);
y=fft(x,xlength);
Pyy =y.*conj(y)/xlength;
f = 22050*(0:(xlength/2))/xlength;
plot(handles.axes2,f,Pyy(1:xlength/2+1));
title('Frequency content of y');
xlabel('frequency (Hz)');% --- Executes on button press in play.
function play_Callback(hObject, eventdata, handles)
% hObject    handle to play (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global  x Fs bits;
sound(x,Fs,bits);% --- Executes on button press in save.
function save_Callback(hObject, eventdata, handles)% hObject    handle to save (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global x;
[filname,pathname]=uiputfile('.wav');
wavwrite(x,22050,8,filname);% --- Executes on button press in radiobutton1.
function radiobutton1_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of radiobutton1% --- Executes on button press in radiobutton2.
function radiobutton2_Callback(hObject, eventdata, handles)
% hObject    handle to radiobutton2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of radiobutton2% --- Executes on button press in fuwei.
function fuwei_Callback(hObject, eventdata, handles)
% hObject    handle to fuwei (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global  fn x Fs bits;
[x,Fs,bits] = wavread(fn);
t=(0:length(x)-1)/Fs;
plot(handles.axes1,t,x);
legend('Waveform');
xlabel( 'Time(s)');
ylabel('Amplitude');
xlength=length(x);
y=fft(x,xlength);
Pyy =y.*conj(y)/xlength;
f = 22050*(0:(xlength/2))/xlength;
plot(handles.axes2,f,Pyy(1:xlength/2+1));
title('Frequency content of y');
xlabel('frequency (Hz)');% --- Executes on button press in daofang.
function daofang_Callback(hObject, eventdata, handles)
% hObject    handle to daofang (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global   x Fs ;
i=1:length(x);
j=length(x):-1:1;
x_reversal(j)=x(i); %实现声音数据颠倒
t=(0:length(x)-1)/Fs;
plot(handles.axes1,t,x);
title('original signal');
xlabel( 'Time(s)');
ylabel('Amplitude');
plot(handles.axes2,t,x_reversal);
title('reversal signal');
xlabel( 'Time(s)');
ylabel('Amplitude');
x=x_reversal;

三、运行结果



四、matlab版本及参考文献

1 matlab版本
2014a

2 参考文献
[1]韩纪庆,张磊,郑铁然.语音信号处理(第3版)[M].清华大学出版社,2019.
[2]柳若边.深度学习:语音识别技术实践[M].清华大学出版社,2019.
[3]宋云飞,姜占才,魏中华.基于MATLAB GUI的语音处理界面设计[J].科技信息. 2013,(02)

【语音处理】基于matlab GUI音频信号处理(调音+调速+调频+滤波)(带面板)【含Matlab源码 299期】相关推荐

  1. 【光学】基于matlab GUI矩阵法和等效界面法光学薄膜对反射率影响【含Matlab源码 2102期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[光学]基于matlab GUI矩阵法和等效界面法光学薄膜对反射率影响[含Matlab源码 2102期] 点击上面蓝色字体,直接付费下载, ...

  2. 【字符识别】基于matlab GUI模板匹配(区域生长法)字母+数字识别【含Matlab源码 1695期】

    一.手写大写字母识别技术简介 0 引言 在高校教学过程中,考试是最为普遍的一种教学评估.综合练习的教学手段,随着科技进步,考试阅卷的方式也发生了巨大的变革.传统的阅卷方式主要以人工阅卷为主, 存在效率 ...

  3. 【语音识别】基于matlab GUI动态时间规整算法(RTW)语音识别系统【含Matlab源码 341期】

    ⛄一.动态时间规整算法(RTW)语音识别 软件算法主要分为语音信号滤波去噪.预加重.分帧.端点检测.特征参数提取.模式匹配.算法的关键点和难点是特征参数提取和模式匹配.孤立词的语音识别应用程序也是基于 ...

  4. 【语音识别】基于matlab GUI MFCC+VAD端点检测智能语音门禁系统【含Matlab源码 451期】

    ⛄一.MFCC简介 1 引言 语音识别是一种模式识别, 就是让机器通过识别和理解过程把语音信号转变为相应的文本或命令的技术.语音识别技术主要包括特征提取技术.模式匹配准则及模型训练技术3个方面.目前一 ...

  5. 【毕业设计/图像识别系列】基于凸包检测和重心距离法的指尖检测和识别【含Python源码】

    Date: 2022.5.23 文章目录 前言 0.代码获取方式 1.参考 2.算法原理 3.实现效果图 4.Python程序(核心) 前言 在大学毕业设计的时候,课题要求实现<基于凸包检测和重 ...

  6. matlab svm 语音识别,【情感识别】基于matlab支持向量机(SVM)的语音情感识别【含Matlab源码 543期】...

    一.简介 支持向量机(Support Vector Machine)是Cortes和Vapnik于1995年首先提出的,它在解决小样本.非线性及高维模式识别中表现出许多特有的优势,并能够推广应用到函数 ...

  7. 【数字信号】基于matlab GUI多音双频(DTMF)拨号音频解码仿真系统【含Matlab源码 1084期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[数字信号]基于matlab GUI多音双频(DTMF)拨号音频解码仿真系统[含Matlab源码 1084期] 点击上面蓝色字体,直接付费 ...

  8. 【Matlab语音处理】声音信号频谱分析仪【含GUI源码 325期】

    一.代码运行视频(哔哩哔哩) [Matlab语音处理]声音信号频谱分析仪[含GUI源码 325期] 二.matlab版本及参考文献 1 matlab版本 2014a 2 参考文献 [1]韩纪庆,张磊, ...

  9. 【Matlab语音隐写】DCT+DWT音频数字水印嵌入提取【含GUI源码 836期】

    一.代码运行视频(哔哩哔哩) [Matlab语音隐写]DCT+DWT音频数字水印嵌入提取[含GUI源码 836期] 二.matlab版本及参考文献 1 matlab版本 2014a 2 参考文献 [1 ...

  10. 【Matlab语音隐写】DWT音频数字水印【含GUI源码 712期】

    一.代码运行视频(哔哩哔哩) [Matlab语音隐写]DWT音频数字水印[含GUI源码 712期] 二.matlab版本及参考文献 1 matlab版本 2014a 2 参考文献 [1]韩纪庆,张磊, ...

最新文章

  1. 《今日简史》读书笔记(未完待续)
  2. golang zerolog包使用
  3. Android开发返回拍摄的图片
  4. 实战SSM_O2O商铺_26【商品类别】批量新增商品类别从Dao到View层的开发
  5. (chap6 Http首部) 请求首部字段 Acceptx-Charsetx-Encodingxx-Language
  6. 利用Jmeter测试CSRF令牌验证的Web API
  7. 2019第十届蓝桥杯C/C++ A组省赛 —— 第三题: 最大降雨量
  8. CentOS7 通过wget下载文件到指定目录
  9. python带参数怎么运行_如何运行带参数的python脚本
  10. 怎么快速将Excel文件转为DBF格式文件
  11. hmcl手机版_hmcl启动器手机版下载-hmcl启动器官方正版下载v3.3.172-1y2y游戏
  12. 企业资源计划——ERP
  13. png转icon java_原创 | Java图片处理:ico格式转 PNG/JPG等格式
  14. 更新了pandas后,ix方法不能使用的替代办法
  15. r 选取从小到大的数据_R语言第二章数据处理⑥dplyr包(1)列选取
  16. Cat Snuke and a Voyage
  17. mvp的全称_MVP是什么意思?全称是什么?
  18. 你的领英账号总被封?实战总结避免和解决领英帐号被封的最强攻略
  19. wifi 联想小新_WiFi 6锐龙5一个都不能少 小新Pro 13详细配置曝光
  20. 【小知识】VScode格式化代码配置及插件

热门文章

  1. 2、Charm Bracelet( poj 3624)简单0-1背包
  2. PAAS平台7#215;24小时可用性应用设计
  3. 【转载】在回答WCF问题时,在我们的园子找到了一篇彪悍的文章
  4. const VS readonly
  5. 浅谈JavaScript函数重载
  6. 每日一句20191228
  7. 190923每日一句
  8. leapmotion和HTC和投影视角注意事项
  9. Atitit. Ati IDE 开发平台的第一版规划
  10. Atitit. BigConfirmTips 控件 大数据量提示确认控件的原理and总结O9