0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Matlabのsoundscで音がスロー再生になってしまったとき

Posted at

問題

Audioreadで読み込んだオーディオファイルが異常に遅く再生される問題。
なぜ…

problem.m
[x1,fs] = audioread('sample.wav');

soundsc(x1);

解決法

Soundsc()に「サンプルレートfsで再生する」ためのパラメータを書く必要があった。
以下のように書き換える。

answer.m
[x1,fs] = audioread('sample.wav');

soundsc(x1,fs);

おわりに

デフォルトでは、違うサンプルレートみたい。
そりゃうまく再生されないわ…。
パラメータがめちゃくちゃ重要だと分かった。

MATLABのQiita少ないので詰まったときにとことん詰まってしまうのが難点。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?