ReSpeaker 2 no sound to HEADPHONE output

I am having a problem playing a WAV file to the HEADPHONE jack on the ReSpeaker 2-Mic.
There is no sound at all.

I am using the very simple Arduino first example code from the Seeed website…

I’ve made the change to select HEADPHONE as the output.
The WAV file is a simple 16 bit, 44.1 kHz, stereo audio test file.

Does anyone know if the Seeed example code has been tested to use the HEADPHONE jack instead of the JST speaker?

Can you send out your modified code? Let’s check it for you. @jkuzma2940

Thanks. Here is the code fragment…

#include <Audio.h>
#include <Wire.h>
#include <Seeed_FS.h>
#include "SD/Seeed_SD.h"

#undef USESPIFLASH
#define DEV SD

#ifdef _SAMD21_
#define SDCARD_SS_PIN 1
#define SDCARD_SPI SPI
#endif
 
AudioPlaySdWav  playSdWav1;
AudioOutputI2S  i2s1;
AudioConnection patchCord1(playSdWav1, 0, i2s1, 0);
AudioConnection patchCord2(playSdWav1, 1, i2s1, 1);
AudioControlWM8960 wm8960;
 
void setup() 
{
  Serial.begin(115200);
  AudioMemory(8);
  
  while (!Serial) {};
  
  wm8960.enable();
  wm8960.outputSelect(HEADPHONE);
  wm8960.volume(0.7);
  
  while (!SD.begin(SDCARD_SS_PIN,SDCARD_SPI,10000000UL)) 
  {
      Serial.println("Card Mount Failed\n");
      return;
  }

  Serial.println("SD initialization done.\n");

  delay(1000);
}
 
void loop() 
{
  bool started = false;
  
  if (playSdWav1.isPlaying() == false) 
  {
    Serial.println("Playing...");
    playSdWav1.play("SDTEST.WAV");
    delay(10); // wait for library to parse WAV info
  }
}

Hi jkuzma2940

Please set the volume to 0.9.

  wm8960.enable();
  wm8960.outputSelect(HEADPHONE);
  wm8960.volume(0.9);

Check your SD card and document file name, it should be the same as “SDTEST.WAV”.

Best regards
fenyi