generating audio file through m.script

13 visualizzazioni (ultimi 30 giorni)
Deepa
Deepa il 27 Ago 2018
Commentato: Deepa il 28 Ago 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

Risposta accettata

madhan ravi
madhan ravi il 27 Ago 2018
Modificato: madhan ravi il 27 Ago 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 Commenti
Deepa
Deepa il 27 Ago 2018
what is the variable here to store the captured speech ?
Deepa
Deepa il 28 Ago 2018
how to store the speech here ?

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Code Generation and Deployment in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by