[raspberry-vi] Re: Ok, next issue trying to record audio on pi

  • From: Jacob Kruger <jacob@xxxxxxxxxxxxx>
  • To: "raspberry-vi@xxxxxxxxxxxxx" <raspberry-vi@xxxxxxxxxxxxx>
  • Date: Tue, 22 Nov 2016 10:20:59 +0200

Ok, got the recording side of it sorted.


While the internal audio device wasn't showing up under list of 
capture/input devices returned by arecord -l command, I did still need 
to specify to make use of hardware device 1 when then initiating the 
command to initiate recording:

arecord -D plughw:1 -f dat testing.wav


That's because the default hardware device, with ID of 0 is the internal 
audio device, that only offers audio output, and, not input/capture.


Only other minor thing now want to try change/sort out, for the moment, 
is that it seems like my python script is being launched under root, 
and, not the pi auto-login user, which affects permissions to then 
manipulate output files, but, that's not a major issue for now.


Stay well


Jacob Kruger
Blind Biker
Skype: BlindZA
"Resistance is futile, but, acceptance is versatile..."

On 2016-11-19 9:00 AM, Jacob Kruger wrote:

Firstly, got it sorted to auto-login, and, run my python code on
startup, but, there are two minor issues.


Firstly, with just the USB numpad plugged in, I seem to need to hold in
numlock key while hitting a number key - suppose that makes sense since
speakUp is using numpad for it's navigation, etc.


Secondly, arecord seems to be unable to open files for output - error
along the lines of:

main:722: audio open error: No such file or directory


Tried this from command line myself, in directories like the /home/pi,
under the /home/pi/Music directory, and, one I created myself
/home/pi/recordings.


I also did the sudo chown pi recordings command, and, if I run ls-l, it
seems to show up as having same permissions as other directories, etc.,
but anyway.


Now, I found a couple of forum posts about similar errors, but, with no
answers/solutions as such.


Almost guessing that it's not a problem with the recording output file,
but, maybe something to do with something like a temporary streaming
file arecord is trying to make use of in background, or something.


Anyway, any thoughts, or are there any other command line, simple
recording bits of software could try using instead?


TIA


Jacob Kruger

Blind Biker
Skype: BlindZA
"Resistance is futile, but, acceptance is versatile..."

===========================================================
The raspberry-vi mailing list
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of 
the Foundation.

Mike Ray, list creator, January 2013




=========================================================== 
The raspberry-vi mailing list 
Archives: //www.freelists.org/archives/raspberry-vi
Administrative contact: <mike.ray@xxxxxxxxxxxxxx>
-----------------------------------------------------------
Raspberry Pi and the Raspberry Pi logo are trademarks of the Raspberry Pi 
Foundation.

This list is not affiliated to the Raspberry Pi Foundation and the views and 
attitudes expressed by the subscribers to this list do not reflect those of the 
Foundation.

Mike Ray, list creator, January 2013

Other related posts: