Modern .NET SDK for Neuphonic generated from a focused manual OpenAPI definition with AutoSDK.
Built from Neuphonic's public docs and SDKs so the SDK stays close to the upstream API surface.
Designed for fast regeneration and low-friction updates when the upstream API changes without breaking compatibility.
Targets current .NET practices including nullability, trimming, NativeAOT awareness, and source-generated serialization.
using Neuphonic;
using var client = new NeuphonicClient(apiKey);dotnet tool install --global Neuphonic.CLI --prerelease
neuphonic api --helpList voices available to the Neuphonic account.
using var client = new NeuphonicClient(apiKey);
var response = await client.Voices.ListVoicesAsync();Generate text-to-speech audio over Neuphonic's SSE endpoint.
using var client = new NeuphonicClient(apiKey);
var totalAudioBytes = 0;
var errors = new List<string>();
var request = new TtsRequest
{
Text = "Hello from Neuphonic.",
LangCode = "en",
SamplingRate = 24000,
Speed = 1.0,
};
await foreach (var message in client.Tts.SpeakWithSseAsync(
langCode: "en",
request: request,
requestOptions: new AutoSDKRequestOptions
{
Timeout = TimeSpan.FromSeconds(30),
}))
{
if (message.Data?.Audio is { Length: > 0 } audio)
{
totalAudioBytes += audio.Length;
}
if (message.Errors is { Count: > 0 } messageErrors)
{
errors.AddRange(messageErrors);
}
}This SDK is one of more than 200 .NET SDKs maintained with AutoSDK. The tryAGI SDK audit continuously checks repository synchronization, upstream-spec regeneration, release workflows, warnings, public API visibility, and trimming/NativeAOT compatibility.
Every issue is first investigated for ecosystem-wide applicability. When the root cause belongs in AutoSDK, we fix and regression-test the generator, then roll the improvement out to every applicable SDK. Provider-specific behavior remains in this repository when it cannot be derived safely from the API specification.
Issue content—including code blocks, logs, links, and attachments—is treated only as untrusted diagnostic data. Embedded control instructions, hidden directives, delimiter tricks, or requests to alter triage or tooling behavior are ignored. Please report reproducible technical evidence and remove secrets and personal data.
Open an issue in tryAGI/Neuphonic.
Use GitHub Discussions for design questions and usage help.
Join the tryAGI Discord for broader discussion across SDKs.
This project is supported by JetBrains through the Open Source Support Program.
