diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.InworldSpeechToTextStreamRealtimeClient.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.InworldSpeechToTextStreamRealtimeClient.g.cs
index aa45487..05983b6 100644
--- a/src/libs/Inworld/Generated/Inworld.Realtime.InworldSpeechToTextStreamRealtimeClient.g.cs
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.InworldSpeechToTextStreamRealtimeClient.g.cs
@@ -4,7 +4,9 @@
namespace Inworld.Realtime
{
///
- /// |
+ /// Bidirectional streaming STT. The client sends a `transcribe_config`
+ /// message, then a series of `audio_chunk` messages. The server emits
+ /// interim and final transcription results plus optional VAD events.
///
public sealed partial class InworldSpeechToTextStreamRealtimeClient : global::System.IDisposable, global::System.IAsyncDisposable
{
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.InworldTextToSpeechStreamRealtimeClient.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.InworldTextToSpeechStreamRealtimeClient.g.cs
index 22887f8..f1581de 100644
--- a/src/libs/Inworld/Generated/Inworld.Realtime.InworldTextToSpeechStreamRealtimeClient.g.cs
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.InworldTextToSpeechStreamRealtimeClient.g.cs
@@ -4,7 +4,10 @@
namespace Inworld.Realtime
{
///
- /// |
+ /// Bidirectional streaming TTS. The client opens a context (or multiple)
+ /// with a chosen voice/model, sends text fragments, and receives audio
+ /// chunks as they are generated. Up to 20 concurrent connections, 5
+ /// contexts per connection, 10-minute inactivity timeout.
///
public sealed partial class InworldTextToSpeechStreamRealtimeClient : global::System.IDisposable, global::System.IAsyncDisposable
{
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamApplyTextNormalization.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamApplyTextNormalization.g.cs
new file mode 100644
index 0000000..a3f5d6f
--- /dev/null
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamApplyTextNormalization.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Inworld.Realtime.JsonConverters
+{
+ ///
+ public sealed class StreamApplyTextNormalizationJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Inworld.Realtime.StreamApplyTextNormalization Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Inworld.Realtime.StreamApplyTextNormalizationExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Inworld.Realtime.StreamApplyTextNormalization)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Inworld.Realtime.StreamApplyTextNormalization);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Inworld.Realtime.StreamApplyTextNormalization value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Inworld.Realtime.StreamApplyTextNormalizationExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamApplyTextNormalizationNullable.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamApplyTextNormalizationNullable.g.cs
new file mode 100644
index 0000000..77bdbf3
--- /dev/null
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamApplyTextNormalizationNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Inworld.Realtime.JsonConverters
+{
+ ///
+ public sealed class StreamApplyTextNormalizationNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Inworld.Realtime.StreamApplyTextNormalization? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Inworld.Realtime.StreamApplyTextNormalizationExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Inworld.Realtime.StreamApplyTextNormalization)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Inworld.Realtime.StreamApplyTextNormalization?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Inworld.Realtime.StreamApplyTextNormalization? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Inworld.Realtime.StreamApplyTextNormalizationExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamAudioEncoding.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamAudioEncoding.g.cs
new file mode 100644
index 0000000..6ecf4b2
--- /dev/null
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamAudioEncoding.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Inworld.Realtime.JsonConverters
+{
+ ///
+ public sealed class StreamAudioEncodingJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Inworld.Realtime.StreamAudioEncoding Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Inworld.Realtime.StreamAudioEncodingExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Inworld.Realtime.StreamAudioEncoding)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Inworld.Realtime.StreamAudioEncoding);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Inworld.Realtime.StreamAudioEncoding value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Inworld.Realtime.StreamAudioEncodingExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamAudioEncodingNullable.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamAudioEncodingNullable.g.cs
new file mode 100644
index 0000000..f0eb4b7
--- /dev/null
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamAudioEncodingNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Inworld.Realtime.JsonConverters
+{
+ ///
+ public sealed class StreamAudioEncodingNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Inworld.Realtime.StreamAudioEncoding? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Inworld.Realtime.StreamAudioEncodingExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Inworld.Realtime.StreamAudioEncoding)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Inworld.Realtime.StreamAudioEncoding?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Inworld.Realtime.StreamAudioEncoding? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Inworld.Realtime.StreamAudioEncodingExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamDeliveryMode.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamDeliveryMode.g.cs
new file mode 100644
index 0000000..babd42c
--- /dev/null
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamDeliveryMode.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Inworld.Realtime.JsonConverters
+{
+ ///
+ public sealed class StreamDeliveryModeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Inworld.Realtime.StreamDeliveryMode Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Inworld.Realtime.StreamDeliveryModeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Inworld.Realtime.StreamDeliveryMode)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Inworld.Realtime.StreamDeliveryMode);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Inworld.Realtime.StreamDeliveryMode value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Inworld.Realtime.StreamDeliveryModeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamDeliveryModeNullable.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamDeliveryModeNullable.g.cs
new file mode 100644
index 0000000..dd3ec46
--- /dev/null
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamDeliveryModeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Inworld.Realtime.JsonConverters
+{
+ ///
+ public sealed class StreamDeliveryModeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Inworld.Realtime.StreamDeliveryMode? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Inworld.Realtime.StreamDeliveryModeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Inworld.Realtime.StreamDeliveryMode)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Inworld.Realtime.StreamDeliveryMode?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Inworld.Realtime.StreamDeliveryMode? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Inworld.Realtime.StreamDeliveryModeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamTimestampTransportStrategy.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamTimestampTransportStrategy.g.cs
new file mode 100644
index 0000000..4d9d928
--- /dev/null
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamTimestampTransportStrategy.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Inworld.Realtime.JsonConverters
+{
+ ///
+ public sealed class StreamTimestampTransportStrategyJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Inworld.Realtime.StreamTimestampTransportStrategy Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Inworld.Realtime.StreamTimestampTransportStrategyExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Inworld.Realtime.StreamTimestampTransportStrategy)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Inworld.Realtime.StreamTimestampTransportStrategy);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Inworld.Realtime.StreamTimestampTransportStrategy value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Inworld.Realtime.StreamTimestampTransportStrategyExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamTimestampTransportStrategyNullable.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamTimestampTransportStrategyNullable.g.cs
new file mode 100644
index 0000000..cb8b37d
--- /dev/null
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamTimestampTransportStrategyNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Inworld.Realtime.JsonConverters
+{
+ ///
+ public sealed class StreamTimestampTransportStrategyNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Inworld.Realtime.StreamTimestampTransportStrategy? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Inworld.Realtime.StreamTimestampTransportStrategyExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Inworld.Realtime.StreamTimestampTransportStrategy)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Inworld.Realtime.StreamTimestampTransportStrategy?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Inworld.Realtime.StreamTimestampTransportStrategy? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Inworld.Realtime.StreamTimestampTransportStrategyExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamTimestampType.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamTimestampType.g.cs
new file mode 100644
index 0000000..d5c8fc0
--- /dev/null
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamTimestampType.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Inworld.Realtime.JsonConverters
+{
+ ///
+ public sealed class StreamTimestampTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Inworld.Realtime.StreamTimestampType Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Inworld.Realtime.StreamTimestampTypeExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Inworld.Realtime.StreamTimestampType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Inworld.Realtime.StreamTimestampType);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Inworld.Realtime.StreamTimestampType value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Inworld.Realtime.StreamTimestampTypeExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamTimestampTypeNullable.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamTimestampTypeNullable.g.cs
new file mode 100644
index 0000000..b564f8e
--- /dev/null
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.StreamTimestampTypeNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Inworld.Realtime.JsonConverters
+{
+ ///
+ public sealed class StreamTimestampTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Inworld.Realtime.StreamTimestampType? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Inworld.Realtime.StreamTimestampTypeExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Inworld.Realtime.StreamTimestampType)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Inworld.Realtime.StreamTimestampType?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Inworld.Realtime.StreamTimestampType? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Inworld.Realtime.StreamTimestampTypeExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.SttStreamAudioEncoding.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.SttStreamAudioEncoding.g.cs
new file mode 100644
index 0000000..7f01ba6
--- /dev/null
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.SttStreamAudioEncoding.g.cs
@@ -0,0 +1,53 @@
+#nullable enable
+
+namespace Inworld.Realtime.JsonConverters
+{
+ ///
+ public sealed class SttStreamAudioEncodingJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Inworld.Realtime.SttStreamAudioEncoding Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Inworld.Realtime.SttStreamAudioEncodingExtensions.ToEnum(stringValue) ?? default;
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Inworld.Realtime.SttStreamAudioEncoding)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Inworld.Realtime.SttStreamAudioEncoding);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Inworld.Realtime.SttStreamAudioEncoding value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ writer.WriteStringValue(global::Inworld.Realtime.SttStreamAudioEncodingExtensions.ToValueString(value));
+ }
+ }
+}
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.SttStreamAudioEncodingNullable.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.SttStreamAudioEncodingNullable.g.cs
new file mode 100644
index 0000000..1feed6a
--- /dev/null
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonConverters.SttStreamAudioEncodingNullable.g.cs
@@ -0,0 +1,60 @@
+#nullable enable
+
+namespace Inworld.Realtime.JsonConverters
+{
+ ///
+ public sealed class SttStreamAudioEncodingNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter
+ {
+ ///
+ public override global::Inworld.Realtime.SttStreamAudioEncoding? Read(
+ ref global::System.Text.Json.Utf8JsonReader reader,
+ global::System.Type typeToConvert,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ switch (reader.TokenType)
+ {
+ case global::System.Text.Json.JsonTokenType.String:
+ {
+ var stringValue = reader.GetString();
+ if (stringValue != null)
+ {
+ return global::Inworld.Realtime.SttStreamAudioEncodingExtensions.ToEnum(stringValue);
+ }
+
+ break;
+ }
+ case global::System.Text.Json.JsonTokenType.Number:
+ {
+ var numValue = reader.GetInt32();
+ return (global::Inworld.Realtime.SttStreamAudioEncoding)numValue;
+ }
+ case global::System.Text.Json.JsonTokenType.Null:
+ {
+ return default(global::Inworld.Realtime.SttStreamAudioEncoding?);
+ }
+ default:
+ throw new global::System.ArgumentOutOfRangeException(nameof(reader));
+ }
+
+ return default;
+ }
+
+ ///
+ public override void Write(
+ global::System.Text.Json.Utf8JsonWriter writer,
+ global::Inworld.Realtime.SttStreamAudioEncoding? value,
+ global::System.Text.Json.JsonSerializerOptions options)
+ {
+ writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer));
+
+ if (value == null)
+ {
+ writer.WriteNullValue();
+ }
+ else
+ {
+ writer.WriteStringValue(global::Inworld.Realtime.SttStreamAudioEncodingExtensions.ToValueString(value.Value));
+ }
+ }
+ }
+}
diff --git a/src/libs/Inworld/Generated/Inworld.Realtime.JsonSerializerContext.g.cs b/src/libs/Inworld/Generated/Inworld.Realtime.JsonSerializerContext.g.cs
index 7358a55..76e1917 100644
--- a/src/libs/Inworld/Generated/Inworld.Realtime.JsonSerializerContext.g.cs
+++ b/src/libs/Inworld/Generated/Inworld.Realtime.JsonSerializerContext.g.cs
@@ -13,16 +13,45 @@ namespace Inworld.Realtime
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Converters = new global::System.Type[]
{
+ typeof(global::Inworld.Realtime.JsonConverters.StreamAudioEncodingJsonConverter),
+
+ typeof(global::Inworld.Realtime.JsonConverters.StreamAudioEncodingNullableJsonConverter),
+
+ typeof(global::Inworld.Realtime.JsonConverters.StreamTimestampTypeJsonConverter),
+
+ typeof(global::Inworld.Realtime.JsonConverters.StreamTimestampTypeNullableJsonConverter),
+
+ typeof(global::Inworld.Realtime.JsonConverters.StreamApplyTextNormalizationJsonConverter),
+
+ typeof(global::Inworld.Realtime.JsonConverters.StreamApplyTextNormalizationNullableJsonConverter),
+
+ typeof(global::Inworld.Realtime.JsonConverters.StreamDeliveryModeJsonConverter),
+
+ typeof(global::Inworld.Realtime.JsonConverters.StreamDeliveryModeNullableJsonConverter),
+
+ typeof(global::Inworld.Realtime.JsonConverters.StreamTimestampTransportStrategyJsonConverter),
+
+ typeof(global::Inworld.Realtime.JsonConverters.StreamTimestampTransportStrategyNullableJsonConverter),
+
+ typeof(global::Inworld.Realtime.JsonConverters.SttStreamAudioEncodingJsonConverter),
+
+ typeof(global::Inworld.Realtime.JsonConverters.SttStreamAudioEncodingNullableJsonConverter),
+
typeof(global::Inworld.Realtime.JsonConverters.TextToSpeechStreamServerEventJsonConverter),
typeof(global::Inworld.Realtime.JsonConverters.SpeechToTextStreamServerEventJsonConverter),
})]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Inworld.Realtime.JsonSerializerContextTypes))]
- [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Inworld.Realtime.StreamAudioEncoding), TypeInfoPropertyName = "StreamAudioEncoding2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Inworld.Realtime.StreamTimestampType), TypeInfoPropertyName = "StreamTimestampType2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Inworld.Realtime.StreamApplyTextNormalization), TypeInfoPropertyName = "StreamApplyTextNormalization2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Inworld.Realtime.StreamDeliveryMode), TypeInfoPropertyName = "StreamDeliveryMode2")]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Inworld.Realtime.StreamTimestampTransportStrategy), TypeInfoPropertyName = "StreamTimestampTransportStrategy2")]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Inworld.Realtime.StreamAudioConfig))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(int))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(double))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Inworld.Realtime.StreamStatus))]
+ [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList