zoukankan      html  css  js  c++  java
  • linux 测试麦克风197

    如何查看音频设备

    如果你的系统有 /proc/asound/cards 路径,说明 ALSA 驱动已经使用上,可查看 sound devices:

    cat /proc/asound/cards
     0 [Intel          ]: HDA-Intel - HDA Intel
                          HDA Intel at 0xf2520000 irq 17
    

    也可以用 arecord 和 aplay 工具.其中 arecord 查看 microphone (capture or input device):

    $ arecord -l
    **** List of CAPTURE Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: HDA Generic [HDA Generic]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    

    aplay 查看 speaker (output device) :

    $ aplay -l
    **** List of PLAYBACK Hardware Devices ****
    card 0: Intel [HDA Intel], device 0: HDA Generic [HDA Generic]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0: Intel [HDA Intel], device 3: INTEL HDMI [INTEL HDMI]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    

    使用 arecord 测试 microphone

    运行下面命令,录音 10 秒:

    $ arecord -d 10 /tmp/t.wav
    

    播放 arecord 的录音

    $ aplay /tmp/t.wav
  • 相关阅读:
    17种高效选聘方法
    三招让你从求职者中脱颖而出(转)
    仓山有感
    同事就是同事,职场没有兄弟姐妹
    enable worker process
    央企
    关于IIS
    td
    About Application Pool
    iis 7 application pool
  • 原文地址:https://www.cnblogs.com/Ai-Hen-Jiao-zhi/p/12262683.html
Copyright © 2011-2022 走看看