Various helper functions.
More...
|
| 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.
|
| |
Various helper functions.
◆ AppleVoiceNameToGender()
| static Gender BogaNet.TTS.Util.Helper.AppleVoiceNameToGender |
( |
string | voiceName | ) |
|
|
static |
Converts an Apple voice name to a Gender.
- Parameters
-
- 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
-
| text | Text to clean. |
| removeTags | Removes tags from text (default: true, optional). |
| clearSpaces | Clears multiple spaces from text (default: true, optional). |
| clearLineEndings | Clears 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
-
- Returns
- Gender from the given string.
The documentation for this class was generated from the following file:
- /Users/stefanlaubenberger/Projects/CSharp/BogaNet/BogaNet.TTS/TTS/Util/Helper.cs