Play an audio file with different volume

조회 수: 5 (최근 30일)
Abdulaziz Alamri
Abdulaziz Alamri 2020년 7월 4일
답변: Star Strider 2020년 7월 4일
How i can write program to play an audio file with different volumes such that
  • double the volume
  • unchanged the volume
  • half the volume

답변 (1개)

Star Strider
Star Strider 2020년 7월 4일
Use the sound function with the appropriate multiplicaiton factor. (Note, there is no guarantee that the result will not be clipped or otherwise distorted.)
Also see Play Audio for other options. (I am not certain if play automatically scales the output. I know that sound does not.)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by