openai/openai-dotnet

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
achandmsft-patch-1

Branches

Tags

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

Clone

HTTPS

Download ZIP

src/Custom/Chat/ChatAudioOptions.cs

30lines · modecode

1using System;
2using System.Collections.Generic;
3using System.Diagnostics.CodeAnalysis;
4
5namespace OpenAI.Chat;
6
7/// <summary>
8/// Represents the configuration details for output audio requested in a chat completion request.
9/// </summary>
10/// <remarks>
11/// When provided to a <see cref="ChatCompletionOptions"/> instance's <see cref="ChatCompletionOptions.AudioOptions"/> property,
12/// the request's specified content modalities will be automatically updated to reflect desired audio output.
13/// </remarks>
14[CodeGenType("CreateChatCompletionRequestAudio1")]
15public partial class ChatAudioOptions
16{
17 // CUSTOM: Renamed.
18 /// <summary>
19 /// Gets or sets the voice model that the response should use to synthesize audio.
20 /// </summary>
21 [CodeGenMember("Voice")]
22 public ChatOutputAudioVoice OutputAudioVoice { get; }
23
24 // CUSTOM: Renamed.
25 /// <summary>
26 /// Specifies the output format desired for synthesized audio.
27 /// </summary>
28 [CodeGenMember("Format")]
29 public ChatOutputAudioFormat OutputAudioFormat { get; }
30}
31