I don't know what's the problem, can somebody help me, i don't know the exact length of myspeech/myrecord since it varies on how fast i read

1 visualización (últimos 30 días)

Respuesta aceptada

Voss
Voss el 14 de En. de 2024
Maybe you meant to name the variable returned by getaudiodata "mySpeech" instead of "y":
% y = getaudiodata(recObj);
mySpeech = getaudiodata(recObj);
  8 comentarios
Jane
Jane el 15 de En. de 2024
@Voss Thank u for answering, I already figure it out. I just want to ask, what can I add in my code if I want to know the frequency and magnitude of mySpeech. Like, the frequency and magnitude will be shown in the command window like this:

Iniciar sesión para comentar.

Más respuestas (1)

Binaya
Binaya el 14 de En. de 2024
Hi Jane,
It is my understanding that the variable passed in the "fft" function is not of correct datatype. "fft" functions expects datatypes of either double or single or int8 or int16 or int32 or uint8 or uint16 or uint32 or logical type.
Note - It is not clear what value mySpeech variable contains.
Please refer to the following MathWorks documentation for more information on the “fft” function:
I hope this helps!
Regards
Binaya

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by