MisakiSharp 2.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package MisakiSharp --version 2.1.1
                    
NuGet\Install-Package MisakiSharp -Version 2.1.1
                    
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="2.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MisakiSharp" Version="2.1.1" />
                    
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 2.1.1
                    
#r "nuget: MisakiSharp, 2.1.1"
                    
#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@2.1.1
                    
#: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=2.1.1
                    
Install as a Cake Addin
#tool nuget:?package=MisakiSharp&version=2.1.1
                    
Install as a Cake Tool

NuGet NuGet Downloads

MisakiSharp

A native C# port of hexgrad's misaki: Kokoro TTS's official G2P engine.

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
JapaneseG2P (unidic lattice + cutlet kana→IPA + num2kana) misaki 0.9.4 JAG2P() 100.00% (1593/1593 sentences)
JapaneseTagger (MeCab-identical viterbi over unidic 3.1.0) fugashi (misaki[ja]'s tagger) 100.00% (14,342/14,342 parses)
JapaneseTagger's connection costs (unidic's 481MB matrix compressed to 10MB) exact matrix 99.91% on held-out text
EspeakG2P (es, fr-fr, hi, it, pt-br) misaki 0.9.4 espeak.EspeakG2P 100.00% (8000/8000 sentences, 5 languages)
EspeakFallback (English out-of-lexicon words) misaki 0.9.4 espeak.EspeakFallback 100.00% (2914 words × en-US/en-GB)
EspeakReplay (espeak-free es, fr-fr, it, pt-br, hi) espeak-ng 1.52.0, held-out sentences pt 96.2% · es 95.5% · it 85.8% · fr 83.6% · hi 53.6% (whole corpus, nothing excluded)
EspeakReplay (espeak-free en-us/en-gb OOV fallback) espeak-ng 1.52.0, misaki's 2914 OOV words us 88.1% · gb 88.1% (via EspeakFallback, whole fixture)
HindiProvider (espeak-free hi, superseded by EspeakReplay) espeak-ng 1.52.0 100.00% on lexicon-covered sentences (~54% full coverage)

Usage

var englishG2P = new EnglishG2P(british: false);
var (phonemes, tokens) = englishG2P.Phonemize("On March 3rd, I read that the record was $1,234.56!");

// Japanese and Chinese
var jPhonemes = JapaneseG2P.Phonemize("日本語は面白い!");
var cPhonemes = ChineseG2P.Phonemize("你好,世界!欢迎使用。");

// it's called EspeakG2P but it's distilled, there's no actual espeak in the backend
var langs = EspeakG2P.Languages; // `["es", "fr-fr", "it", "pt-br", "hi"]`
var spanish = new EspeakG2P("es").Phonemize("El 8% a 25 °C, según el zurbicalismo.");

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
2.2.0 69 8/10/2026
2.1.1 137 8/10/2026