How to convert sine wave form in to audio?

915 Views Asked by At

I have raw data:

x-values y-values

x being the time domain. Sample rate is 8000 Hz.

I have plotted them in a sine wave, but can't seem to find any way to convert that into audio form.

Can someone guide through this process?

1

There are 1 best solutions below

2
On BEST ANSWER

If x is the time domain, you don't really need it since you have Fs = 8000 Hz.

y is your data, you can try to use audiowrite to convert it to an audiofile.

We don't know exactly how your data is encoded, so you will probably need to do some work.

For example, it could be

audiowrite('audioFile.wav`, y, Fs);