フィルターのクリア

How to read raw speech signal without header in MATLAB ?

5 ビュー (過去 30 日間)
Dipesh  Mudatkar
Dipesh Mudatkar 2017 年 3 月 6 日
コメント済み: Dipesh Mudatkar 2017 年 3 月 6 日
I tried this code
fid = fopen('File_name','r');
y = fread(fid,inf,'short');
y = doubel(y);
sound(y)
but sound is not same as recorded.
  2 件のコメント
Stephen23
Stephen23 2017 年 3 月 6 日
編集済み: Stephen23 2017 年 3 月 6 日
Where is the fclose ? If you use fopen then you need to use fclose.
Dipesh  Mudatkar
Dipesh Mudatkar 2017 年 3 月 6 日
Yes it's necessary, but it will work without any problem.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2017 年 3 月 6 日
Try these two variations and see which one works for you:
fid = fopen('File_name','r');
ybe = fread(fid, inf, 'short=>double', 'ieee-be');
fclose(fid)
disp('Big Ended')
sound(ybe)
pause(5)
fid = fopen('File_name','r');
yle = fread(fid, inf, 'short=>double', 'ieee-le');
fclose(fid)
disp('Little Ended')
sound(yle)
  6 件のコメント
Walter Roberson
Walter Roberson 2017 年 3 月 6 日
I trust audioplayer() more than I would trust sound()
Dipesh  Mudatkar
Dipesh Mudatkar 2017 年 3 月 6 日
Thank you, Finally, the problem got solved with audioplayer().

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by