フィルターのクリア

why separation audio channel always have result 16 bits per sample?

2 ビュー (過去 30 日間)
Sisi Misi
Sisi Misi 2021 年 9 月 6 日
コメント済み: Mathieu NOE 2021 年 9 月 7 日
Hi everyone
I wanna ask you about audio separation
Why separation audio channel always have result 16 bits per sample?
This happens when I do a channel split from 2 channels to 1 channel the first audio has 24 bit-sample and 2 channel
The second audio has 8 bit-sample and 2 channel
when converted to 1 channel, the audio is changed to 16 bits per sample
Therefore, how do we maintain the sample bits?
For example, the original audio is 24 bits per sample with 2 channels, the audio is separated into 24 bits per sample and 1 channel
I use this code:
thank you
[y,Fs]=audioread('water.flac');
size(y)
% single_channel_from_y = y(:,1);
x=y(:,1)
size(x)
plot(y)
plot(x)
audiowrite('onechannel(24).wav',x,Fs);
% sound(x)
  1 件のコメント
Mathieu NOE
Mathieu NOE 2021 年 9 月 7 日
Please check this , audiowrite by default will generate 16 bits audio if you export in wav format

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

回答 (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