-2

I am trying to develop a winforms application to integrating AWS lex voice service.

I am not able to play the audio received from AWS Lex bot "postContentResponse.AudioStream" in winforms application. I am using SoundPlayer to play the audio stream. Audio stream format is ".wav"

I get error "The wave header is corrupt" while playing the audio stream.

Varun
  • 422
  • 3
  • 14
  • My bad, I was using SoundPlayer to play mpeg stream. Using windows media player solved the problem though I had to save the stream to physical file. SoundPlayer plays only wav format. – Varun Mar 06 '18 at 05:12

1 Answers1

0

My bad, I was using SoundPlayer to play mpeg stream. Using windows media player control solved the problem, though I had to save the stream to physical file first.

.net SoundPlayer plays only wav format.

Varun
  • 422
  • 3
  • 14