matlab problem
%% Record Your Key Word 5 different times % Clear Workspace clear all; close all; clc; % Sampling frequency fs = 8000; % Number of voice records num_recordings=5; % Loop for Each Voice record for idx=1:num_recordings % Set up recording object my_sound = audiorecorder(fs,16,1); fprintf('Recording %d among %d attempts \n',idx,num_recordings) % pause for user input disp('Press Any Key to Start Recording ....') pause % Record for 1.5 seconds recordblocking(my_sound, 1.5); % Output the acquired data into workspace as double precision array, x trigger_word= getaudiodata(my_sound, 'double'); % play recorded sound soundsc(trigger_word,fs); pause(3); % Visualize the Trigger word using Plot % Apply word to envelope function using voice_to_envelope function() % Visualize the envelope using plot end % Make sure the size of the envelopes is 12000 x 5 % Save the envelopes in a MAT file named training_words