openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.2.0-beta.1

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/Custom/Chat/ChatAudioOptions.cs

30lines · modepreview

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

namespace OpenAI.Chat;

/// <summary>
/// Represents the configuration details for output audio requested in a chat completion request.
/// </summary>
/// <remarks>
/// When provided to a <see cref="ChatCompletionOptions"/> instance's <see cref="ChatCompletionOptions.AudioOptions"/> property,
/// the request's specified content modalities will be automatically updated to reflect desired audio output.
/// </remarks>
[CodeGenModel("CreateChatCompletionRequestAudio")]
public partial class ChatAudioOptions
{
    // CUSTOM: Renamed.
    /// <summary>
    /// Gets or sets the voice model that the response should use to synthesize audio.
    /// </summary>
    [CodeGenMember("Voice")]
    public ChatOutputAudioVoice OutputAudioVoice { get; }

    // CUSTOM: Renamed.
    /// <summary>
    /// Specifies the output format desired for synthesized audio.
    /// </summary>
    [CodeGenMember("Format")]
    public ChatOutputAudioFormat OutputAudioFormat { get; }
}