MisakiSharp 1.0.0

dotnet add package MisakiSharp --version 1.0.0
                    
NuGet\Install-Package MisakiSharp -Version 1.0.0
                    
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="MisakiSharp" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MisakiSharp" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MisakiSharp" />
                    
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 MisakiSharp --version 1.0.0
                    
#r "nuget: MisakiSharp, 1.0.0"
                    
#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 MisakiSharp@1.0.0
                    
#: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=MisakiSharp&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MisakiSharp&version=1.0.0
                    
Install as a Cake Tool

MisakiSharp

A native C# port of misakiKokoro TTS's official G2P engine — with zero Python and zero espeak in the loop.

Every module is verified at mass scale against the reference implementation, on held-out corpora it was never tuned on:

Module Verified against Parity
ChineseG2P (jieba posseg + tone sandhi + pinyin→zhuyin + cn2an) misaki 0.9.4 ZHG2P(version='1.1') 100.00% (1936/1936 sentences)
EnglishG2P (lexicon, stress, numbers, currency, homographs) misaki 0.9.4 en.G2P 51,623 fixtures at 100%
EnglishTokenizer spaCy en_core_web_sm tokenization 100% (56,216 lines)
EnglishTagger (2.8MB perceptron distilled from spaCy) spaCy Penn Treebank tags 97.5% tags → 99.20% end-to-end phoneme parity

Usage

var english = new EnglishG2P(EnglishG2P.DefaultTagger); // American English (british: true for en-GB)
var (phonemes, tokens) = english.Phonemize("On March 3rd, I read that the record was $1,234.56!");

var zhuyin = ChineseG2P.Phonemize("你好,世界!欢迎使用。"); // Kokoro v1.1 format, tone sandhi included
var arrows = ChineseG2P.PhonemizeLegacy("你好,世界!");     // Kokoro v1.0 format, for the older zh voices

Phoneme output uses Kokoro's phoneme alphabet. Rare out-of-lexicon English words return unk () unless you plug an espeakFallback; latin spans inside Chinese text route through ChineseG2P.EnglishPhonemizer when set.

The building blocks are public and useful on their own: EnglishTokenizer (spaCy-equivalent tokenization), EnglishTagger (fast PTB tagging), PossegTagger (bit-exact jieba posseg / cut-for-search), ToneSandhi, and ZhFrontend.

Data

The dictionaries (~22MB) embed into the assembly — pinyin/jieba tables, misaki's English lexicons, spaCy-derived tokenization rules, and the distilled tagger. Everything regenerates from generators/*.py against the upstream sources.

License

  • Apache-2.0, like misaki itself. See NOTICE for the full lineage (PaddleSpeech, jieba, pypinyin, spaCy, num2words).
  • Versioning tracks the upstream misaki release the port is verified against (currently 0.9.4).
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MisakiSharp:

Package Downloads
KokoroSharp

**Requires an ONNX Runtime package to function. KokoroSharp is an inference engine for Kokoro TTS with ONNX runtime, enabling fast and flexible local text-to-speech (fp/quanted) purely via C#. It features segment streaming, voice mixing, linear job scheduling, and optional playback.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 192 7/24/2026