MATLAB Answers

0

What does sampling rate in audiowrite function signify?

Asked by Angel Chavira on 2 Jul 2019
Latest activity Answered by Geoff Hayes
on 2 Jul 2019
One of the arguments for function audiowrite is the sampling rate fs. If my input data is a column vector, does fs signify how many data points will be represented in each second of the output audio file?
For example, if my column vector is of length 1,000,000 and fs is set to 1,000, will the audio file be 1,000 second long?
I want to save the entegrity of the input vector within the audio file but fear that the sampling frequency will compramise it.

  0 Comments

Sign in to comment.

1 Answer

Answer by Geoff Hayes
on 2 Jul 2019
 Accepted Answer

Angel - yes, the sample rate is the number of samples per second. So if fs is 1000, then your audio file will be 1000 seconds long (as you stated above).

  0 Comments

Sign in to comment.