How to store an audio voltage signal and recover it?

Click For Summary

Discussion Overview

The discussion revolves around the process of storing an audio voltage signal obtained from an oscilloscope in a .csv format and the subsequent recovery of that signal into an audio format suitable for playback through a loudspeaker. Participants explore various methods and tools for converting the stored data back into an audio signal.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes the need for an analog to digital converter to capture the audio signal and a digital to analog converter for playback, indicating that the process is complex.
  • Another participant mentions the availability of file format converters that can change .csv data into audio formats like WAV or MP3, suggesting that this could facilitate playback.
  • Some participants express confusion over the conversion process, noting that converting a .csv file to .mp3 resulted in a text-to-speech output rather than an audio waveform.
  • There is a discussion about the various formats that an oscilloscope can save data to, including binary and image formats, with participants considering which might be more suitable for their needs.
  • One participant shares their experience of using a specific online conversion tool and highlights the discrepancy between the expected audio output and the actual result, prompting questions about the conversion method used.
  • Another participant offers to assist with the conversion process but notes the lack of a sample file for testing.

Areas of Agreement / Disagreement

Participants express differing views on the effectiveness of various conversion methods and tools, with no consensus reached on the best approach to recover the audio signal from .csv format. Confusion persists regarding the nature of the output from the conversion process.

Contextual Notes

Participants mention limitations related to the conversion process, including potential misunderstandings of the conversion tools and the formats available for saving data from oscilloscopes. There is also uncertainty about the specific requirements for successful conversion and playback.

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
3K
Replies
20
Views
3K
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