You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeSession.g.cs
+32-48Lines changed: 32 additions & 48 deletions
Original file line number
Diff line number
Diff line change
@@ -29,96 +29,80 @@ public partial interface IRealtimeClient
29
29
/// a usable ephemeral API token that can be used to authenticate browser clients<br/>
30
30
/// for the Realtime API.
31
31
/// </summary>
32
+
/// <param name="audio">
33
+
/// Configuration for input and output audio.
34
+
/// </param>
32
35
/// <param name="clientSecret">
33
36
/// Configuration options for the generated client secret.
34
37
/// </param>
35
-
/// <param name="inputAudioFormat">
36
-
/// The format of input audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.<br/>
37
-
/// For `pcm16`, input audio must be 16-bit PCM at a 24kHz sample rate,<br/>
38
-
/// single channel (mono), and little-endian byte order.<br/>
39
-
/// Default Value: pcm16
40
-
/// </param>
41
-
/// <param name="inputAudioNoiseReduction">
42
-
/// Configuration for input audio noise reduction. This can be set to `null` to turn off.<br/>
43
-
/// Noise reduction filters audio added to the input audio buffer before it is sent to VAD and the model.<br/>
44
-
/// Filtering the audio can improve VAD and turn detection accuracy (reducing false positives) and model performance by improving perception of the input audio.
45
-
/// </param>
46
-
/// <param name="inputAudioTranscription">
47
-
/// Configuration for input audio transcription, defaults to off and can be set to `null` to turn off once on. Input audio transcription is not native to the model, since the model consumes audio directly. Transcription runs asynchronously through [the /audio/transcriptions endpoint](https://platform.openai.com/docs/api-reference/audio/createTranscription) and should be treated as guidance of input audio content rather than precisely what the model heard. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.
38
+
/// <param name="include">
39
+
/// Additional fields to include in server outputs.<br/>
40
+
/// - `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription.
48
41
/// </param>
49
42
/// <param name="instructions">
50
43
/// The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "here are examples of good responses") and on audio behavior (e.g. "talk quickly", "inject emotion into your voice", "laugh frequently"). The instructions are not guaranteed to be followed by the model, but they provide guidance to the model on the desired behavior.<br/>
51
44
/// Note that the server sets default instructions which will be used if this field is not set and are visible in the `session.created` event at the start of the session.
52
45
/// </param>
53
-
/// <param name="maxResponseOutputTokens">
46
+
/// <param name="maxOutputTokens">
54
47
/// Maximum number of output tokens for a single assistant response,<br/>
55
48
/// inclusive of tool calls. Provide an integer between 1 and 4096 to<br/>
56
49
/// limit output tokens, or `inf` for the maximum available tokens for a<br/>
57
50
/// given model. Defaults to `inf`.
58
51
/// </param>
59
-
/// <param name="modalities">
60
-
/// The set of modalities the model can respond with. To disable audio,<br/>
61
-
/// set this to ["text"].
62
-
/// </param>
63
52
/// <param name="model">
64
53
/// The Realtime model used for this session.
65
54
/// </param>
66
-
/// <param name="outputAudioFormat">
67
-
/// The format of output audio. Options are `pcm16`, `g711_ulaw`, or `g711_alaw`.<br/>
68
-
/// For `pcm16`, output audio is sampled at a rate of 24kHz.<br/>
69
-
/// Default Value: pcm16
55
+
/// <param name="outputModalities">
56
+
/// The set of modalities the model can respond with. To disable audio,<br/>
57
+
/// set this to ["text"].
70
58
/// </param>
71
-
/// <param name="speed">
72
-
/// The speed of the model's spoken response. 1.0 is the default speed. 0.25 is<br/>
73
-
/// the minimum speed. 1.5 is the maximum speed. This value can only be changed<br/>
74
-
/// in between model turns, not while a response is in progress.<br/>
75
-
/// Default Value: 1
59
+
/// <param name="prompt">
60
+
/// Reference to a prompt template and its variables. <br/>
/// Sampling temperature for the model, limited to [0.6, 1.2]. For audio models a temperature of 0.8 is highly recommended for best performance.<br/>
79
65
/// Default Value: 0.8
80
66
/// </param>
81
67
/// <param name="toolChoice">
82
-
/// How the model chooses tools. Options are `auto`, `none`, `required`, or<br/>
83
-
/// specify a function.<br/>
68
+
/// How the model chooses tools. Provide one of the string modes or force a specific<br/>
69
+
/// function/MCP tool.<br/>
84
70
/// Default Value: auto
85
71
/// </param>
86
72
/// <param name="tools">
87
-
/// Tools (functions) available to the model.
73
+
/// Tools available to the model.
88
74
/// </param>
89
75
/// <param name="tracing">
90
76
/// Configuration options for tracing. Set to null to disable tracing. Once<br/>
91
77
/// tracing is enabled for a session, the configuration cannot be modified.<br/>
92
78
/// `auto` will create a trace for the session with default values for the<br/>
93
79
/// workflow name, group id, and metadata.
94
80
/// </param>
95
-
/// <param name="turnDetection">
96
-
/// Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.<br/>
97
-
/// Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.<br/>
98
-
/// Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.
81
+
/// <param name="truncation">
82
+
/// Controls how the realtime conversation is truncated prior to model inference.<br/>
83
+
/// The default is `auto`. When set to `retention_ratio`, the server retains a<br/>
84
+
/// fraction of the conversation tokens prior to the instructions.
99
85
/// </param>
100
-
/// <param name="voice">
101
-
/// Example: ash
86
+
/// <param name="type">
87
+
/// The type of session to create. Always `realtime` for the Realtime API.
102
88
/// </param>
103
89
/// <param name="cancellationToken">The token to cancel the operation with</param>
Copy file name to clipboardExpand all lines: src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IRealtimeClient.CreateRealtimeTranscriptionSession.g.cs
+10-12Lines changed: 10 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -29,9 +29,6 @@ public partial interface IRealtimeClient
29
29
/// a usable ephemeral API token that can be used to authenticate browser clients<br/>
30
30
/// for the Realtime API.
31
31
/// </summary>
32
-
/// <param name="clientSecret">
33
-
/// Configuration options for the generated client secret.
34
-
/// </param>
35
32
/// <param name="include">
36
33
/// The set of items to include in the transcription. Current available items are:<br/>
37
34
/// - `item.input_audio_transcription.logprobs`
@@ -50,25 +47,26 @@ public partial interface IRealtimeClient
50
47
/// <param name="inputAudioTranscription">
51
48
/// Configuration for input audio transcription. The client can optionally set the language and prompt for transcription, these offer additional guidance to the transcription service.
52
49
/// </param>
53
-
/// <param name="modalities">
54
-
/// The set of modalities the model can respond with. To disable audio,<br/>
55
-
/// set this to ["text"].
50
+
/// <param name="model">
51
+
/// ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source Whisper V2 model).<br/>
52
+
/// Example: gpt-4o-transcribe
56
53
/// </param>
57
54
/// <param name="turnDetection">
58
-
/// Configuration for turn detection, ether Server VAD or Semantic VAD. This can be set to `null` to turn off, in which case the client must manually trigger model response.<br/>
59
-
/// Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.<br/>
60
-
/// Semantic VAD is more advanced and uses a turn detection model (in conjunction with VAD) to semantically estimate whether the user has finished speaking, then dynamically sets a timeout based on this probability. For example, if user audio trails off with "uhhm", the model will score a low probability of turn end and wait longer for the user to continue speaking. This can be useful for more natural conversations, but may have a higher latency.
55
+
/// Configuration for turn detection. Can be set to `null` to turn off. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech.
56
+
/// </param>
57
+
/// <param name="type">
58
+
/// The type of session to create. Always `transcription` for transcription sessions.
61
59
/// </param>
62
60
/// <param name="cancellationToken">The token to cancel the operation with</param>
0 commit comments