BogaNet.TTS
1.4.0
dotnet add package BogaNet.TTS --version 1.4.0
NuGet\Install-Package BogaNet.TTS -Version 1.4.0
<PackageReference Include="BogaNet.TTS" Version="1.4.0" />
paket add BogaNet.TTS --version 1.4.0
#r "nuget: BogaNet.TTS, 1.4.0"
// Install BogaNet.TTS as a Cake Addin #addin nuget:?package=BogaNet.TTS&version=1.4.0 // Install BogaNet.TTS as a Cake Tool #tool nuget:?package=BogaNet.TTS&version=1.4.0
BogaNet.TTS
This library is a new implementation for .NET8 of the highly-regarded Unity package RT-Voice PRO and uses the built-in Text-To-Speech (TTS) engine under Windows, OSX and Linux. It provides all installed voices and support for SSML. For an implementation for the web browser, please check the package BogaNet.Avalonia.Browser. It's also possible to implement your own custom voice provider (e.g. to use other engines like AWS Polly, Azure, Google, ElvenLabs etc.).
Note
The LinuxVoiceProvider uses eSpeak/eSpeak-NG as engine, which is also available for Windows and OSX. Therefore it's possible to take advantage of this engine by installing it and setting the property "UseESpeak" on the Speaker-class to true.
Windows
BogaNet.TTS uses the SAPI-voices, visible by running the following command: %windir%\sysWOW64\speech\SpeechUX\SAPI.cpl
Main classes and example code
Speaker.Instance.Speak("Hello dear user, how are you?"); //talk with the system default voice
var voice = Speaker.Instance.VoiceForCulture("de"); //talk in German
Speaker.Instance.SpeakAsync("Hallo lieber Benutzer, wie geht es dir?", voice);
Nuget:
API:
https://www.crosstales.com/media/data/BogaNet/api/
GitHub:
Product | Versions 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. |
-
net8.0
- BogaNet.Common (>= 1.4.0)
- BogaNet.Encoder (>= 1.4.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BogaNet.TTS:
Package | Downloads |
---|---|
BogaNet.Avalonia.Browser
Browser-specific helpers for Avalonia development. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Release Common 1.4.0.