Play an audio file with different volume

5 visualizaciones (últimos 30 días)
Abdulaziz Alamri
Abdulaziz Alamri el 4 de Jul. de 2020
Respondida: Star Strider el 4 de Jul. de 2020
How i can write program to play an audio file with different volumes such that
  • double the volume
  • unchanged the volume
  • half the volume

Respuestas (1)

Star Strider
Star Strider el 4 de Jul. de 2020
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.)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by