Skip to content

.Net: Add AudioTimestamp Property to GeminiPromptExecutionSettings#9526

Merged
rogerbarreto merged 3 commits intomicrosoft:mainfrom
shethaadit:shethaadit/FixBug9501
Nov 5, 2024
Merged

.Net: Add AudioTimestamp Property to GeminiPromptExecutionSettings#9526
rogerbarreto merged 3 commits intomicrosoft:mainfrom
shethaadit:shethaadit/FixBug9501

Conversation

@shethaadit
Copy link
Contributor

@shethaadit shethaadit commented Nov 4, 2024

Motivation and Context

Why is this change required?
This change is required to enhance the functionality of audio processing in the Semantic Kernel by allowing the inclusion of timestamps in audio responses.

What problem does it solve?
It resolves the limitation of missing audio timestamp support in the GeminiPromptExecutionSettings, which has been a significant blocker for developers trying to utilize audio prompts effectively.

What scenario does it contribute to?
This contribution is particularly useful for applications that require precise audio response management, enabling better synchronization and analysis of audio data in real-time scenarios.

If it fixes an open issue, please link to the issue here.

Description

This contribution adds a new feature that allows audio responses to include timestamps, a crucial element for many applications. Here’s a quick overview of what’s been implemented:

New Property: The AudioTimestamp property indicates whether the audio response should include timestamps. When enabled, this property will ensure that audio timestamps are included in requests to the model, providing developers with the precise control they need for their applications.

Seamless Integration: I conducted a thorough review of the existing codebase to ensure that this new feature integrates smoothly without disrupting current functionalities. This change is designed to be backward-compatible, making it easier for developers to adopt.

Future-Proofing: By adding this property, we’re not just solving an immediate need; we’re also paving the way for future enhancements in audio processing capabilities within the Semantic Kernel framework.

Contribution Checklist

@shethaadit shethaadit requested a review from a team as a code owner November 4, 2024 20:28
@markwallace-microsoft markwallace-microsoft added .NET Issue or Pull requests regarding .NET code kernel Issues or pull requests impacting the core kernel labels Nov 4, 2024
@github-actions github-actions bot changed the title Add AudioTimestamp Property to GeminiPromptExecutionSettings .Net: Add AudioTimestamp Property to GeminiPromptExecutionSettings Nov 4, 2024
Copy link
Member

@rogerbarreto rogerbarreto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, fix any warnings.

Ensure you test this in existing Integration Tests as well.

…ettings.cs

Co-authored-by: Roger Barreto <19890735+RogerBarreto@users.noreply.github.com>
@rogerbarreto rogerbarreto added this pull request to the merge queue Nov 5, 2024
Merged via the queue into microsoft:main with commit 793b65c Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

.Net: New Feature: GeminiPromptExecutionSettings is missing optional parameter audioTimestamp

4 participants