当前位置:网站首页>批量读取文件夹下的全部语音文件
批量读取文件夹下的全部语音文件
2022-06-13 09:01:00 【qq-120】
如何批量读取文件夹下的全部语音文件:
% fileFolder1 = fullfile('path'); % 搜索目录
dirOutput1 = dir(fullfile(fileFolder1,'*.wav')); % 获取目录下所有 wav 格式音频文件信息
fileNames1 = {
dirOutput1.name}; % 获取音频文件的名字,放入数组fileNames中
filePath1 = {
dirOutput1.folder}; % 获取音频文件目录,存放入数组filePath中
如何读取语音增强文件:
[sp_noisy,fs] = audioread([fileFolder1 fileNames1{
ii}]);
如何写入语音增强文件:
audiowrite('sp_enhanced.wav',enhanced_speech,fs); % 将混合的语音写入
边栏推荐
- Completely uninstall PostgreSQL under Linux
- 20211108 微分跟踪器
- 【网络安全渗透】如果你还不懂CSRF?这一篇让你彻底掌握
- An error CV2 is reported when the picture is converted to grayscale cvtColor(img, cv2.COLOR_BGR2GRAY)
- 20211006 integral, differential and projection belong to linear transformation
- Brief description of software testing and software maintenance
- You don't know the usage of stringstream
- A very detailed blog about the implementation of bilinear interpolation by opencv
- Neo4j - CQL use
- Redis fuzzy query batch deletion
猜你喜欢

The Jenkins console does not output custom shell execution logs

How Simulink adds modules to the library browser
![[network security] webshell empowerment of new thinking of SQL injection](/img/03/b4a7ca0664675119b06e7246a49eb0.png)
[network security] webshell empowerment of new thinking of SQL injection

消息中间件

类的加载概述

20220606 Young's inequality for Matrices

Tutorial (5.0) 04 Fortint cloud services and scripts * fortiedr * Fortinet network security expert NSE 5

20220606 关于矩阵的Young不等式

【安全】零基础如何从0到1逆袭成为安全工程师

How to become a white hat hacker? I suggest you start from these stages
随机推荐
20211006 线性变换
MySQL startup error: innodb: operating system error number 13 in a file operation
「解读」华为云桌面说“流畅”的时候,究竟在说什么?
Subspace of 20211004 matrix
Knowledge points related to system architecture 3
Pytorch same structure different parameter name model loading weight
Top+jstack to analyze the causes of excessive CPU
教程篇(5.0) 03. 安全策略 * FortiEDR * Fortinet 网络安全专家 NSE 5
Brief description of port, domain communication port and domain service
银行理财产品有哪些?清算期是多长?
20211108 is transpose multiply a a a positive definite matrix? What are the necessary and sufficient conditions for a to be a positive definite matrix?
20211028 Stabilizability
Judgment of single exclamation point and double exclamation point in JS
JS format file unit display
output. Interpretation of topk() function
20211104 why are the traces of similar matrices the same
Neo4j環境搭建
pytorch统计模型的参数个数
JUC Unsafe
20220606 关于矩阵的Young不等式