码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • 【语音识别】基于MFCC和MEL倒频系数实现声纹识别附matlab代码


    1 内容介绍

    提出了以Mel频率倒谱系数(Mel Frequency Cepstrum Coefficients,MFCC)和MEL倒频系数作为特征提取技术,以KNN作为分类器的语音识别方法,实验结果表明,对于容易混淆的英文单词,该方法语音识别准确率较高.​

    2 部分代码

    function f=enframe(x,win,inc) 

    %ENFRAME split signal up into (overlapping) frames: one per row. F=(X,WIN,INC) 

    % 

    % F = ENFRAME(X,LEN) splits the vector X up into 

    % frames. Each frame is of length LEN and occupies 

    % one row of the output matrix. The last few frames of X 

    % will be ignored if its length is not divisible by LEN. 

    % It is an error if X is shorter than LEN. 

    % 

    % F = ENFRAME(X,LEN,INC) has frames beginning at increments of INC 

    % The centre of frame I is X((I-1)*INC+(LEN+1)/2) for I=1,2,... 

    % The number of frames is fix((length(X)-LEN+INC)/INC) 

    % 

    % F = ENFRAME(X,WINDOW) or ENFRAME(X,WINDOW,INC) multiplies 

    % each frame by WINDOW(:) 

    %    Copyright (C) Mike Brookes 1997 

    %      Version: $Id: enframe.m,v 1.3 2005/02/21 15:22:12 dmb Exp $ 

    % 

    %   VOICEBOX is a MATLAB toolbox for speech processing. 

    %   Home page: http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html 

    % 

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 

    %   This program is free software; you can redistribute it and/or modify 

    %   it under the terms of the GNU General Public License as published by 

    %   the Free Software Foundation; either version 2 of the License, or 

    %   (at your option) any later version. 

    % 

    %   This program is distributed in the hope that it will be useful, 

    %   but WITHOUT ANY WARRANTY; without even the implied warranty of 

    %   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 

    %   GNU General Public License for more details. 

    % 

    %   You can obtain a copy of the GNU General Public License from 

    %   ftp://prep.ai.mit.edu/pub/gnu/COPYING-2.0 or by writing to 

    %   Free Software Foundation, Inc.,675 Mass Ave, Cambridge, MA 02139, USA. 

    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 

    nx=length(x); 

    nwin=length(win); 

    if (nwin == 1) 

       len = win; 

    else 

       len = nwin; 

    end 

    if (nargin < 3) 

       inc = len; 

    end 

    nf = fix((nx-len+inc)/inc); 

    f=zeros(nf,len); 

    indf= inc*(0:(nf-1)).'; 

    inds = (1:len); 

    f(:) = x(indf(:,ones(1,len))+inds(ones(nf,1),:)); 

    if (nwin > 1) 

        w = win(:)'; 

        f = f .* w(ones(nf,1),:); 

    end 

    3 运行结果

    4 参考文献

    [1]李玲俐. 一种基于MFCC和SVM的语音识别方法[J]. 软件导刊, 2012, 11(3):2.

    博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机、雷达通信、无线传感器等多种领域的Matlab仿真,相关matlab代码问题可私信交流。

    部分理论引用网络文献,若有侵权联系博主删除。

  • 相关阅读:
    它来了,xhadmin多应用Saas框架正式发布!
    面试经典150题——求根节点到叶节点数字之和
    Windows ssh 免密登录&登录后执行多条命令&本地自动上传文件一键部署
    【JVM--StringTable字符串常量池】
    300dpi等于多少分辨率?如何给图片修改分辨率大小?
    Photoshop插件-charIDToTypeID-PIStringTerminology.h-不同值的解释及参考-脚本开发-PS插件
    【Vue项目搭建】修改【若依框架】的侧边栏、导航栏、面包屑样式、修改全局页面样式
    微服务如何改变软件开发:实战经验与最佳实践分享
    编码文字使用整数xyz 三个坐标 并使用
    Android虚拟机与ClassLoader类加载机制
  • 原文地址:https://blog.csdn.net/matlab_dingdang/article/details/126732955
  • 最新文章
  • 【JVM】编译执行与解释执行的区别是什么?JVM 使用哪种方式?
    用 Hashids 优雅解决 C 端自增 ID 暴露问题
    V8引擎 精品漫游指南--Ignition篇(上) 指令 栈帧 槽位 调用约定 内存布局 基础内容
    LLVM Pass快速入门(四):代码插桩
    milkup:桌面端 markdown AI续写和即时渲染
    基于项目工程构建SBOM(软件物料清单)的研究
    鸿蒙应用开发UI基础第二节:鸿蒙应用程序框架核心解析与实操
    .NET 中如何快速实现 List 集合去重?
    扣子Coze实战:从0到1打造抖音+小红书热点监控智能体
    浅谈数据访问层
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号