Author Topic: Extracting text files from audacity OR sonic visualiser  (Read 5160 times)

longgone8

  • Newbie
  • *
  • Posts: 2
    • View Profile
Extracting text files from audacity OR sonic visualiser
« on: January 26, 2010, 19:54:52 »
Hello, all!

        I am attempting to extract data regarding the waveform of audio files in a .txt format. I saw bobonofx's post regarding doing this with the data for audacity:

$ cat test.txt
1.223 2.1543 sourceA
2.542 14.133 sourceB
3.161 0.041 sourceC
$ cat rewrite.pl
while (<>)
{
    my ($a,$b,$c) = split /\s+/;
    $b = $a + $b;
    print join " ", ($a,$b,$c), "\n";
}
$ perl rewrite.pl test.txt
1.223 3.3773 sourceA
2.542 16.675 sourceB
3.161 3.202 sourceC
$

THis information is, specifically, for use with 'perl' language and sonic visualiser. Can anyone give me a step by step instruction about how to extract this waveform data to a .txt format? I have virtually no knowledge of computer programming.

cannam

  • Administrator
  • Sr. Member
  • *****
  • Posts: 273
    • View Profile
Re: Extracting text files from audacity OR sonic visualiser
« Reply #1 on: January 28, 2010, 09:35:33 »
Hi -- do I understand that you want to convert the actual audio waveform itself to text?

The example you were quoting was talking about converting from Sonic Visualiser's comma-separated export format for annotations data, not anything to do with the audio data.  There is no facility in SV for exporting the audio data in any sort of text format, I'm afraid.  I can't think offhand of any program that does this... the output would be incredibly verbose.


Chris