How to store an audio voltage signal and recover it?

Click For Summary
SUMMARY

This discussion focuses on the process of capturing an audio voltage signal using an oscilloscope, saving it as a .csv file, and the subsequent challenge of converting that data back into an audio voltage signal for playback. Participants highlight the necessity of using an Analog-to-Digital Converter (ADC) for capturing the signal and a Digital-to-Analog Converter (DAC) for playback. They also discuss various file format converters, specifically mentioning the use of online-convert.com for converting .csv files to audio formats like MP3, while noting the pitfalls of text-to-speech conversions that misinterpret the data.

PREREQUISITES
  • Understanding of Analog-to-Digital Converters (ADC)
  • Familiarity with Digital-to-Analog Converters (DAC)
  • Knowledge of audio file formats, specifically .csv, .mp3, and .wav
  • Basic skills in using online file conversion tools
NEXT STEPS
  • Research how to properly configure an Analog-to-Digital Converter (ADC) for audio signal capture
  • Learn about Digital-to-Analog Converter (DAC) options for audio playback
  • Explore advanced audio file format converters that maintain data integrity
  • Investigate software tools for visualizing and analyzing audio signals from .csv files
USEFUL FOR

Audio engineers, electronics hobbyists, and anyone involved in audio signal processing who seeks to understand the conversion between digital data and analog audio signals.

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   Reactions: 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   Reactions: 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 ,
 

Similar threads

Replies
13
Views
3K
Replies
3
Views
2K
Replies
20
Views
2K
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 28 ·
Replies
28
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K