Peppermint OS Community Forum

Support => Hardware => Topic started by: rmcellig on July 06, 2016, 09:42:32 am

Title: Issues using Edirol UA-3 Audio Capture USB device [SOLVED]
Post by: rmcellig on July 06, 2016, 09:42:32 am
First off I want to say that using this USB device works great using the Tahr Pup 6.0.5 distro.

I have tried Lubuntu 14.04, WattOS 9 and now Peppermint 7. These three distros were installed to my HD which has three partitions (System, Data, Swap). When I open the Pulseaudio settings i can see the audio input bar moving indicating that Pulseaudio can read the audio input no problem. When i use audacity, i can  see the  UA3 settings  for both output an input so that is no problem either.

Where the problem occurs is  when I use this code which I have used with no issues in Tahr Puppy and also when I had my Dell Dimension 3000 computer. I had tried using the -D option in the code below but the issue I had was that I was only able to record one  show  at a time. The code below  allows  me to record more than one show  at a time. Like I said  before i have never had any issues  with this. Even if I comment out two of the items below and use only one of them I still cannot record through the UA3. I'm stumped. If I go into the Pulseaudio Volume Control settings Input Devices the two are Built In analog Stereo port Internal Microphone and UA-3USB Audio Device Port Analog Input When set to 100% (0db) I can see both bars moving. Recording using the code below captures  the sound from the Internal Mic and not the UA3. Even if I silence the Internal mic settings, the audio is  still not being captured from the UA 3.

I went into alsamixer and  selected F6 to choose the UA 3 from the  list. This  didn't work either.

Code: [Select]
10  9 * * 3                 /usr/bin/arecord -t wav -f cd  -d 268 $HOME/BSJUL0316-test.wav
10  9 * * 3                 /usr/bin/arecord -t wav -f cd  -d 268 $HOME/IHTSBJUL0316-test.wav
10  9 * * 3                 /usr/bin/arecord -t wav -f cd  -d 268 $HOME/ITJUL0316-test.wav


I am now  using a Dell Inspiron 1520.

Anything else i can do to resolve this issue? i know i can use Tahr Puppy but I want to learn  what is going on when using Peppermint 7 as  an  example. Thanks!! If you need  further info, please let me know.
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: murraymint on July 06, 2016, 10:04:10 am
Hi, have a look here and see if it helps you specify the correct device:

http://superuser.com/questions/53957/what-do-alsa-devices-like-hw0-0-mean-how-do-i-figure-out-which-to-use

In your case, type

Code: [Select]
arecord -l
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: rmcellig on July 06, 2016, 10:52:17 am
Thanks!

Here is what I get:

Code: [Select]
randy@pep1520 ~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC9205 Analog [STAC9205 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Device [UA-3 USB Audio Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0



I don't have a ..asoundrc file in my home  directory so do i just create  one and  post the  above in it? What is  the proper syntax to use? I looked for information regarding the .asoundrc file  but there was so much information I became confused :)
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: murraymint on July 06, 2016, 11:14:53 am
Can't you just add hw:1,0 before the filename in your test command?
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: rmcellig on July 06, 2016, 11:48:14 am
I tried that using the -D switch. That works fine but not in the example code in my original post. It seems that the -D switch can only record one at a time if that makes any sense. I'll try it again with the code I use all the time and post back.
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: murraymint on July 06, 2016, 11:52:07 am
So you want to set shows to record on a timer? Maybe use cron jobs or something.
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: rmcellig on July 06, 2016, 12:06:21 pm
What I found out is  that when I use the-D switch, I can only record  one show  at a time. I just tried it. So if i record a test that is 45 seconds long, i have to wait for the 45 seconds to end before the next test can record. That's a  problem for me. I have a radio show that starts at 10am and finishes at 11am. I would have to set the 10am code to record for something like 57 minutes instead of the full hour befor the  next code starts recording the 11am show. Thismeans that two or three minutes of the show will be  missing if you know what i mean.

I'll try recording from the mic and  headphone jacks on the laptop instead and see what the quality is like and howit all works  out.
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: rmcellig on July 06, 2016, 12:07:52 pm
I do have all of my code in a cronjob. i use crontab -e  to edit it.
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: murraymint on July 06, 2016, 12:27:32 pm
I get it now, I couldn't understand how 2 shows could be on at the same time. You could always just record them both in one file and edit it later.
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: rmcellig on July 06, 2016, 12:31:39 pm
Ya that sounds fine  and at the time I thought, great, my problem is solved. The shows  run from 10am to 2pm. .wav files  cannot handle  this lengh of time. If there was a way for arecord to save as  .flac I think I would be OK. Another option i was thinking about isif  there is  an option to arecord for recording audio from the command line with save options like .flac?
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: rmcellig on July 06, 2016, 12:33:06 pm
Maybe another command line tool i can use instead?
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: murraymint on July 06, 2016, 01:11:47 pm
All right, try the solution on this thread:

http://askubuntu.com/questions/490850/arecord-flac-format
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: PCNetSpec on July 06, 2016, 03:00:25 pm
Just a thought but have you tried recording via the pulseaudio sink instead ?

Install sox
Code: [Select]
sudo apt-get install sox
then see here
http://www.funwithelectronics.com/?id=95
for how to use:
Code: [Select]
pacmd list | grep ".monitor"
to identify the "monitor" attached to your audio device .. then use a command like:
Code: [Select]
pacat --record -d alsa_output.pci-0000_00_14.2.analog-stereo.monitor | sox -t raw -r 44100 -e signed-integer -L -b 16 -c 2 - "my-recording.wav"
to record to a wav file with a sample rate of 44100
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: rmcellig on July 12, 2016, 03:23:35 pm
After spending a week trying other distros, zorin 9 lite worked great. What I don't get is why does Zorin work but not peppermint, lubuntu and watt os and antix mx15 ( the distros I tried).

So, for me, aside from Tahr pup 605 and zorin lite, the other distros don't work and I am stumped as to why.
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: PCNetSpec on July 12, 2016, 04:36:23 pm
Zorin 9 was based on 14.04 .. have you tried Peppermint 6 ?
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: rmcellig on July 12, 2016, 07:38:10 pm
I never thought of that. I'll try it from the Peppermint 6 live CD and post back with the results.
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: rmcellig on July 13, 2016, 12:10:45 pm
I tried the Peppermint 6 live CD and recording audio with arecord works fine. I will install Peppermint 6 to my HD and see how that goes regarding recording and post back.
Title: Re: Issues using Edirol UA-3 Audio Capture USB device
Post by: rmcellig on July 13, 2016, 01:36:22 pm
After installing Peppermint 6 to HD, recording using my Edirol UA 3 and arecord works fine.