Convert wav file from 16 bit to 8 bit

20 ビュー (過去 30 日間)
Esraa abd Altoni
Esraa abd Altoni 2020 年 8 月 29 日
コメント済み: Esraa abd Altoni 2020 年 9 月 1 日
I read file wav in 16 bit How covert wav to 8 bit depth
  1 件のコメント
Peter O
Peter O 2020 年 8 月 29 日
編集済み: Peter O 2020 年 8 月 29 日
Be aware that an 8-bit audio signal will not sound great. There's a couple methods:
  1. Just Truncate. Ignore the least significant bits and chop them off.
  2. Apply Dithering. You still truncate the signal, but you also add some "random" noise at the base. For audio, this is a common operation because it helps reduce the perceived degradation from losing those bottom bits. There's a number of algorithms to do this, and they involve intelligently adding noise at the bottom bit levels of the signal. See the wikipedia article for more info: https://en.wikipedia.org/wiki/Dither

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

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 8 月 29 日
Specify the bit per sample option to the audiowrite function. For example
[y, Fs] = audioread('handel.wav');
audiowrite('handle2.wav', y, Fs, 'BitsPerSample', 8);
  1 件のコメント
Esraa abd Altoni
Esraa abd Altoni 2020 年 9 月 1 日
Thanks Ameer hamza

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by