How to store an audio voltage signal and recover it?

AI Thread Summary
To store an audio voltage signal, it can be saved as a .csv file using an oscilloscope, but recovering it as an audio signal requires a digital to analog converter. Converting .csv files to audio formats like WAV or MP3 can be done using various online converters, but issues may arise if the conversion is not done correctly, leading to text-to-speech outputs instead of actual sound waveforms. Users should ensure they are selecting the correct options during conversion to avoid these problems. Additionally, .csv files can also be saved in binary or image formats, which may offer alternative methods for data handling. Proper attention to the conversion process is crucial for successful audio recovery.
Tspirit
Messages
50
Reaction score
6
I am doing an experiment in which an audio voltage signal can be obtained and saved as .csv (or other formats) by oscilloscope. In a second step I want to recover it into audio voltage signal and input it into a loudspeaker. Then how can I do in the second step? Or how to transverse a .csv (or other formats) data into voltage signal again?
 
Engineering news on Phys.org
To "capture" a signal, you must have an analog to digital converter and a bunch of other stuff). To convert it back to analog you will need a digital to analog converter (and a bunch of other stuff). It's pretty complicated. In saying "an audio voltage signal can be obtained and saved as .csv" you are condensing a LOT of stuff.
 
  • Like
Likes Tspirit
There are many file format converters that can change your data from CSV format to WAV or MP3 or others. Then you can use any music player on the converted file.

Here is one such program. http://www.online-convert.com/file-type
 
  • Like
Likes Tspirit
anorlunda said:
There are many file format converters that can change your data from CSV format to WAV or MP3
Cool. I didn't know that.
 
anorlunda said:
There are many file format converters that can change your data from CSV format to WAV or MP3 or others. Then you can use any music player on the converted file.

Here is one such program. http://www.online-convert.com/file-type
I have converted a .csv document into .mp3, however, it just plays the name of every number in the .csv. For example, a number "1000" will be heard in a voice of "one hundred". It can't identify which is the time and which is the amplitude of the waveform.
 
Tspirit said:
an audio voltage signal can be obtained and saved as .csv (or other formats) by oscilloscope.
What are the other formats it can save to? One of them may be more amenable.
 
NascentOxygen said:
What are the other formats it can save to? One of them may be more amenable.
It can also save to binary format (.bin), or some figure formats such as .bmp, .png. I will try later.
 
Tspirit said:
I have converted a .csv document into .mp3, however, it just plays the name of every number in the .csv. For example, a number "1000" will be heard in a voice of "one hundred". It can't identify which is the time and which is the amplitude of the waveform.

That sounds very strange. How exactly did you convert it?

Edit: An how exactly did you play it to listen?
 
anorlunda said:
That sounds very strange. How exactly did you convert it?

Edit: An how exactly did you play it to listen?
I uploaded my csv file into the website "http://audio.online-convert.com/convert-to-mp3", converted it into mp3 online and downloaded the mp3 file and played it with windows media. By comparing the contents of sound with the original csv file (opened by office Excel), I found they are the same. I mean the voice is not a sound wave varying with the time (I saved a sound wave into a csv file using oscilloscope), but the data itself.
 
  • #10
Tspirit said:
I uploaded my csv file into the website "http://audio.online-convert.com/convert-to-mp3", converted it into mp3 online and downloaded the mp3 file and played it with windows media. By comparing the contents of sound with the original csv file (opened by office Excel), I found they are the same. I mean the voice is not a sound wave varying with the time (I saved a sound wave into a csv file using oscilloscope), but the data itself.

It seems that you got a text-to-speech conversion instead of a file format conversion. You should try again, paying close attention to options and the small print on the Web page. Or try another conversion site such as the one I linked in #5.
 
  • #11
anorlunda said:
It seems that you got a text-to-speech conversion instead of a file format conversion. You should try again, paying close attention to options and the small print on the Web page. Or try another conversion site such as the one I linked in #5.
Have you ever succeeded in converting a csv file into an audio file with that website?
 
  • #12
Tspirit said:
Have you ever succeeded in converting a csv file into an audio file with that website?
I am willing to help you, but I have no sample file. I'll send you my email address by personal message, lookin your INBOX on PF.
 
  • #13
How to store ? the better is copy to computer , as for recovery tool , it depends on your version, different version for different operating mode or tools
 
  • #14
Tspirit said:
I uploaded my csv file into the website "http://www.android-rescuer.com/recover-data-from-android-internal-memory.html", converted it into mp3 online and downloaded the mp3 file and played it with windows media. By comparing the contents of sound with the original csv file (opened by office Excel), I found they are the same. I mean the voice is not a sound wave varying with the time (I saved a sound wave into a csv file using oscilloscope), but the data itself.
That i have been search on Google, it it works with Android ,
 
Back
Top