2 types derived from TextToSpeechOptions
Microsoft.Extensions.AI.Abstractions.Tests (2)
TextToSpeech\TextToSpeechOptionsTests.cs (2)
136private class OptionsA : TextToSpeechOptions 177private class PassedNullToBaseOptions : TextToSpeechOptions
22 instantiations of TextToSpeechOptions
Microsoft.Extensions.AI (1)
TextToSpeech\ConfigureOptionsTextToSpeechClient.cs (1)
59options = options?.Clone() ?? new();
Microsoft.Extensions.AI.Abstractions (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.TextToSpeechOptions.g.cs (1)
33ObjectCreator = () => new global::Microsoft.Extensions.AI.TextToSpeechOptions(),
TextToSpeech\TextToSpeechOptions.cs (1)
102public virtual TextToSpeechOptions Clone() => new(this);
Microsoft.Extensions.AI.Abstractions.Tests (8)
Generated\361d1da7f942c932\TestJsonSerializerContext.TextToSpeechOptions.g.cs (1)
31ObjectCreator = () => new global::Microsoft.Extensions.AI.TextToSpeechOptions(),
TextToSpeech\DelegatingTextToSpeechClientTests.cs (2)
25var expectedOptions = new TextToSpeechOptions(); 57var expectedOptions = new TextToSpeechOptions();
TextToSpeech\TextToSpeechClientTests.cs (2)
17var expectedOptions = new TextToSpeechOptions(); 41var expectedOptions = new TextToSpeechOptions();
TextToSpeech\TextToSpeechOptionsTests.cs (3)
15TextToSpeechOptions options = new(); 39TextToSpeechOptions options = new(); 83TextToSpeechOptions options = new();
Microsoft.Extensions.AI.Integration.Tests (3)
TextToSpeechClientIntegrationTests.cs (3)
52var response = await _client.GetAudioAsync("The quick brown fox jumps over the lazy dog.", new TextToSpeechOptions 71var response = await _client.GetAudioAsync("Testing audio format selection.", new TextToSpeechOptions 90var response = await _client.GetAudioAsync("This should be spoken quickly.", new TextToSpeechOptions
Microsoft.Extensions.AI.OpenAI.Tests (4)
OpenAITextToSpeechClientTests.cs (4)
109var response = await client.GetAudioAsync("Hello world", new TextToSpeechOptions 138var response = await client.GetAudioAsync("Hello world", new TextToSpeechOptions 171var response = await client.GetAudioAsync("Hello world", new TextToSpeechOptions 201var response = await client.GetAudioAsync("Hello world", new()
Microsoft.Extensions.AI.Tests (4)
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (1)
35TextToSpeechOptions? providedOptions = nullProvidedOptions ? null : new() { ModelId = "test" };
TextToSpeech\LoggingTextToSpeechClientTests.cs (2)
70new TextToSpeechOptions { VoiceId = "alloy" }); 121new TextToSpeechOptions { VoiceId = "alloy" }))
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (1)
90TextToSpeechOptions 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> 20private 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 33public ConfigureOptionsTextToSpeechClient(ITextToSpeechClient innerClient, Action<TextToSpeechOptions> configure) 41string text, TextToSpeechOptions? options = null, CancellationToken cancellationToken = default) 48string 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> 57private 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"/>) 30this TextToSpeechClientBuilder builder, Action<TextToSpeechOptions> configure)
TextToSpeech\LoggingTextToSpeechClient.cs (2)
58string text, TextToSpeechOptions? options = null, CancellationToken cancellationToken = default) 98string text, TextToSpeechOptions? options = null, [EnumeratorCancellation] CancellationToken cancellationToken = default)
TextToSpeech\OpenTelemetryTextToSpeechClient.cs (3)
105public override async Task<TextToSpeechResponse> GetAudioAsync(string text, TextToSpeechOptions? options = null, CancellationToken cancellationToken = default) 133string text, TextToSpeechOptions? options = null, [EnumeratorCancellation] CancellationToken cancellationToken = default) 192private Activity? CreateAndConfigureActivity(TextToSpeechOptions? options)
Microsoft.Extensions.AI.Abstractions (68)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.GetJsonTypeInfo.g.cs (1)
328if (type == typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\JsonContext.TextToSpeechOptions.g.cs (52)
15private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechOptions>? _TextToSpeechOptions; 21public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechOptions> TextToSpeechOptions 24get => _TextToSpeechOptions ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechOptions>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions)); 27private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechOptions> Create_TextToSpeechOptions(global::System.Text.Json.JsonSerializerOptions options) 29if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.TextToSpeechOptions>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechOptions> jsonTypeInfo)) 31var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.TextToSpeechOptions> 37ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.TextToSpeechOptions>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 60Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).ModelId, 61Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).ModelId = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 78DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 80Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).VoiceId, 81Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).VoiceId = value!, 88AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("VoiceId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 98DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 100Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Language, 101Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Language = value!, 108AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("Language", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 118DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 120Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).AudioFormat, 121Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).AudioFormat = value!, 128AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("AudioFormat", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 138DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 140Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Speed, 141Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Speed = value!, 148AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("Speed", InstanceMemberBindingFlags, null, typeof(float?), global::System.Array.Empty<global::System.Type>(), null), 158DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 160Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Pitch, 161Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Pitch = value!, 168AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("Pitch", InstanceMemberBindingFlags, null, typeof(float?), global::System.Array.Empty<global::System.Type>(), null), 178DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 180Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Volume, 181Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Volume = value!, 188AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("Volume", InstanceMemberBindingFlags, null, typeof(float?), global::System.Array.Empty<global::System.Type>(), null), 198DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 200Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).AdditionalProperties, 201Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).AdditionalProperties = value!, 208AttributeProviderFactory = 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), 218DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 238private void TextToSpeechOptionsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.TextToSpeechOptions? value) 248string __value_ModelId = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).ModelId; 253string __value_VoiceId = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).VoiceId; 258string __value_Language = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).Language; 263string __value_AudioFormat = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).AudioFormat; 268float? __value_Speed = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).Speed; 274float? __value_Pitch = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).Pitch; 280float? __value_Volume = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).Volume; 286global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).AdditionalProperties;
TextToSpeech\DelegatingTextToSpeechClient.cs (2)
45string text, TextToSpeechOptions? options = null, CancellationToken cancellationToken = default) 52string text, TextToSpeechOptions? options = null, CancellationToken cancellationToken = default)
TextToSpeech\ITextToSpeechClient.cs (2)
38TextToSpeechOptions? options = null, 49TextToSpeechOptions? 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> 21protected 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> 102public 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)
330if (type == typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions))
Generated\361d1da7f942c932\TestJsonSerializerContext.TextToSpeechOptions.g.cs (52)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechOptions>? _TextToSpeechOptions; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechOptions> TextToSpeechOptions 22get => _TextToSpeechOptions ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechOptions>)Options.GetTypeInfo(typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechOptions> Create_TextToSpeechOptions(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.Extensions.AI.TextToSpeechOptions>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.Extensions.AI.TextToSpeechOptions> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.Extensions.AI.TextToSpeechOptions> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 39jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.Extensions.AI.TextToSpeechOptions>(options, objectInfo); 56DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 58Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).ModelId, 59Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).ModelId = value!, 66AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("ModelId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 76DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 78Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).VoiceId, 79Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).VoiceId = value!, 86AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("VoiceId", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 96DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 98Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Language, 99Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Language = value!, 106AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("Language", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 116DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 118Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).AudioFormat, 119Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).AudioFormat = value!, 126AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("AudioFormat", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 136DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 138Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Speed, 139Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Speed = value!, 146AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("Speed", InstanceMemberBindingFlags, null, typeof(float?), global::System.Array.Empty<global::System.Type>(), null), 156DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 158Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Pitch, 159Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Pitch = value!, 166AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("Pitch", InstanceMemberBindingFlags, null, typeof(float?), global::System.Array.Empty<global::System.Type>(), null), 176DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 178Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Volume, 179Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).Volume = value!, 186AttributeProviderFactory = static () => typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions).GetProperty("Volume", InstanceMemberBindingFlags, null, typeof(float?), global::System.Array.Empty<global::System.Type>(), null), 196DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 198Getter = static obj => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).AdditionalProperties, 199Setter = static (obj, value) => ((global::Microsoft.Extensions.AI.TextToSpeechOptions)obj).AdditionalProperties = value!, 206AttributeProviderFactory = 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), 216DeclaringType = typeof(global::Microsoft.Extensions.AI.TextToSpeechOptions), 236private void TextToSpeechOptionsSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::Microsoft.Extensions.AI.TextToSpeechOptions? value) 246string __value_ModelId = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).ModelId; 251string __value_VoiceId = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).VoiceId; 256string __value_Language = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).Language; 261string __value_AudioFormat = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).AudioFormat; 266float? __value_Speed = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).Speed; 272float? __value_Pitch = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).Pitch; 278float? __value_Volume = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).Volume; 284global::Microsoft.Extensions.AI.AdditionalPropertiesDictionary __value_AdditionalProperties = ((global::Microsoft.Extensions.AI.TextToSpeechOptions)value).AdditionalProperties;
TestJsonSerializerContext.cs (1)
26[JsonSerializable(typeof(TextToSpeechOptions))]
TestTextToSpeechClient.cs (4)
22TextToSpeechOptions?, 29TextToSpeechOptions?, 42TextToSpeechOptions? options = null, 48TextToSpeechOptions? options = null,
TextToSpeech\DelegatingTextToSpeechClientTests.cs (2)
25var expectedOptions = new TextToSpeechOptions(); 57var expectedOptions = new TextToSpeechOptions();
TextToSpeech\TextToSpeechClientTests.cs (2)
17var expectedOptions = new TextToSpeechOptions(); 41var expectedOptions = new TextToSpeechOptions();
TextToSpeech\TextToSpeechOptionsTests.cs (11)
15TextToSpeechOptions options = new(); 25TextToSpeechOptions clone = options.Clone(); 39TextToSpeechOptions options = new(); 68TextToSpeechOptions clone = options.Clone(); 83TextToSpeechOptions options = new(); 101TextToSpeechOptions? deserialized = JsonSerializer.Deserialize(json, TestJsonSerializerContext.Default.TextToSpeechOptions); 129TextToSpeechOptions clone = b.Clone(); 150public override TextToSpeechOptions Clone() => new OptionsA(this); 167public override TextToSpeechOptions Clone() => new OptionsB(this); 203TextToSpeechOptions? result = JsonSerializer.Deserialize<TextToSpeechOptions>(Json, AIJsonUtilities.DefaultOptions);
Microsoft.Extensions.AI.OpenAI (3)
OpenAITextToSpeechClient.cs (3)
58string text, TextToSpeechOptions? options = null, CancellationToken cancellationToken = default) 81string text, TextToSpeechOptions? options = null, [EnumeratorCancellation] CancellationToken cancellationToken = default) 158private SpeechGenerationOptions ToOpenAISpeechOptions(TextToSpeechOptions? options)
Microsoft.Extensions.AI.Tests (8)
parent\Microsoft.Extensions.AI.Abstractions.Tests\TestTextToSpeechClient.cs (4)
22TextToSpeechOptions?, 29TextToSpeechOptions?, 42TextToSpeechOptions? options = null, 48TextToSpeechOptions? options = null,
TextToSpeech\ConfigureOptionsTextToSpeechClientTests.cs (2)
35TextToSpeechOptions? providedOptions = nullProvidedOptions ? null : new() { ModelId = "test" }; 36TextToSpeechOptions? returnedOptions = null;
TextToSpeech\OpenTelemetryTextToSpeechClientTests.cs (2)
63string text, TextToSpeechOptions? options, [EnumeratorCancellation] CancellationToken cancellationToken) 90TextToSpeechOptions options = new()