hi.... i need to upload a speech singal into a images through the frequency of the speech signal.....how can do it

조회 수: 1 (최근 30일)
clc;
clear all;
close all;
I=imread('crazy.jpg');
figure,imshow(I),title('original image');
[x y z]=size(I);
load handel.mat
filename = 'handel.wav';
Y1 = y; Fs1 = Fs;
audiowrite(filename,y,Fs);
clear y Fs
% Read the data back into MATLAB using audioread.
[y,Fs] = audioread('handel.wav');
% Play the audio.
sound(y,Fs);
% signal spectrum of the audio signal
[x Fs]=audioread('handel.wav');
x=x(:,1);
N=length(x);
t=(0:N-1)/Fs;
figure(1);
plot(t,x,'r');
xlim([ 0 max(t)])
ylim([-1.1*max(abs(x)) 1.1*max(abs(x))])
grid on
set(gca,'Fontname','Times new roman','Fontsize',14)
xlabel('time,s')
ylabel('amplitude')
title(' the amplitude signal with the dimension')
figure(2)
spectrogram(x,1024, 3/4*1024 , [],Fs,'yaxis');
box on
set(gca,'Fontname','Times new roman','Fontsize',14)
ylabel('Frequency,Hz')
xlabel('Time,s')
title('the frequency value of the spech signal')
h=colorbar
set(h,'fontname','times new roman','Fontsize',14);
ylabel=('Magnitude,db')
  댓글 수: 2
Rik
Rik 2017년 11월 7일
Have a read here and here. It will greatly improve your chances of getting an answer.
Your code is not readable and I can't find what your actual question is. Please edit your question.
Rik
Rik 2018년 3월 3일
Did you read either link before double-posting a comment in the answer field?

댓글을 달려면 로그인하십시오.

답변 (1개)

pooja chandrabose
pooja chandrabose 2018년 3월 3일
Hi I need the help I want to know how to make cellular automata under Moore model in 124 rule ...Kindly help me....

카테고리

Help CenterFile Exchange에서 Audio Processing Algorithm Design에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by