Skip to content

.Net: Bring Support for Azure OpenAI gpt-4o audio responses #11720

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

Open
Cobra86 opened this issue Apr 24, 2025 · 1 comment
Open

.Net: Bring Support for Azure OpenAI gpt-4o audio responses #11720

Cobra86 opened this issue Apr 24, 2025 · 1 comment
Assignees
Labels
ai connector Anything related to AI connectors .NET Issue or Pull requests regarding .NET code

Comments

@Cobra86
Copy link

Cobra86 commented Apr 24, 2025

Describe the bug
When using GPT-4o audio-preview with Semantic Kernel, the audio response isn't return The code runs without errors, but no sound is returned from the AI response.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new .NET 9 project
  2. Install Microsoft.SemanticKernel v1.47.0
  3. Configure SDK with Azure OpenAI and the gpt-4o-audio-preview model
  4. Set up audio input from microphone using NAudio
  5. Request both text and audio responses with ChatResponseModalities.Text | ChatResponseModalities.Audio
  6. No Audio response and only text.

Expected behavior
The AI should respond both with text (which works) and audio (which doesn't return).

Screenshots
not applicable.

Platform

  • Language: C#
  • Source: NuGet package Microsoft.SemanticKernel version 1.47.0
  • AI model: Azure OpenAI gpt-4o-audio-preview
  • IDE: Visual Studio
  • OS: Windows

Additional context
I followed the example from https://devblogs.microsoft.com/semantic-kernel/using-openais-audio-preview-model-with-semantic-kernel/ and implemented microphone input using NAudio. The text response works correctly.

@Cobra86 Cobra86 added the bug Something isn't working label Apr 24, 2025
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code triage labels Apr 24, 2025
@Cobra86
Copy link
Author

Cobra86 commented Apr 24, 2025

I just wanted to add that it's working fine with OpenAI api

@RogerBarreto RogerBarreto removed the bug Something isn't working label Apr 26, 2025
@RogerBarreto RogerBarreto changed the title .Net: Bug: Azure OpenAI GPT-4o audio response not returning .Net: Bring Support for Azure OpenAI gpt-4o audio responses Apr 26, 2025
@RogerBarreto RogerBarreto moved this from Bug to Sprint: Planned in Semantic Kernel Apr 26, 2025
@RogerBarreto RogerBarreto added ai connector Anything related to AI connectors and removed triage labels Apr 26, 2025
@RogerBarreto RogerBarreto moved this from Sprint: Planned to Backlog: Planned in Semantic Kernel Apr 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ai connector Anything related to AI connectors .NET Issue or Pull requests regarding .NET code
Projects
Status: Backlog: Planned
Development

No branches or pull requests

3 participants