View previous topic :: View next topic |
Author |
Message |
MartinB Apprentice
Joined: 12 Feb 2003 Posts: 222 Location: Apeldoorn, Netherlands
|
Posted: Sun Jan 25, 2015 8:22 am Post subject: [SOLVED] Recording USB audio... playback sounds awful |
|
|
Hey everyone,
I'm trying to record audio from my Yahama MOXF6 keyboard, which is connected with USB. I run the following command:
Code: | arecord -vv -D plughw:MOXF6MOXF8 -f S24_3LE -r 44100 -c 2 mytest.wav
Recording WAVE 'mytest.wav' : Signed 24 bit Little Endian in 3bytes, Rate 44100 Hz, Stereo
Plug PCM: Hardware PCM card 2 'Yamaha MOXF6/MOXF8' device 0 subdevice 0
Its setup is:
stream : CAPTURE
access : RW_INTERLEAVED
format : S24_3LE
subformat : STD
channels : 2
rate : 44100
exact rate : 44100 (44100/1)
msbits : 24
buffer_size : 22050
period_size : 5513
period_time : 125011
tstamp_mode : NONE
period_step : 1
avail_min : 5513
period_event : 0
start_threshold : 1
stop_threshold : 22050
silence_threshold: 0
silence_size : 0
boundary : 6206523236469964800
appl_ptr : 0
hw_ptr : 0
#+ | 00%^C
Aborted by signal Interrupt...
#+ | 00%
martin@samus ~ $ |
Then I try to playback the file (this doesn't work):
Code: | martin@samus ~ $ aplay mytest.wav
Playing WAVE 'mytest.wav' : Signed 24 bit Little Endian in 3bytes, Rate 44100 Hz, Stereo
aplay: set_params:1233: Sample format non available
Available formats:
- U8
- S16_LE
- S16_BE
- S32_LE
- S32_BE
- FLOAT_LE
- FLOAT_BE
- MU_LAW
- A_LAW
martin@samus ~ $ |
My ancient Sound Blaster Live probably doesn't support 24-bit audio. So I try again, but using the Yahama MOXF6 USB audio output interface instead:
Code: | martin@samus ~ $ aplay -D plughw:MOXF6MOXF8 mytest.wav
Playing WAVE 'mytest.wav' : Signed 24 bit Little Endian in 3bytes, Rate 44100 Hz, Stereo
martin@samus ~ $ |
This plays the file through the keyboards audio output, but it sounds completely wrong. The recording was of me playing a piano. I can hear when I'm playing the notes and the sustain (fading out) of each note, but it sounds like it's played from an awful distorted 80's synth, and it's impossible to hear the tune.
I've uploaded a copy of the recorded audio at the link below so you can hear it for yourself:
http://avalon-one.net/misc/mytest.wav
I'm guessing the problem has something to do with the audio format, but I'm not very knowledgeable with this kind of thing.
Note that playback of other WAV files works correctly through the Yahama MOXF6 USB audio output, so the problem seems to be in the recording and not the output itself.
I also tried recording in from the MOXF6 using Audicity with the same result. Oddly, when I record and playback through the USB interface of the MOXF6, the timeline in Audacity moves much slower than normal, so it takes around 8 seconds to move up to the "1.0" second mark. When I playback the same recorded audio through the Sound Blaster Live!, it plays at normal speed and thus sounds like it's been highly sped up.
I'd really appreciate any help or tips in solving this problem.
EDIT: If I use a similar command to record audio from my USB webcam (microphone), this works fine, so the problem is only happening with the MOXF6.
Cheers,
Martin _________________ Intel i7 3820 - 16GB Corsair DDR3 - GeForce GTX 660 2GB - SBLive - 13TB - Gentoo - KDE4
Last edited by MartinB on Mon Jan 26, 2015 5:56 pm; edited 1 time in total |
|
Back to top |
|
|
MartinB Apprentice
Joined: 12 Feb 2003 Posts: 222 Location: Apeldoorn, Netherlands
|
Posted: Mon Jan 26, 2015 5:45 pm Post subject: |
|
|
Well, I "solved" the problem myself. Apparently, the keyboard audio only works when connected to the USB ports on the top of my case, but not the ones on the back. I don't really have any explanation for that, but I'm happy that it's working now. _________________ Intel i7 3820 - 16GB Corsair DDR3 - GeForce GTX 660 2GB - SBLive - 13TB - Gentoo - KDE4 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|