LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-28-2005, 12:23 AM   #1
knockout_artist
Member
 
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324

Rep: Reputation: 33
Voice Record in Binary format


Good Day,
Can some one please tell me how do I record my own/or any voice .

I want those file to be in binary(digits) format so I can display them using gunplot plus I can use signal processing on that data.
I have tried arecord but when i try to see, with ##cat filename, It shows me some kind of pattern of boxes, not simple
digits.
Thank You.
 
Old 12-28-2005, 12:35 AM   #2
MACSRULE
Member
 
Registered: Apr 2004
Distribution: Gentoo 2004.1
Posts: 56

Rep: Reputation: 15
Quote:
Originally Posted by knockout_artist
Good Day,
Can some one please tell me how do I record my own/or any voice .

I want those file to be in binary(digits) format so I can display them using gunplot plus I can use signal processing on that data.
I have tried arecord but when i try to see, with ##cat filename, It shows me some kind of pattern of boxes, not simple
digits.
Thank You.
cat is meant for ascii text, and voice recordings are not stored as ascii. a hex editor would better suit your needs
 
Old 12-28-2005, 01:12 AM   #3
knockout_artist
Member
 
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324

Original Poster
Rep: Reputation: 33
Hi,
I used hex editor but it shows me my recorded file in hex format.
Is there any thing else i can use to see it in like binary or or float point format so I can use it with my c program?
 
Old 12-28-2005, 05:29 AM   #4
slantoflight
Member
 
Registered: Aug 2005
Distribution: Smoothwall
Posts: 283
Blog Entries: 3

Rep: Reputation: 35
Do you you just want to read/output pcm wav files? Becuase everything you record IS in binary format. Try audacity.

Are you a C programmmer? Reading pcm files is relatively simple. Just grab the header. Paramitize into an array. Check the depth. Check the rate. And chunk the samples, just dump the bytes where ever you like.
 
Old 12-28-2005, 11:29 AM   #5
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 12-28-2005, 02:27 PM   #6
knockout_artist
Member
 
Registered: Sep 2005
Distribution: fedora core 9
Posts: 324

Original Poster
Rep: Reputation: 33
Thank you XavierP.

slantoflight Iam just doing signal processing excercise.
I wanted a data file which I could use to draw plot with gnuplot.

I tried "arecord" to record my voice. But when I opened the recorded file with "cat" or "hex editor", that format is not use able for a c program.
For example I can use some thing like this
float H[]={-1.251698E-05,
1.79918E-06,
7.514107E-06, -3.483858E-06,8.311754E-06, 6.217885E-06,-4.077218E-05,
3.018406E-05, -1.053572E-05,-3.448946E-05,

3.227902E-06,
-4.262914E-06,
4.590139E-06,
-2.087165E-05,}
Can I get that format some how? or any thing close?

Thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't record voice through mic irvken Linux - Software 2 04-28-2005 01:48 AM
How to format DNS PTR record ? pcom Linux - Networking 2 07-01-2004 11:59 PM
How to record streaming wmv/asf format? samxiao Linux - Software 0 03-13-2004 03:50 AM
Misc Binary Format Handler xcon Linux - General 3 04-01-2003 07:52 AM
kernel binary format support rch Linux - General 0 03-05-2003 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration