Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullException when model responds #86

Open
dr-graviton opened this issue Nov 18, 2024 · 0 comments
Open

NullException when model responds #86

dr-graviton opened this issue Nov 18, 2024 · 0 comments

Comments

@dr-graviton
Copy link

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

  1. Pull the latest code.
  1. Run dotnet/samples/console-from-mic
  2. Say anything

Any log messages given by the failure

  • Connecting to Azure OpenAI endpoint (AZURE_OPENAI_ENDPOINT): https://***.openai.azure.com/
  • Using API key (AZURE_OPENAI_API_KEY): cdcb3**
  • Using deployment (AZURE_OPENAI_DEPLOYMENT): gpt-4o-realtime-preview
    <<< Connected: session started

Listening to microphone input
(Just tell the app you're done to finish)

<<< Start of speech detected @ 00:00:11.0400000
<<< End of speech detected @ 00:00:11.5200000

USER: Hi.

Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at SpeakerOutput.EnqueueForPlayback(BinaryData audioData) in C:\sandbox\aoai-realtime-audio-sdk\dotnet\samples\console-from-mic\SpeakerOutput.cs:line 29
at Program.Main(String[] args) in C:\sandbox\aoai-realtime-audio-sdk\dotnet\samples\console-from-mic\Program.cs:line 93
at Program.Main(String[] args) in C:\sandbox\aoai-realtime-audio-sdk\dotnet\samples\console-from-mic\Program.cs:line 42
at Program.

(String[] args)

Expected/desired behavior

It should play the model output

OS and Version?

Windows 11

Versions

23H2

Mention any other details that might be useful

This works fine on the commit: 9d5f530


Thanks! We'll be in touch soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant