namespace Crosstales.RTVoice.Util
{
/// Context for the asset.
public static class Context
{
#region Changable variables
/// The total number of speeches.
public static int NumberOfSpeeches = 0;
/// The total number of generated audio files.
public static int NumberOfAudioFiles = 0;
/// The total number of characters spoken.
public static int NumberOfCharacters = 0;
/// The total speech length in seconds.
public static float TotalSpeechLength = 0;
/// The total number of cached speeches.
public static int NumberOfCachedSpeeches = 0;
/// The total number of non-cached speeches.>
public static int NumberOfNonCachedSpeeches = 0;
/// The current cache efficiency.>
public static float CacheEfficiency
{
get
{
if (NumberOfNonCachedSpeeches > 0)
return (float)NumberOfCachedSpeeches / NumberOfNonCachedSpeeches;
return 0;
}
}
#endregion
}
}
// © 2020 crosstales LLC (https://www.crosstales.com)