> For the complete documentation index, see [llms.txt](https://bananapi.gitbook.io/bpi-r1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bananapi.gitbook.io/bpi-r1/en/bpi-r1audio.md).

# BPI-R1 Audio

Banana pi BPI-R1 support two audio device HDMI and headphone

* How to choose HDMI or headphone for audio output

  ```
  sudo nano /etc/asound.conf
  ```

  ```
  pcm.!default {
  type hw
  card 0    //If you want to set HDMI as output ,turn 0 to 1.
  device 0
  }
  ctl.!default {
  type hw
  card 0   //If you want to set HDMI as output ,turn 0 to 1.
  }
  ```
* Plug in the headphone and type

  ```
  speaker-test -twav -c2
  ```
* The sound "sound left，sound right，sound left" will output from headphone.

  ```
  sudo apt-get install espeak
  espeak "hello"　　          //say: hello
  espeak "hello_bananapi"　　  //say: hello banana pi
  ```
* Run the sound volume controler,you can see

  ```
  sudo alsamixer
  ```
