1 2 3 4 5 6 7 | %------------------生成声音序列---------------------------- sound =[p1,z,p6,z,p0,z,p1,z,p0,z,p1,z,p9,z,p9,z,p0,z,p4,z,p4,z,]; sound = sound / max ( abs ( sound )); %归一化声音序列 figure (1); plot ( sound ); %写出音频 audiowrite( 'my_phone_number_sound_test.wav' , sound ,8000); |