Ticket #9526 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Recording audio does not work

Reported by: sayamindu Owned by:
Priority: blocker Milestone:
Component: not assigned Version: Development build as of this date
Keywords: Cc:
Action Needed: test in build Verified: no
Deployments affected: Blocked By:
Blocking:

Description

Using arecord to record audio does not seem to work. First it complains about the workaround in #9414 and if the workaround is removed, the recording is almost unintelligible.

Change History

Changed 5 years ago by cjb

  • priority changed from normal to blocker

Raising to blocker.

Changed 5 years ago by sayamindu

  • blocking 9527 added

Changed 5 years ago by Quozl

  • next_action changed from never set to diagnose
  • version changed from not specified to Development build as of this date

On os33, was unable to reproduce the unintelligible recording. Need more detail on what made it unintelligible.

On os33, was able to reproduce the complaint about the workaround in #9414.

ALSA lib pcm_dmix.c:949:(snd_pcm_dmix_open) \
The dmix plugin supports only playback stream
arecord: main:608: audio open error: \
Invalid argument

Also fiddled with .asoundrc and Activities/TamTamMini.activity/common/Config.py per #9414 but did not end up learning much.

Reproduced #9414 on os33.

The .asoundrc workaround in #9414 seems to add a slight latency to TamTamMini keyboard playing, but I did not measure it.

Config.py does show parameters used by TamTam to capture audio, and these parameters work if adjusted. The following arecord command captured useful and accurate audio:

arecord -f S16_LE -t wav -r 44100 -c 2 -D hw:0,0 test.wav

Changed 5 years ago by dsd

  • next_action changed from diagnose to test in build

At a guess, the unintelligible quality is because you used the default arecord options, which are to record a low-quality sound.

Fixed this for the next build by using a cleaner hack to fix #9414.

Now we need to do some recording testing and also we have to test that my newer hack doesn't inadvertently affect TamTam.

Changed 5 years ago by Quozl

  • status changed from new to closed
  • resolution set to fixed

Fix confirmed on os39, used arecord without options fine. Closing #9526. Reopened #9414, as TamTam has been affected.

Changed 5 years ago by bert

  • blocking 9527 removed

(In #9527) I opened #9724 for the freezes.

The sound quality is bad too, we should keep this open to investigate. I'm changing the title.

Changed 5 years ago by anonymous

  • milestone deleted

Milestone 1.5-software deleted

Note: See TracTickets for help on using tickets.