Everytime I use the audiowrite and audioread function, it adds some noise to my original signal. Does this happen just to me?
3 views (last 30 days)
Show older comments
Visweshwar Srinivasan
on 8 Jun 2018
Answered: Walter Roberson
on 8 Jun 2018
Frequency response plot of the signal before audio writing:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191127/image.png)
Frequency response plot of the signal after audio writing:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191128/image.png)
PS : The frequencies peaks of the signal are 20, 20.5 and 21KHz respectively.
3 Comments
Accepted Answer
Walter Roberson
on 8 Jun 2018
The data is getting clipped on output because audiowrite() clips double values that are outside the range -1 to +1
0 Comments
More Answers (0)
See Also
Categories
Find more on Audio I/O and Waveform Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!