思想是:按比例扩大或缩放音频区域
function [voice_change]=change_bit(voice,before_bit,later_bit)
[m,n]=size(voice);
voice_change=voice;
for i=1:m
for j=1:n
voice_change(i,j)=floor((voice(i,j)*2^(before_bit))/(2^(before_bit-later_bit)))*2^(-later_bit);
%这里只针对是音频,因为音频是在-1,1波动
end
end
end