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 回表示 (過去 30 日間)
古いコメントを表示
採用された回答
Voss
2024 年 1 月 14 日
Maybe you meant to name the variable returned by getaudiodata "mySpeech" instead of "y":
% y = getaudiodata(recObj);
mySpeech = getaudiodata(recObj);
8 件のコメント
Voss
2024 年 1 月 15 日
For frequency content you can use fft or see this for some options: https://www.mathworks.com/matlabcentral/answers/160059-finding-the-frequency-value-of-a-signal
For magnitude you can use abs(mySpeech) or mean(abs(mySpeech)).
その他の回答 (1 件)
Binaya
2024 年 1 月 14 日
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
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Filter Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!