如何在笔记本电脑上测试麦克风?

Nic*_*ers 4 sound speakers pulseaudio microphone 20.10

到目前为止,这里的一切都有效——关键是,声音回放。

麦克风本身是如何测试的?

nicholas@gondor:~$ 
nicholas@gondor:~$ sudo aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: STAC9228 Analog [STAC9228 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: STAC9228 Digital [STAC9228 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
nicholas@gondor:~$ 
nicholas@gondor:~$ aplay /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
nicholas@gondor:~$ 
nicholas@gondor:~$ pacmd
Welcome to PulseAudio 13.99.2! Use "help" for usage information.
>>> list-sinks
1 sink(s) available.
  * index: 1
    name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
    driver: <module-alsa-card.c>
    flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
    state: SUSPENDED
    suspend cause: IDLE
    priority: 9039
    volume: front-left: 49789 /  76% / -7.16 dB,   front-right: 49789 /  76% / -7.16 dB
            balance 0.00
    base volume: 65536 / 100% / 0.00 dB
    volume steps: 65537
    muted: no
    current latency: 0.00 ms
    max request: 0 KiB
    max rewind: 0 KiB
    monitor source: 1
    sample spec: s16le 2ch 48000Hz
    channel map: front-left,front-right
                 Stereo
    used by: 0
    linked by: 0
    configured latency: 0.00 ms; range is 0.50 .. 1837.50 ms
    card: 0 <alsa_card.pci-0000_00_1b.0>
    module: 23
    properties:
        alsa.resolution_bits = "16"
        device.api = "alsa"
        device.class = "sound"
        alsa.class = "generic"
        alsa.subclass = "generic-mix"
        alsa.name = "STAC9228 Analog"
        alsa.id = "STAC9228 Analog"
        alsa.subdevice = "0"
        alsa.subdevice_name = "subdevice #0"
        alsa.device = "0"
        alsa.card = "0"
        alsa.card_name = "HDA Intel"
        alsa.long_card_name = "HDA Intel at 0xfe9fc000 irq 29"
        alsa.driver_name = "snd_hda_intel"
        device.bus_path = "pci-0000:00:1b.0"
        sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
        device.bus = "pci"
        device.vendor.id = "8086"
        device.vendor.name = "Intel Corporation"
        device.product.id = "284b"
        device.product.name = "82801H (ICH8 Family) HD Audio Controller (Inspiron 1420)"
        device.form_factor = "internal"
        device.string = "front:0"
        device.buffering.buffer_size = "352800"
        device.buffering.fragment_size = "176400"
        device.access_mode = "mmap+timer"
        device.profile.name = "analog-stereo"
        device.profile.description = "Analog Stereo"
        device.description = "Built-in Audio Analog Stereo"
        module-udev-detect.discovered = "1"
        device.icon_name = "audio-card-pci"
    ports:
        analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
            properties:
                device.icon_name = "audio-speakers"
        analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
            properties:
                device.icon_name = "audio-headphones"
    active port: <analog-output-speaker>
>>> q
Unknown command: q
>>> quit
Unknown command: quit
>>> exit
>>> nicholas@gondor:~$ 
Run Code Online (Sandbox Code Playgroud)

以上来自:

https://help.ubuntu.com/community/SoundTroubleshooting

理想情况下,我会用麦克风录制一些声音,然后zoom自行排除故障。

JoL*_*JoL 10

可能足以:

arecord | aplay
Run Code Online (Sandbox Code Playgroud)

不过,如果您将录音设置设置为以下内容,听起来可能会更好:

arecord -f FLOAT_LE -r 192000 -B 1 | aplay
Run Code Online (Sandbox Code Playgroud)

其中-B 1将缓冲区大小减小到最小值,以减少录制内容和播放内容之间的时间。-r 192000是将采样率提高到最大。-f FLOAT_LE是听起来最适合我的示例格式。其他格式在有记录的联机帮助页中列出-f


N0r*_*ert 7

安装Audacity使用

sudo apt-add-repository universe
sudo apt-get install audacity
Run Code Online (Sandbox Code Playgroud)

启动它,使用麦克风录制一些片段,播放录制的声音。