资源简介
matlab在GUI下,完成以下功能。读取本地音频文件、开始播放、暂停播放、停止播放,并且显示出语音信号的时域图和频谱图,
代码片段和文件信息
function varargout = yinpin(varargin)
% YINPIN MATLAB code for yinpin.fig
% YINPIN by itself creates a new YINPIN or raises the existing
% singleton*.
%
% H = YINPIN returns the handle to a new YINPIN or the handle to
% the existing singleton*.
%
% YINPIN(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in YINPIN.M with the given input arguments.
%
% YINPIN(‘Property‘‘Value‘...) creates a new YINPIN or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before yinpin_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to yinpin_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 yinpin
% Last Modified by GUIDE v2.5 25-Oct-2018 11:14:31
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @yinpin_OpeningFcn ...
‘gui_OutputFcn‘ @yinpin_OutputFcn ...
‘gui_LayoutFcn‘ [] ...
‘gui_Callback‘ []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State varargin{:});
else
gui_mainfcn(gui_State varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before yinpin is made visible.
function yinpin_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 yinpin (see VARARGIN)
% Choose default command line output for yinpin
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes yinpin wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = yinpin_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 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 structur
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 11172 2018-10-26 10:56 声音的选择、播放暂停\yinpin.asv
文件 12502 2018-10-26 10:17 声音的选择、播放暂停\yinpin.fig
文件 10699 2018-10-26 11:01 声音的选择、播放暂停\yinpin.m
目录 0 2018-10-26 11:14 声音的选择、播放暂停
----------- --------- ---------- ----- ----
34373 4
- 上一篇:连续投影算法SAP-matlab程序
- 下一篇:线路纵差保护仿真图
相关资源
- 线路纵差保护仿真图
- 连续投影算法SAP-matlab程序
- matlab灰色系统理论多变量模型-MGM(
- 基于牛拉法的电力系统潮流计算程序
- GRNN神经网络.zip
- PM,MUSIC四阶累积量等几种DOA估计算法
- 基于matlab的双向A*算法
- 基于MATLAB的指纹定位算法 NN KNN WK
- matlab的mpt工具箱含voronoi函数
- 风电场电力系统可靠性评估matlab程序
- 基于MATLAB的卷积演示系统gui
- matlab激光光束
- vrp+matlab+模拟退火
- 2016matlab破解版笔记本内置摄像头配置
- EWT经验小波matlab应用实现信号处理
- 基于MATLAB鲁棒控制工具箱的计算机硬
- 电机直接起动matlab仿真
- MATLAB——将数组文件写入到dat文件中
- MATLAB——创建变量对话输入对话框
- MATLAB——三角波的实现
- MATLAB——求指定区域上泊松方程的数
- MATLAB——求解特征方程
- MATLAB——求解矩形域内的波动方程
- MATLAB——积分运算
- MATLAB——二维插值
- MATLAB——创建标准正态分布随机矩阵
- MATLAB车牌识别系统设计+图片库
- 灰色神经网络的预测算法—订单需求
- 神经网络matlab实现
- Boid集群运动无捕食者、有捕食者俩种
评论
共有 条评论