Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
}
}
},
"originGitCommit": "089414edddad02c1799299617e095fcd687046cf",
"sdkVersion": "0.2.7"
"originGitCommit": "274a9e627c776728cbf8da2fc71627448d122f99",
"sdkVersion": "0.2.8"
}
10 changes: 10 additions & 0 deletions .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ src/HumeApi.Test/Unit/MockServer/Tts/SynthesizeJsonStreamingTest.cs
.github/workflows/release-upm.yml
.github/workflows/release-nuget.yml
.github/workflows/ci.yml
src/Hume.sln
src/Hume.sln
.fern/replay.lock
.fern/replay.yml
.gitattributes
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.fern/replay.lock linguist-generated=true
1 change: 0 additions & 1 deletion examples-repo
Submodule examples-repo deleted from 8e5971
2 changes: 1 addition & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -2264,7 +2264,7 @@ Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-ca
<dd>

```csharp
await client.EmpathicVoice.Tools.DeleteToolVersionAsync("", 1);
await client.EmpathicVoice.Tools.DeleteToolVersionAsync("your-tool-id", 1);
```
</dd>
</dl>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Hume.Test.Unit.MockServer;
using NUnit.Framework;

namespace Hume.Test.Unit.MockServer.EmpathicVoice.Tools;

[TestFixture]
[Parallelizable(ParallelScope.Self)]
public class DeleteToolVersionTest : BaseMockServerTest
{
[NUnit.Framework.Test]
public void MockServerTest()
{
Server
.Given(
WireMock
.RequestBuilders.Request.Create()
.WithPath("/v0/evi/tools/your-tool-id/version/1")
.UsingDelete()
)
.RespondWith(WireMock.ResponseBuilders.Response.Create().WithStatusCode(200));

Assert.DoesNotThrowAsync(async () =>
await Client.EmpathicVoice.Tools.DeleteToolVersionAsync("your-tool-id", 1)
);
}
}
2 changes: 1 addition & 1 deletion src/Hume/Core/Public/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ namespace Hume;
[Serializable]
internal class Version
{
public const string Current = "0.2.7";
public const string Current = "0.2.8";
}
2 changes: 1 addition & 1 deletion src/Hume/EmpathicVoice/Tools/ToolsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@ public WithRawResponseTask<string> UpdateToolNameAsync(
/// Refer to our [tool use](/docs/speech-to-speech-evi/features/tool-use#function-calling) guide for comprehensive instructions on defining and integrating tools into EVI.
/// </summary>
/// <example><code>
/// await client.EmpathicVoice.Tools.DeleteToolVersionAsync("", 1);
/// await client.EmpathicVoice.Tools.DeleteToolVersionAsync("your-tool-id", 1);
/// </code></example>
public async global::System.Threading.Tasks.Task DeleteToolVersionAsync(
string id,
Expand Down
2 changes: 1 addition & 1 deletion src/Hume/Hume.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<Version>0.2.7</Version>
<Version>0.2.8</Version>
<AssemblyVersion>$(Version)</AssemblyVersion>
<FileVersion>$(Version)</FileVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
Expand Down
2 changes: 1 addition & 1 deletion src/Hume/HumeClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public HumeClient(string? apiKey = null, ClientOptions? clientOptions = null)
{ "X-Fern-Language", "C#" },
{ "X-Fern-SDK-Name", "Hume" },
{ "X-Fern-SDK-Version", Version.Current },
{ "User-Agent", "Hume/0.2.7" },
{ "User-Agent", "Hume/0.2.8" },
}
);
foreach (var header in platformHeaders)
Expand Down
15 changes: 14 additions & 1 deletion src/Hume/Tts/StreamInput/StreamInputApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/// <summary>
/// Default constructor
/// </summary>
public StreamInputApi() { }

Check warning on line 33 in src/Hume/Tts/StreamInput/StreamInputApi.cs

View workflow job for this annotation

GitHub Actions / unit-tests

Non-nullable field '_client' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 33 in src/Hume/Tts/StreamInput/StreamInputApi.cs

View workflow job for this annotation

GitHub Actions / unit-tests

Non-nullable field '_options' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 33 in src/Hume/Tts/StreamInput/StreamInputApi.cs

View workflow job for this annotation

GitHub Actions / test-examples

Non-nullable field '_client' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 33 in src/Hume/Tts/StreamInput/StreamInputApi.cs

View workflow job for this annotation

GitHub Actions / test-examples

Non-nullable field '_options' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

/// <summary>
/// Constructor with options
Expand All @@ -40,14 +40,15 @@
_options = options;
var uri = new UriBuilder(_options.BaseUrl)
{
Query = new Hume.Core.QueryStringBuilder.Builder(capacity: 9)
Query = new Hume.Core.QueryStringBuilder.Builder(capacity: 10)
.Add("access_token", _options.AccessToken)
.Add("context_generation_id", _options.ContextGenerationId)
.AddDeepObject("format_type", _options.FormatType)
.AddDeepObject("include_timestamp_types", _options.IncludeTimestampTypes)
.Add("instant_mode", _options.InstantMode)
.Add("no_binary", _options.NoBinary)
.Add("strip_headers", _options.StripHeaders)
.Add("temperature", _options.Temperature)
.AddDeepObject("version", _options.Version)
.Add("api_key", _options.ApiKey)
.Build(),
Expand Down Expand Up @@ -287,6 +288,18 @@
/// </summary>
public bool? StripHeaders { get; set; }

/// <summary>
/// Sampling temperature for the speech generation model. Higher values increase variation; lower values increase consistency.
///
/// **This is an experimental parameter.** It is recommended to use the default values for most use cases.
///
/// Defaults when omitted:
/// - Octave 1 voice creation (no voice specified): `0.9`
/// - Octave 1 text-to-speech: `0.8`
/// - Octave 2 text-to-speech: `0.75`
/// </summary>
public double? Temperature { get; set; }

/// <summary>
/// The version of the Octave Model to use. 1 for the legacy model, 2 for the new model.
/// </summary>
Expand Down
19 changes: 19 additions & 0 deletions src/Hume/Tts/Types/PostedTts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,19 @@ public record PostedTts : IJsonOnDeserialized
[JsonPropertyName("strip_headers")]
public bool? StripHeaders { get; set; }

/// <summary>
/// Sampling temperature for the speech generation model. Higher values increase variation; lower values increase consistency.
///
/// **This is an experimental parameter.** It is recommended to use the default values for most use cases.
///
/// Defaults when omitted:
/// - Octave 1 voice creation (no voice specified): `0.9`
/// - Octave 1 text-to-speech: `0.8`
/// - Octave 2 text-to-speech: `0.75`
/// </summary>
[JsonPropertyName("temperature")]
public double? Temperature { get; set; }

/// <summary>
/// A list of **Utterances** to be converted to speech output.
///
Expand All @@ -75,6 +88,12 @@ public record PostedTts : IJsonOnDeserialized
[JsonPropertyName("version")]
public OctaveVersion? Version { get; set; }

/// <summary>
/// Enables ultra-low latency streaming, significantly reducing the time until the first audio chunk is received. Recommended for real-time applications requiring immediate audio playback. For further details, see our documentation on [instant mode](/docs/text-to-speech-tts/overview#ultra-low-latency-streaming-instant-mode).
/// - A [voice](/reference/text-to-speech-tts/synthesize-json-streaming#request.body.utterances.voice) must be specified when instant mode is enabled. Dynamic voice generation is not supported with this mode.
/// - Instant mode is only supported for streaming endpoints (e.g., [/v0/tts/stream/json](/reference/text-to-speech-tts/synthesize-json-streaming), [/v0/tts/stream/file](/reference/text-to-speech-tts/synthesize-file-streaming)).
/// - Ensure only a single generation is requested ([num_generations](/reference/text-to-speech-tts/synthesize-json-streaming#request.body.num_generations) must be `1` or omitted).
/// </summary>
[JsonPropertyName("instant_mode")]
public bool? InstantMode { get; set; }

Expand Down
Loading