Arecord не может найти нужное устройство?

man bash (См. УПРАВЛЕНИЕ ЗАДАНИЯМИ)

& is a control operator, meaning it performs a control function.

If a command is terminated by the control operator &, the shell executes the command in the background in a sub‐shell.

(A subshell is assigned a PID-Process ID Number)

Короче говоря, все, что является командой, может быть запущено в фоновом режиме путем завершения команды с помощью &, что порождает процесс подоболочки для запуска команды.

Грубо говоря, если его можно запустить в режиме ожидания -отдельно в оболочке, то его можно запустить в фоновом режиме в подоболочке (, что делает &). Если это полная инструкция для подоболочки, в которой она выполняется, или последовательность полных инструкций (функция ), то она может быть запущена в фоновом режиме... возможно, здесь меня поправят, но это заманчиво сказать, что если его можно запустить на переднем плане в оболочке, то его можно запустить и в фоновом режиме в подоболочке с изменяющейся и настраиваемой областью действия для его переменных (, контраст coprocи &, и см. lastpipe, но область действия переменных является результатом выполнения команд в подоболочках, а не потому, что команды выполняются в фоновом режиме ).

Что представляет собой команда?

Из Руководство Wooledge Bash:

BASH reads commands from its input (which is usually either a terminal or a file). Each line of input that it reads is treated as a command — an instruction to be carried out. (There are a few advanced cases, such as commands that span multiple lines, that will be gotten to later.) Bash divides each line into words that are demarcated by a whitespace character (spaces and tabs). The first word of the line is the name of the command to be executed. All the remaining words become arguments to that command (options, filenames, etc.).

Из aosa -bash -full.pdf в bash -doc -3.2 из Источник Bash:

A “simple” shell command...consists of a command name, such as echo or cd, and a list of zero or more arguments and redirections. (pg 47)

Shell functions and shell scripts are both ways to name a group of commands and execute the group, just like executing any other command. Shell functions are declared using a special syntax and stored and executed in the same shell’s context; shell scripts are created by putting commands into a file and executing a new instance of the shell to interpret them. Shell functions share most of the execution context with the shell that calls them, but shell scripts, since they are interpreted by a new shell invocation, share only what is passed between processes in the environment. (pg 48)

....................

Bash introduces the concept of a job which is essentially a command being executed by one or more processes. A pipeline, for instance, uses one process for each element of the pipeline. The process group is a way to join separate processes together into a single job. The terminal has a process group ID associated with it, so the foreground process group is the one whose process group ID is the same as the terminal’s. (pg 69)

  • Любой процесс может быть запущен в фоновом режиме
  • оболочка сама по себе является процессом
  • любая инструкция/команда (, все еще слабо определенная )в оболочке, может быть запущена в фоновом режиме, запустив ее в подоболочке, которую порождает &.

Наибольшее внимание уделяется тому, как фоновый процесс подоболочки взаимодействует со своим родительским процессом, опять же, см. Управление заданиями в man bash

2
13.09.2019, 23:31
2 ответа

Я бы сначала проверил, что вы используете соответствующую операционную систему,

Make sure that you are running the lastest Raspbian Operating System(debian 9) on your Pi. (updated at 2018.11.13)

Я также хотел бы убедиться, что громкость установлена ​​на правильном уровне и что у вас подключен динамик или наушники,

Test, you will hear what you say to the microphones(don't forget to plug in an earphone or a speaker)

Громкость можно установить с помощью alsamixerс терминала.

Источник:https://github.com/SeeedDocument/wiki_english/blob/master/docs/ReSpeaker_2_Mics_Pi_HAT.md#getting-started

0
27.01.2020, 22:24

Насколько я знаю синтаксис, похоже, вы неправильно вызываете устройство. должно быть примерно так:

-D hw:1,0 

как указано здесь в разделе «Именование устройств PCM»

0
20.12.2020, 21:22

Теги

Похожие вопросы