TextToVoice.Engines.Voxtral 0.1.0-alpha.0.19

This is a prerelease version of TextToVoice.Engines.Voxtral.
dotnet add package TextToVoice.Engines.Voxtral --version 0.1.0-alpha.0.19
                    
NuGet\Install-Package TextToVoice.Engines.Voxtral -Version 0.1.0-alpha.0.19
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TextToVoice.Engines.Voxtral" Version="0.1.0-alpha.0.19" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TextToVoice.Engines.Voxtral" Version="0.1.0-alpha.0.19" />
                    
Directory.Packages.props
<PackageReference Include="TextToVoice.Engines.Voxtral" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TextToVoice.Engines.Voxtral --version 0.1.0-alpha.0.19
                    
#r "nuget: TextToVoice.Engines.Voxtral, 0.1.0-alpha.0.19"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TextToVoice.Engines.Voxtral@0.1.0-alpha.0.19
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TextToVoice.Engines.Voxtral&version=0.1.0-alpha.0.19&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=TextToVoice.Engines.Voxtral&version=0.1.0-alpha.0.19&prerelease
                    
Install as a Cake Tool

TextToVoice.Engines.Voxtral

Cloud-based TTS engine using the Mistral AI Voxtral API. Supports streaming SSE and zero-shot voice cloning via reference audio.

Installation

dotnet add package TextToVoice.Engines.Voxtral

Requires an API key from console.mistral.ai.

Quick Start

using TextToVoice.Engines.Voxtral;

var options = new VoxtralOptions
{
    ApiKey = "your_api_key",
};

await using var engine = new VoxtralEngine(options);

await engine.SpeakAsync("Hello world");
await engine.SaveToFileAsync("Hello world", "output.wav");

// List available voices
var voices = await engine.GetAvailableVoicesAsync();
engine.SetVoice("en_paul_neutral");

Configuration

var options = new VoxtralOptions
{
    ApiKey = "...",                              // required
    VoiceId = "gb_jane_neutral",                // default voice
    ModelId = "voxtral-mini-tts-2603",          // default model
    ResponseFormat = "wav",                      // output format
    Stream = false,                              // SSE streaming
    RefAudioPath = "/path/to/reference.mp3",    // voice cloning (optional)
    LeadingSilenceMs = 150,                      // silence before playback
};

Voice Cloning

Provide a 2-3 second reference audio sample for zero-shot voice cloning:

var options = new VoxtralOptions
{
    ApiKey = "...",
    RefAudioPath = "/path/to/sample.mp3",
};

When RefAudioPath is set, the engine sends the audio as a base64-encoded ref_audio field instead of voice_id.

Requirements

  • .NET 10+
  • Mistral AI API key

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.0.19 86 5/14/2026
0.1.0-alpha.0.18 73 5/10/2026
0.1.0-alpha.0.17 69 5/10/2026