• Recent
    • Docs
    • Github
    • 百度网盘
    • Onedrive
    • Official
    • Shop
    • Register
    • Login

    录音

    Scheduled Pinned Locked Moved Pi 4B
    26 Posts 2 Posters 1.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      george @jugg
      last edited by

      @jugg 先使用如下命令测试:

      arecord -D hw:2,0 -d 10 -f cd -r 44100 -c 2 -t wav test.wav
      aplay -D hw:2,0 test.wav
      
      J 2 Replies Last reply Reply Quote 0
      • J
        jugg @george
        last edited by

        @george
        28bf8a75-9eb7-4ef6-a20a-ee5ffcc5f22c-image.png

        G 1 Reply Last reply Reply Quote 0
        • G
          george @jugg
          last edited by

          @jugg 你用的哪个版本的系统,我这边不会报错。

          J 1 Reply Last reply Reply Quote 0
          • J
            jugg @george
            last edited by

            @george
            0306的系统

            G 1 Reply Last reply Reply Quote 0
            • G
              george @jugg
              last edited by

              @jugg 可以使用最新0424版本的系统测试。

              J 2 Replies Last reply Reply Quote 0
              • J
                jugg @george
                last edited by

                @george
                最新的不是0508吗?
                为什么不用0508的

                G 1 Reply Last reply Reply Quote 0
                • G
                  george @jugg
                  last edited by

                  @jugg 0508是23.04版本

                  1 Reply Last reply Reply Quote 0
                  • J
                    jugg @george
                    last edited by

                    @george
                    我更新了0424的版本
                    能录 但是录出来的文件没有声音

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      george @jugg
                      last edited by

                      @jugg 如下测试命令录音正常,使用苹果4断耳机:

                      coolpi@Ubuntu:~$ arecord -D hw:2,0 -d 10 -f cd -r 44100 -c 2 -t wav test.wav
                      Recording WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
                      coolpi@Ubuntu:~$ aplay test.wav 
                      Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
                      
                      J 1 Reply Last reply Reply Quote 0
                      • J
                        jugg @george
                        last edited by

                        @george
                        我用的两头都是3.5mm的线 接的电脑的耳机输出 另外一头接音响有声音 接到板子上录出来没有声音

                        G 1 Reply Last reply Reply Quote 0
                        • G
                          george @jugg
                          last edited by

                          @jugg 如下图所示,COOLPI录音接口是MIC输入而不是line-in功能,如果要实现line-in功能,需要把电脑的左右声道混音以后衰减然后从coolpi耳机插座的麦克风端接入。
                          89e56413-7abb-4487-83fe-c5d2517d31f8-image.png

                          J 1 Reply Last reply Reply Quote 0
                          • J
                            jugg @george
                            last edited by

                            @george
                            0528f1ea-687c-4a67-9e90-c86376fcf30b-lQDPJxf-k0vW9ArNBNzNCzawXwjyKf9fCvMEZw6eeMAvAA_2870_1244.jpg
                            这种3段的也不行?

                            G 1 Reply Last reply Reply Quote 0
                            • G
                              george @jugg
                              last edited by

                              @jugg 不行,这种三段插入以后MIC引脚就和GND短接了,肯定录不到声音。

                              J 1 Reply Last reply Reply Quote 0
                              • J
                                jugg @george
                                last edited by

                                @george
                                就是说4段的3.5的线就可以是吧

                                G 1 Reply Last reply Reply Quote 0
                                • G
                                  george @jugg
                                  last edited by

                                  @jugg 电脑输出的音频信号需要衰减以后才能接入MIC通道。否则增益太大会失真。

                                  J 1 Reply Last reply Reply Quote 0
                                  • J
                                    jugg @george
                                    last edited by

                                    @george
                                    我需要怎么做才能把其它声音接入到板子 然后录音

                                    G 1 Reply Last reply Reply Quote 0
                                    • G
                                      george @jugg
                                      last edited by

                                      @jugg 如下图所示,电脑的line out输出经过衰减以后接入COOLPI耳机座的MIC输入端。正常麦克风的电平范围控制到20mv以内。所以电阻参数根据电脑line out输出的信号幅度决定。
                                      d080fb7d-ad23-42ce-aa1d-90a15e0f9e97-image.png

                                      1 Reply Last reply Reply Quote 0
                                      • J
                                        jugg @george
                                        last edited by

                                        @george
                                        这样在板子上播出来的是单声道的 就是只有一个耳机有声音 另外一个没有或者是声音非常小
                                        这样的音频线
                                        1d014dd4-e901-4650-bdb6-6d87b235d3ce-lQDPJw4VFbvkzEjNBQDNA8CwFgnEULx9spEEvwZgqoCHAA_960_1280.jpg
                                        但是把文件放电脑上用耳机听 左右声道都有声音

                                        G 1 Reply Last reply Reply Quote 0
                                        • G
                                          george @jugg
                                          last edited by

                                          @jugg 换一个手机上的耳机在机器上播放。

                                          1 Reply Last reply Reply Quote 0
                                          • J
                                            jugg
                                            last edited by

                                            我现在测试CM5的
                                            发现没法录音 提示设备被占用
                                            用的这个固件
                                            20230606-ubuntu-20.04.5-preinstalled-desktop-arm64-cm5-evb-v11.rar
                                            声音可以播放
                                            用的也是上面那个白色的4端音频线

                                            G 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post