Play an audio file with different volume

3 ビュー (過去 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 Center および File ExchangeAudio and Video Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by