2 types derived from TextToSpeechOptions
Microsoft.Extensions.AI.Abstractions.Tests (2)
TextToSpeech\TextToSpeechOptionsTests.cs (2)
136
private class OptionsA :
TextToSpeechOptions
177
private class PassedNullToBaseOptions :
TextToSpeechOptions
22 instantiations of TextToSpeechOptions
Microsoft.Extensions.AI (1)
TextToSpeech\ConfigureOptionsTextToSpeechClient.cs (1)
59
options = options?.Clone() ??
new
();
Microsoft.Extensions.AI.Abstractions (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.TextToSpeechOptions.g.cs (1)
33
ObjectCreator = () => new global::Microsoft.Extensions.AI.
TextToSpeechOptions
(),
TextToSpeech\TextToSpeechOptions.cs (1)
102
public virtual TextToSpeechOptions Clone() =>
new
(this);
Microsoft.Extensions.AI.Abstractions.Tests (8)
Generated\361d1da7f942c932\TestJsonSerializerContext.TextToSpeechOptions.g.cs (1)
31
ObjectCreator = () => new global::Microsoft.Extensions.AI.
TextToSpeechOptions
(),
TextToSpeech\DelegatingTextToSpeechClientTests.cs (2)
25
var expectedOptions = new
TextToSpeechOptions
();
57
var expectedOptions = new
TextToSpeechOptions
();
TextToSpeech\TextToSpeechClientTests.cs (2)
17
var expectedOptions = new
TextToSpeechOptions
();
41
var expectedOptions = new
TextToSpeechOptions
();
TextToSpeech\TextToSpeechOptionsTests.cs (3)
15
TextToSpeechOptions options =
new
();
39
TextToSpeechOptions options =
new
();
83
TextToSpeechOptions options =
new
();
Microsoft.Extensions.AI.Integration.Tests (3)
TextToSpeechClientIntegrationTests.cs (3)
52
var response = await _client.GetAudioAsync("The quick brown fox jumps over the lazy dog.", new
TextToSpeechOptions
71
var response = await _client.GetAudioAsync("Testing audio format selection.", new
TextToSpeechOptions
90
var response = await _client.GetAudioAsync("This should be spoken quickly.", new
TextToSpeechOptions
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAITextToSpeechClientTests.cs (4)
109
var response = await client.GetAudioAsync("Hello world", new
TextToSpeechOptions
138
var response = await client.GetAudioAsync("Hello world", new
TextToSpeechOptions
171
var response = await client.GetAudioAsync("Hello world", new
TextToSpeechOptions
201
var response = await client.GetAudioAsync("Hello world",
new
()
Microsoft.Extensions.AI.Tests (4)
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (1)
35
TextToSpeechOptions? providedOptions = nullProvidedOptions ? null :
new
() { ModelId = "test" };
TextToSpeech\LoggingTextToSpeechClientTests.cs (2)
70
new
TextToSpeechOptions
{ VoiceId = "alloy" });
121
new
TextToSpeechOptions
{ VoiceId = "alloy" }))
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (1)
90
TextToSpeechOptions options =
new
()
177 references to TextToSpeechOptions
Microsoft.Extensions.AI (25)
TextToSpeech\ConfigureOptionsTextToSpeechClient.cs (13)
15
/// <summary>Represents a delegating text to speech client that configures a <see cref="
TextToSpeechOptions
"/> instance used by the remainder of the pipeline.</summary>
20
private readonly Action<
TextToSpeechOptions
> _configureOptions;
25
/// The delegate to invoke to configure the <see cref="
TextToSpeechOptions
"/> instance. It is passed a clone of the caller-supplied <see cref="
TextToSpeechOptions
"/> instance
29
/// The <paramref name="configure"/> delegate is passed either a new instance of <see cref="
TextToSpeechOptions
"/> if
30
/// the caller didn't supply a <see cref="
TextToSpeechOptions
"/> instance, or a clone (via <see cref="
TextToSpeechOptions
.Clone"/> of the caller-supplied
33
public ConfigureOptionsTextToSpeechClient(ITextToSpeechClient innerClient, Action<
TextToSpeechOptions
> configure)
41
string text,
TextToSpeechOptions
? options = null, CancellationToken cancellationToken = default)
48
string text,
TextToSpeechOptions
? options = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
56
/// <summary>Creates and configures the <see cref="
TextToSpeechOptions
"/> to pass along to the inner client.</summary>
57
private
TextToSpeechOptions
Configure(
TextToSpeechOptions
? options)
TextToSpeech\ConfigureOptionsTextToSpeechClientBuilderExtensions.cs (7)
16
/// Adds a callback that configures a <see cref="
TextToSpeechOptions
"/> to be passed to the next client in the pipeline.
20
/// The delegate to invoke to configure the <see cref="
TextToSpeechOptions
"/> instance.
21
/// It is passed a clone of the caller-supplied <see cref="
TextToSpeechOptions
"/> instance (or a newly constructed instance if the caller-supplied instance is <see langword="null"/>).
25
/// <see cref="
TextToSpeechOptions
"/> if the caller didn't supply a <see cref="
TextToSpeechOptions
"/> instance, or a clone (via <see cref="
TextToSpeechOptions
.Clone"/>)
30
this TextToSpeechClientBuilder builder, Action<
TextToSpeechOptions
> configure)
TextToSpeech\LoggingTextToSpeechClient.cs (2)
58
string text,
TextToSpeechOptions
? options = null, CancellationToken cancellationToken = default)
98
string text,
TextToSpeechOptions
? options = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
TextToSpeech\OpenTelemetryTextToSpeechClient.cs (3)
105
public override async Task<TextToSpeechResponse> GetAudioAsync(string text,
TextToSpeechOptions
? options = null, CancellationToken cancellationToken = default)
133
string text,
TextToSpeechOptions
? options = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
192
private Activity? CreateAndConfigureActivity(
TextToSpeechOptions
? options)
Microsoft.Extensions.AI.Abstractions (68)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
328
if (type == typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.TextToSpeechOptions.g.cs (52)
15
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
TextToSpeechOptions
>? _TextToSpeechOptions;
21
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
TextToSpeechOptions
> TextToSpeechOptions
24
get => _TextToSpeechOptions ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
TextToSpeechOptions
>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
));
27
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
TextToSpeechOptions
> Create_TextToSpeechOptions(global::System.Text.Json.JsonSerializerOptions options)
29
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.
TextToSpeechOptions
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
TextToSpeechOptions
> jsonTypeInfo))
31
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.
TextToSpeechOptions
>
37
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
41
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.
TextToSpeechOptions
>(options, objectInfo);
58
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
60
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).ModelId,
61
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).ModelId = value!,
68
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
78
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
80
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).VoiceId,
81
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).VoiceId = value!,
88
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("VoiceId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
98
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
100
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Language,
101
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Language = value!,
108
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("Language", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
118
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
120
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).AudioFormat,
121
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).AudioFormat = value!,
128
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("AudioFormat", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
138
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
140
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Speed,
141
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Speed = value!,
148
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("Speed", InstanceMemberBindingFlags, null, typeof(float?), global::System.Array.Empty<global::System.Type>(), null),
158
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
160
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Pitch,
161
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Pitch = value!,
168
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("Pitch", InstanceMemberBindingFlags, null, typeof(float?), global::System.Array.Empty<global::System.Type>(), null),
178
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
180
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Volume,
181
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Volume = value!,
188
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("Volume", InstanceMemberBindingFlags, null, typeof(float?), global::System.Array.Empty<global::System.Type>(), null),
198
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
200
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).AdditionalProperties,
201
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).AdditionalProperties = value!,
208
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null),
218
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
238
private void TextToSpeechOptionsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.
TextToSpeechOptions
? value)
248
string __value_ModelId = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).ModelId;
253
string __value_VoiceId = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).VoiceId;
258
string __value_Language = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).Language;
263
string __value_AudioFormat = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).AudioFormat;
268
float? __value_Speed = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).Speed;
274
float? __value_Pitch = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).Pitch;
280
float? __value_Volume = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).Volume;
286
global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).AdditionalProperties;
TextToSpeech\DelegatingTextToSpeechClient.cs (2)
45
string text,
TextToSpeechOptions
? options = null, CancellationToken cancellationToken = default)
52
string text,
TextToSpeechOptions
? options = null, CancellationToken cancellationToken = default)
TextToSpeech\ITextToSpeechClient.cs (2)
38
TextToSpeechOptions
? options = null,
49
TextToSpeechOptions
? options = null,
TextToSpeech\TextToSpeechClientMetadata.cs (1)
41
/// An individual request may override this value via <see cref="
TextToSpeechOptions
.ModelId"/>.
TextToSpeech\TextToSpeechOptions.cs (9)
15
/// <summary>Initializes a new instance of the <see cref="
TextToSpeechOptions
"/> class.</summary>
20
/// <summary>Initializes a new instance of the <see cref="
TextToSpeechOptions
"/> class, performing a shallow copy of all properties from <paramref name="other"/>.</summary>
21
protected TextToSpeechOptions(
TextToSpeechOptions
? other)
87
/// is invoked with a <see cref="
TextToSpeechOptions
" />, that implementation may convert the provided options into
92
/// instance further based on other settings supplied on this <see cref="
TextToSpeechOptions
" /> instance or from other inputs,
95
/// properties on <see cref="
TextToSpeechOptions
" />.
100
/// <summary>Produces a clone of the current <see cref="
TextToSpeechOptions
"/> instance.</summary>
101
/// <returns>A clone of the current <see cref="
TextToSpeechOptions
"/> instance.</returns>
102
public virtual
TextToSpeechOptions
Clone() => new(this);
Utilities\AIJsonUtilities.Defaults.cs (1)
132
[JsonSerializable(typeof(
TextToSpeechOptions
))]
Microsoft.Extensions.AI.Abstractions.Tests (73)
Generated\361d1da7f942c932\TestJsonSerializerContext.GetJsonTypeInfo.g.cs (1)
330
if (type == typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
))
Generated\361d1da7f942c932\TestJsonSerializerContext.TextToSpeechOptions.g.cs (52)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
TextToSpeechOptions
>? _TextToSpeechOptions;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
TextToSpeechOptions
> TextToSpeechOptions
22
get => _TextToSpeechOptions ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
TextToSpeechOptions
>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
TextToSpeechOptions
> Create_TextToSpeechOptions(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.
TextToSpeechOptions
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.
TextToSpeechOptions
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.
TextToSpeechOptions
>
35
ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null),
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.
TextToSpeechOptions
>(options, objectInfo);
56
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
58
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).ModelId,
59
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).ModelId = value!,
66
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
76
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
78
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).VoiceId,
79
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).VoiceId = value!,
86
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("VoiceId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
96
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
98
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Language,
99
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Language = value!,
106
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("Language", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
116
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
118
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).AudioFormat,
119
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).AudioFormat = value!,
126
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("AudioFormat", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null),
136
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
138
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Speed,
139
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Speed = value!,
146
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("Speed", InstanceMemberBindingFlags, null, typeof(float?), global::System.Array.Empty<global::System.Type>(), null),
156
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
158
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Pitch,
159
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Pitch = value!,
166
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("Pitch", InstanceMemberBindingFlags, null, typeof(float?), global::System.Array.Empty<global::System.Type>(), null),
176
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
178
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Volume,
179
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).Volume = value!,
186
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("Volume", InstanceMemberBindingFlags, null, typeof(float?), global::System.Array.Empty<global::System.Type>(), null),
196
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
198
Getter = static obj => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).AdditionalProperties,
199
Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)obj).AdditionalProperties = value!,
206
AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
).GetProperty("AdditionalProperties", InstanceMemberBindingFlags, null, typeof(global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary), global::System.Array.Empty<global::System.Type>(), null),
216
DeclaringType = typeof(global::Microsoft.Extensions.AI.
TextToSpeechOptions
),
236
private void TextToSpeechOptionsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.
TextToSpeechOptions
? value)
246
string __value_ModelId = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).ModelId;
251
string __value_VoiceId = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).VoiceId;
256
string __value_Language = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).Language;
261
string __value_AudioFormat = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).AudioFormat;
266
float? __value_Speed = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).Speed;
272
float? __value_Pitch = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).Pitch;
278
float? __value_Volume = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).Volume;
284
global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.
TextToSpeechOptions
)value).AdditionalProperties;
TestJsonSerializerContext.cs (1)
26
[JsonSerializable(typeof(
TextToSpeechOptions
))]
TestTextToSpeechClient.cs (4)
22
TextToSpeechOptions
?,
29
TextToSpeechOptions
?,
42
TextToSpeechOptions
? options = null,
48
TextToSpeechOptions
? options = null,
TextToSpeech\DelegatingTextToSpeechClientTests.cs (2)
25
var
expectedOptions = new TextToSpeechOptions();
57
var
expectedOptions = new TextToSpeechOptions();
TextToSpeech\TextToSpeechClientTests.cs (2)
17
var
expectedOptions = new TextToSpeechOptions();
41
var
expectedOptions = new TextToSpeechOptions();
TextToSpeech\TextToSpeechOptionsTests.cs (11)
15
TextToSpeechOptions
options = new();
25
TextToSpeechOptions
clone = options.Clone();
39
TextToSpeechOptions
options = new();
68
TextToSpeechOptions
clone = options.Clone();
83
TextToSpeechOptions
options = new();
101
TextToSpeechOptions
? deserialized = JsonSerializer.Deserialize(json, TestJsonSerializerContext.Default.TextToSpeechOptions);
129
TextToSpeechOptions
clone = b.Clone();
150
public override
TextToSpeechOptions
Clone() => new OptionsA(this);
167
public override
TextToSpeechOptions
Clone() => new OptionsB(this);
203
TextToSpeechOptions
? result = JsonSerializer.Deserialize<
TextToSpeechOptions
>(Json, AIJsonUtilities.DefaultOptions);
Microsoft.Extensions.AI.OpenAI (3)
OpenAITextToSpeechClient.cs (3)
58
string text,
TextToSpeechOptions
? options = null, CancellationToken cancellationToken = default)
81
string text,
TextToSpeechOptions
? options = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
158
private SpeechGenerationOptions ToOpenAISpeechOptions(
TextToSpeechOptions
? options)
Microsoft.Extensions.AI.Tests (8)
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestTextToSpeechClient.cs (4)
22
TextToSpeechOptions
?,
29
TextToSpeechOptions
?,
42
TextToSpeechOptions
? options = null,
48
TextToSpeechOptions
? options = null,
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (2)
35
TextToSpeechOptions
? providedOptions = nullProvidedOptions ? null : new() { ModelId = "test" };
36
TextToSpeechOptions
? returnedOptions = null;
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (2)
63
string text,
TextToSpeechOptions
? options, [EnumeratorCancellation] CancellationToken cancellationToken)
90
TextToSpeechOptions
options = new()