How to generate audio tone with specific parameters?

11 ビュー (過去 30 日間)
Talha Muhammad
Talha Muhammad 2023 年 3 月 2 日
回答済み: Sivapriya Srinivasan 2023 年 3 月 2 日
Hi, I am trying to generate different sound tonals in one audio ranging from freq 500 - 1500 Hz, with signal intensity peak of atleast 112dB and acceleration duration (from ambient noise to peak intensity) of 10 ms. Kindly help,what is the best way to go.

回答 (1 件)

Sivapriya Srinivasan
Sivapriya Srinivasan 2023 年 3 月 2 日
To generate different sound tones in one audio ranging with specified signal intensity peak and acceleration duration.
I understand that you are trying to generate audio with a particular frequency range and acceleration duration.
We can make use of MATLAB chirp function for this case. It generates a frequency modulated signal that starts at a specified frequency and sweeps to another specified frequency over a specified time interval. It is important to note that amplitude should be in ‘Pa’ before using it in chirp function. To play the sound tone we use the sound function which plays audio at specified sample rate. For additional information regarding the same, refer to this documentation: https://in.mathworks.com/help/signal/ref/chirp.html

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by