From nobody Wed Sep 29 06:34:24 2021 X-Original-To: freebsd-multimedia@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2FEA217E5308 for ; Wed, 29 Sep 2021 06:34:38 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HK66k0Kb2z4YKR for ; Wed, 29 Sep 2021 06:34:37 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 04DB42604D4; Wed, 29 Sep 2021 08:34:35 +0200 (CEST) Subject: Re: microphone issues - distorted audio To: pete@nomadlogic.org, freebsd-multimedia@FreeBSD.org References: <0089d0bd-a948-cff3-1cce-518f65a8bb57@nomadlogic.org> From: Hans Petter Selasky Message-ID: Date: Wed, 29 Sep 2021 08:34:24 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 List-Id: Multimedia discussions List-Archive: https://lists.freebsd.org/archives/freebsd-multimedia List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-multimedia@freebsd.org MIME-Version: 1.0 In-Reply-To: <0089d0bd-a948-cff3-1cce-518f65a8bb57@nomadlogic.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4HK66k0Kb2z4YKR X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On 9/29/21 5:56 AM, Pete Wright via freebsd-multimedia wrote: > hello, > i have the following configuration for my audio system on current/amd64: > > $ cat /dev/sndstat > Installed devices: > pcm0: (play) > pcm1: (play) > pcm2: (play) > pcm3: (play) > pcm4: (play) > pcm5: (play/rec) default > pcm6: (play/rec) > pcm7: (rec) > No devices installed from userspace. > > > I am having issues with recording audio, using both my Realtek ALC892 as > well as via my USB webcam (pcm7).  in both cases the audio sounds very > distorted, if i talk into the microphone my voice is very distorted > almost mechanical sound.  it is interesting that i get the same > experience with both my ALC892 and USB audio device.  I've also tried > adjusting various mixer settings, and adjusted my input gain to no > avail.  I'm kind of at a loss here to figure out what my next debugging > steps should be - any pointers? Hi, In what what is the audio distorted? Did you check using "mixer" that the levels are appropriate? If you want to use one device for recording and another for playback, installing a audio daemon like virtual_oss is recommended. It might simply be a sample rate mismatch. Regarding the USB webcam, make sure you device is connected directly to a port on the computer. If you install "sox", there is "rec" and "play" for simple testing. An environment variable can override the audio device used. --HPS