generating audio file through m.script

13 vues (au cours des 30 derniers jours)
Deepa
Deepa le 27 Août 2018
Commenté : Deepa le 28 Août 2018
hi, i need an audiofile to generate any speech for particular frequency and for particular time. can u suggest me how to generate audiofile using m-file.... ?
Thanks Deepa.R

Réponse acceptée

madhan ravi
madhan ravi le 27 Août 2018
Modifié(e) : madhan ravi le 27 Août 2018
Try the below code:
recorder = audiorecorder;
disp('Start speaking.')
recorder.record(100); %100 refers to the seconds
while recorder.isrecording()
pause(0.1);
plot(recorder.getaudiodata());
drawnow();
end
disp('End of Recording.');
  2 commentaires
Deepa
Deepa le 27 Août 2018
what is the variable here to store the captured speech ?
Deepa
Deepa le 28 Août 2018
how to store the speech here ?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Code Generation and Deployment dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by