BogaNet.TTS 1.3.3

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

// Install BogaNet.TTS as a Cake Tool
#tool nuget:?package=BogaNet.TTS&version=1.3.3                

BogaNet.TTS

Use 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 my 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: Main component for TTS-operations.
  • Voice: Model for a voice.
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:

BogaNet.TTS

API:

https://www.crosstales.com/media/data/BogaNet/api/

GitHub:

https://github.com/slaubenberger/BogaNet/

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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last updated
1.4.0 83 8/5/2024
1.3.3 74 7/31/2024
1.3.2 78 7/27/2024
1.3.1 80 7/27/2024
1.3.0 81 7/26/2024
1.2.4 73 7/25/2024
1.2.3 99 7/22/2024
0.9.1 109 7/21/2024
0.9.0 119 7/21/2024

Support for threads (= multiple speeches at the same time).