Convert a mp3 or wav file into text file

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
rafallani
Posts: 2
Joined: Sat Jan 04, 2020 1:33 pm
Operating System: Windows 10

Convert a mp3 or wav file into text file

Post by rafallani » Mon Jan 06, 2020 10:23 pm

Hi, I´d like to know how to convert a mp3 or wav file into text file having dB x time or intensity x time.
Thanks,
Renato

DVDdoug
Forum Crew
Posts: 9588
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: Convert a mp3 or wav file into text file

Post by DVDdoug » Mon Jan 06, 2020 10:55 pm

Tools -> Sample Data Export

It makes a HUGE file when you replace raw binary numbers with text and there might be a limit to the number of samples you can export, and with 44,100 samples per second (or whatever sample rate) it's a LOT of data and you usually can't visualize or comprehend what you're looking at.

steve
Site Admin
Posts: 82487
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Convert a mp3 or wav file into text file

Post by steve » Tue Jan 07, 2020 12:33 am

rafallani wrote:
Mon Jan 06, 2020 10:23 pm
I´d like to know how to convert a mp3 or wav file into text file
You could feed it into a Hex Editor
rafallani wrote:
Mon Jan 06, 2020 10:23 pm
having dB x time or intensity x time.
A Hex editor won't give you that, but it does give you a text representation of the file data.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

roadsterUK
Posts: 188
Joined: Sat Apr 15, 2017 8:00 pm
Operating System: Windows 10

Re: Convert a mp3 or wav file into text file

Post by roadsterUK » Tue Jan 07, 2020 9:17 am

This sounds like an exam question! Without knowing how you intend to use the data its difficult to suggest anything practical. Do you want to investigate dynamic range? The loudness of an individual sample of a PCM file doesn't have much meaning in terms of overall energy level but anything is possible for the authors of the Audacity software ( not me I hasten to add) if you explain exactly what you need.

rafallani
Posts: 2
Joined: Sat Jan 04, 2020 1:33 pm
Operating System: Windows 10

Re: Convert a mp3 or wav file into text file

Post by rafallani » Wed Jan 08, 2020 9:36 pm

Well, I´d like to see some FFT resources results.

DVDdoug
Forum Crew
Posts: 9588
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: Convert a mp3 or wav file into text file

Post by DVDdoug » Thu Jan 09, 2020 12:05 am

Well, I´d like to see some FFT resources results.
OK, how are you going to do that? Of course, FFT doesn't work with "text". ;)

If you are using a spread sheet I suppose you'll have to import the numbers as text. In that case Sample Data Export should work if you can export enough data and if your spreadsheet can hold the data.

If you are a programmer you can easily directly read the data from the WAV file. Or, I believe MATLAB (and probably the free MATLAB clones) can read a WAV file.

Audacity has Plot Spectrum and Spectrograph views to see the "FFT data" graphically/visually.

steve
Site Admin
Posts: 82487
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Convert a mp3 or wav file into text file

Post by steve » Wed Jul 28, 2021 10:49 am

juuilg wrote:
Wed Jul 28, 2021 10:25 am
You can easily convert different audio and video formats, using speech to text converter [Advert removed by moderator]. It takes only 10 minutes to transcribe 1 hour of audio or video file.
This does not answer the original question.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply