Skip to content

NAudio: Object reference not set to an instance of an object. #570

@Cameron-Gonzalez

Description

@Cameron-Gonzalez

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Use the Windows Voice Assistant to connect to an AI that is published to an Azure Web Bot Service
AI behaves as expected when you ask it questions or give it commands
Randomly, the application will have the log error below and interrupt the audio playback

Any log messages given by the failure

"StackTraceString": " at NAudio.Wave.WaveOutEvent.DisposeBuffers()\r\n at NAudio.Wave.WaveOutEvent.Init(IWaveProvider waveProvider)\r\n at VoiceAssistantClient.MainWindow.PlayFromAudioQueue() in D:\a\1\s\clients\csharp-wpf\VoiceAssistantClient\MainWindow.xaml.cs:line 737\r\n at VoiceAssistantClient.MainWindow.Player_PlaybackStopped(Object sender, StoppedEventArgs e) in D:\a\1\s\clients\csharp-wpf\VoiceAssistantClient\MainWindow.xaml.cs:line 582\r\n at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)\r\n at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)"

Expected/desired behavior

AI speech not interrupted by audio playback issues within the application

OS and Version?

Windows 10

Versions

1.17

Mention any other details that might be useful


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions