当前位置:网站首页>Matlab uses audiorecorder and recordblocking to record sound, play to play sound, and audiobook to save sound
Matlab uses audiorecorder and recordblocking to record sound, play to play sound, and audiobook to save sound
2022-07-02 01:29:00 【Hu Gang 2016】
Because I use now matlab yes 2018a, So you can't use abandoned wavreord and wavplay, Only use audiorecorder.
Fs=44800;% Microphone sampling rate
nBits=16;% Quantization Bits
nChannel=1;% Number of recording channels , You can set 1 perhaps 2
time=5;% Time of recording audio , The unit is seconds
recObj = audiorecorder(Fs, nBits, nChannel);
disp('Start speaking.')
% Start recording sound
recordblocking(recObj, time);
disp('End of Recording.');
% Playback recorded data
play(recObj);
% Get recording data
myRecording = getaudiodata(recObj);
% Draw recording data waveform
plot(myRecording);
% Store voice signals
filename = 'audiorecorder_data_1.wav';
audiowrite(filename, myRecording, Fs);


You can see that the size of the file generated by the recording is 438KB
It's calculated by :Fs * nBits / 8 * time * nChannel / 1024
namely :44800 * 16 / 8 * 5 * 1 / 1024 = 437.5KB
No matter how many words you say when recording , Even if you don't say a word , The size of the generated files is so large .
边栏推荐
- GL Studio 5 installation and experience
- 970 golang realizes the communication between multithreaded server and client
- SAP ui5 beginner tutorial 20 - explanation of expression binding usage of SAP ui5
- ES6 new method of string
- Variables and constants of go language foundation
- 遊戲思考15:全區全服和分區分服的思考
- Principle of finding combinatorial number and template code
- 【疾病检测】基于BP神经网络实现肺癌检测系统含GUI界面
- 机器学习基本概念
- [image enhancement] vascular image enhancement based on frangi filter with matlab code
猜你喜欢

Learning note 3 -- Key Technologies of high-precision map (Part 1)

SAP ui5 beginner tutorial 20 - explanation of expression binding usage of SAP ui5

Raspberry pie 4B learning notes - IO communication (1-wire)

学习笔记24--多传感器后融合技术

技术大佬准备就绪,话题C位由你决定

遷移雲計算工作負載的四個基本策略

企业应该选择无服务器计算吗?

Minimize the error

matlab 实现语音信号重采样和归一化,并播放比对效果

Another programmer "deleted the library and ran away", deleted the code of the retail platform, and was sentenced to 10 months
随机推荐
A problem about function template specialization
Edge computing accelerates live video scenes: clearer, smoother, and more real-time
Day 13 of hcip (relevant contents of BGP agreement)
Part 29 supplement (XXIX) basis of ECMAScript
The pain of Xiao Sha
970 golang realizes the communication between multithreaded server and client
II Basic structure of radio energy transmission system
微信小程序中使用tabBar
Introduction to ffmpeg Lib
Global and Chinese markets of edge AI software 2022-2028: Research Report on technology, participants, trends, market size and share
Variables and constants of go language foundation
This is the report that leaders like! Learn dynamic visual charts, promotion and salary increase are indispensable
Fastadmin controls the length of fields in the table
NeRV: Neural Reflectance and Visibility Fields for Relighting and View Synthesis
I'll teach you to visit Amazon RDS for a year and build a MySQL cloud database (only 10 minutes, really fragrant)
Android high frequency network interview topic must know and be able to compare Android development environment
Based on Simulink and FlightGear, the dynamic control of multi rotor UAV in equilibrium is modeled and simulated
Look at the industrial Internet from a new perspective and seek the correct ways and methods of industrial Internet
基于SSM实现微博系统
2022年6月国产数据库大事记