BogaNet 1.4.0
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
BogaNet.TTS.Util.Helper Class Referenceabstract

Various helper functions. More...

Static Public Member Functions

static Gender StringToGender (string gender)
 Converts a string to a Gender.
 
static Gender AppleVoiceNameToGender (string voiceName)
 Converts an Apple voice name to a Gender.
 
static string CleanText (string text, bool removeTags=true, bool clearSpaces=true, bool clearLineEndings=true)
 Cleans a given text to contain only letters or digits.
 

Detailed Description

Various helper functions.

Member Function Documentation

◆ AppleVoiceNameToGender()

static Gender BogaNet.TTS.Util.Helper.AppleVoiceNameToGender ( string voiceName)
static

Converts an Apple voice name to a Gender.

Parameters
voiceNameVoice name.
Returns
Gender from the given Apple voice name.

◆ CleanText()

static string BogaNet.TTS.Util.Helper.CleanText ( string text,
bool removeTags = true,
bool clearSpaces = true,
bool clearLineEndings = true )
static

Cleans a given text to contain only letters or digits.

Parameters
textText to clean.
removeTagsRemoves tags from text (default: true, optional).
clearSpacesClears multiple spaces from text (default: true, optional).
clearLineEndingsClears line endings from text (default: true, optional).
Returns
Clean text with only letters and digits.

◆ StringToGender()

static Gender BogaNet.TTS.Util.Helper.StringToGender ( string gender)
static

Converts a string to a Gender.

Parameters
genderGender as text.
Returns
Gender from the given string.

The documentation for this class was generated from the following file: