一、语音处理简介

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. angularjs 缓存详解
  3. ubuntu20.04的xfce4下面安装百度输入法linux版本
  4. 以“术”彰“道”,用匠心做技术—对话阿里云MVP刘洪峰
  5. http://syy7.com/a/33.php,CVE-2020-7062
  6. Mac OS X上安装配置apache服务器
  7. 灰色关联度分析_数学建模|关联分析之术|灰度预测模型预备知识
  8. 在 Android* 平台上设置原生 OpenGL ES*
  9. 第 10 章 容器监控 - 080 - Weave Scope 容器地图
  10. oracle erp 用户手册,oracleerp用户手册-mrp
  11. ubuntu安装锐捷客户端
  12. 如何根据经纬度获取地址名称
  13. Intel早期的CPU和现在MCU相比,表现如何?
  14. 微信支付对账单的详细说明
  15. c语言程序0到1000的素数,C语言实现之100-1000以内素数的等差数列
  16. 考研复试问答(操作系统部分)
  17. 第一章 教育基础(03 教育目的与教育制度)
  18. 用java语言编写程序计算九宫图
  19. Snow Boots
  20. 利用基于注意力的神经网络绘制化学反应空间图谱

热门文章

  1. 效率:标记语言:markdown
  2. 去除ios手机端input输入框上方有阴影
  3. 完美解决eclipse编辑器中文字符过小问题
  4. ubuntu14在kDE界面下的关于eclipse提示框黑色背景的修改!
  5. 20191121每日一句
  6. Atitit 运维之道 v2 s09.docx Atitit 运维之道 目录 1. 概念 2 1.1. devops算是最低门槛了。什么运维平台,搞来搞去也就那些东西。无外乎cmdb、部署、监
  7. Atitit 高级人员的指标 参照发达国家(Developed Country)指标 目录 1. 普遍特征是较高的发展指数、人均生产总值、工程化水准和品质 [1]  。科学技术水准等指标 1 2.
  8. Atitit 遍历文件夹算法 autoit attilax总结
  9. Atitit.提升语言可读性原理与实践
  10. atitit.编程语言 类与对象的 扩展机制.doc