DotNetG2P 1.9.0

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

DotNetG2P

Japanese grapheme-to-phoneme conversion for .NET and Unity.

What It Includes

  • OpenJTalk-compatible NJD pipeline implemented in pure C#
  • Multiple outputs: phonemes, kana, prosody markers, accent phrases, HTS labels, and prosody features
  • Batch conversion APIs for the main output forms
  • Immutable G2POptions for controlling normalization, digit reading, accent handling, and unvoiced vowels

Quick Start

using DotNetG2P;
using DotNetG2P.MeCab;

using var tokenizer = new MeCabTokenizer();
using var engine = new G2PEngine(tokenizer);

string phonemes = engine.ToPhonemes("こんにちは");
string kana = engine.ToKana("音声合成");
var labels = engine.ToFullContextLabels("こんにちは");

Dependencies

  • Install DotNetG2P.MeCab alongside this package for the default tokenizer implementation
  • Japanese conversion requires a naist-jdic dictionary install

Thread Safety

G2PEngine is not thread-safe. Create one engine instance per thread or request scope.

License And Notice

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.1

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on DotNetG2P:

Package Downloads
DotNetG2P.MeCab

Pure C# MeCab-compatible morphological analyzer for DotNetG2P. Apache-2.0 licensed, no native dependencies. Provides ITokenizer implementation using Darts-clone double-array trie and Viterbi decoder for Japanese text analysis with naist-jdic dictionary.

DotNetG2P.Multilingual

Multilingual G2P engine combining Japanese, English, Chinese, Korean, Spanish, French, Portuguese, and Swedish grapheme-to-phoneme support with automatic language detection.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.9.0 41 4/2/2026
1.8.2 157 3/21/2026
1.8.1 154 3/20/2026
1.8.0 851 3/20/2026
1.7.0 153 3/18/2026
1.6.0 155 3/17/2026
1.5.0 158 3/15/2026
1.4.0 189 3/12/2026
1.3.0 161 3/10/2026
1.2.0 154 3/7/2026
1.1.0 120 3/5/2026
1.0.0 127 3/3/2026