using UnityEngine; namespace Crosstales.RTVoice.Util { /// Collected constants of very general utility for the asset. public abstract class Constants : Common.Util.BaseConstants { #region Constant variables /// Name of the asset. public const string ASSET_NAME = "RT-Voice PRO"; /// Short name of the asset. public const string ASSET_NAME_SHORT = "RTV PRO"; /// Version of the asset. public const string ASSET_VERSION = "2020.4.10"; /// Build number of the asset. public const int ASSET_BUILD = 20201217; /// Create date of the asset (YYYY, MM, DD). public static readonly System.DateTime ASSET_CREATED = new System.DateTime(2015, 4, 29); /// Change date of the asset (YYYY, MM, DD). public static readonly System.DateTime ASSET_CHANGED = new System.DateTime(2020, 12, 17); /// URL of the PRO asset in UAS. public const string ASSET_PRO_URL = "https://assetstore.unity.com/packages/slug/41068?aid=1011lNGT"; /// URL of the 3rd party assets in UAS. public const string ASSET_3P_URL = "https://assetstore.unity.com/lists/rt-voice-friends-42209?aid=1011lNGT"; // RTV&Friends list /// URL for update-checks of the asset public const string ASSET_UPDATE_CHECK_URL = "https://www.crosstales.com/media/assets/rtvoice_versions.txt"; //public const string ASSET_UPDATE_CHECK_URL = "https://www.crosstales.com/media/assets/test/rtvoice_versions_test.txt"; /// Contact to the owner of the asset. public const string ASSET_CONTACT = "rtvoice@crosstales.com"; /// URL of the asset manual. public const string ASSET_MANUAL_URL = "https://www.crosstales.com/media/data/assets/rtvoice/RTVoice-doc.pdf"; /// URL of the asset API. public const string ASSET_API_URL = "http://www.crosstales.com/en/assets/rtvoice/api/"; /// URL of the asset forum. public const string ASSET_FORUM_URL = "http://forum.unity3d.com/threads/rt-voice-run-time-text-to-speech-solution.340046/"; /// URL of the asset in crosstales. public const string ASSET_WEB_URL = "https://www.crosstales.com/en/portfolio/rtvoice/"; /// URL of the promotion video of the asset (Youtube). public const string ASSET_VIDEO_PROMO = "https://youtu.be/iVhTWDLY7g8?list=PLgtonIOr6Tb41XTMeeZ836tjHlKgOO84S"; /// URL of the tutorial video of the asset (Youtube). public const string ASSET_VIDEO_TUTORIAL = "https://youtu.be/OJyVgCmX3wU?list=PLgtonIOr6Tb41XTMeeZ836tjHlKgOO84S"; /// URL of the 3rd party asset "Adventure Creator". public const string ASSET_3P_ADVENTURE_CREATOR = "https://assetstore.unity.com/packages/slug/11896?aid=1011lNGT"; /// URL of the 3rd party asset "Cinema Director". public const string ASSET_3P_CINEMA_DIRECTOR = "https://assetstore.unity.com/packages/slug/19779?aid=1011lNGT"; /// URL of the 3rd party asset "Dialogue System". public const string ASSET_3P_DIALOGUE_SYSTEM = "https://assetstore.unity.com/packages/slug/11672?aid=1011lNGT"; /// URL of the 3rd party asset "Localized Dialogs". public const string ASSET_3P_LOCALIZED_DIALOGS = "https://assetstore.unity.com/packages/slug/5020?aid=1011lNGT"; /// URL of the 3rd party asset "LipSync Pro". public const string ASSET_3P_LIPSYNC = "https://assetstore.unity.com/packages/slug/32117?aid=1011lNGT"; /// URL of the 3rd party asset "NPC Chat". public const string ASSET_3P_NPC_CHAT = "https://assetstore.unity.com/packages/slug/9723?aid=1011lNGT"; /// URL of the 3rd party asset "Quest System Pro". public const string ASSET_3P_QUEST_SYSTEM = "https://assetstore.unity.com/packages/slug/63460?aid=1011lNGT"; /// URL of the 3rd party asset "SALSA". public const string ASSET_3P_SALSA = "https://assetstore.unity.com/packages/slug/148442?aid=1011lNGT"; /// URL of the 3rd party asset "SLATE". public const string ASSET_3P_SLATE = "https://assetstore.unity.com/packages/slug/56558?aid=1011lNGT"; /// URL of the 3rd party asset "THE Dialogue Engine". public const string ASSET_3P_AMPLITUDE = "https://assetstore.unity.com/packages/slug/111277?aid=1011lNGT"; /// URL of the 3rd party asset "uSequencer". public const string ASSET_3P_KLATTERSYNTH = "https://assetstore.unity.com/packages/slug/95453?aid=1011lNGT"; /// URL of the 3rd party asset "WebGL Speech Synthesis". public const string ASSET_3P_WEBGL = "https://assetstore.unity.com/packages/slug/81861?aid=1011lNGT"; /// URL of the 3rd party asset "Google Cloud Text To Speech". public const string ASSET_3P_GOOGLE = "https://assetstore.unity.com/packages/slug/115170?aid=1011lNGT"; // Keys for the configuration of the asset public const string KEY_PREFIX = "RTVOICE_CFG_"; public const string KEY_ASSET_PATH = KEY_PREFIX + "ASSET_PATH"; public const string KEY_DEBUG = KEY_PREFIX + "DEBUG"; public const string KEY_AUDIOFILE_PATH = KEY_PREFIX + "AUDIOFILE_PATH"; public const string KEY_AUDIOFILE_AUTOMATIC_DELETE = KEY_PREFIX + "AUDIOFILE_AUTOMATIC_DELETE"; public const string KEY_ENFORCE_32BIT_WINDOWS = KEY_PREFIX + "ENFORCE_32BIT_WINDOWS"; public const string KEY_ENFORCE_STANDALONE_TTS = KEY_PREFIX + "ENFORCE_STANDALONE_TTS"; //public const string KEY_TTS_MACOS = KEY_PREFIX + "TTS_MACOS"; // Default values public static readonly string DEFAULT_AUDIOFILE_PATH = Helper.ValidatePath(Application.temporaryCachePath); public const bool DEFAULT_AUDIOFILE_AUTOMATIC_DELETE = true; public const bool DEFAULT_ENFORCE_32BIT_WINDOWS = false; public const bool DEFAULT_ENFORCE_STANDALONE_TTS = true; //public const string DEFAULT_TTS_WINDOWS_BUILD = @"/RTVoiceTTSWrapper.exe"; public const string DEFAULT_TTS_MACOS = "say"; public const int DEFAULT_CACHE_SIZE_CLIPS = 256; //in MB (256MB) public const int DEFAULT_MAX_CACHE_SIZE_CLIPS = 1024; //in MB (1GB) public const int DEFAULT_TTS_KILL_TIME = 7000; /// RTVoice prefab scene name. public const string RTVOICE_SCENE_OBJECT_NAME = "RTVoice"; /// GlobalCache prefab scene name. public const string GLOBALCACHE_SCENE_OBJECT_NAME = "GlobalCache"; #endregion #region Changable variables // Technical settings /// Sub-path to the TTS-wrapper under Windows. //public static string TTS_WINDOWS_SUBPATH = "Libraries/Windows/RTVoiceTTSWrapper.exe"; public static string TTS_WINDOWS_SUBPATH = "RTVoiceTTSWrapper.exe"; /// Sub-path to the TTS-wrapper (32bit) under Windows. //public static string TTS_WINDOWS_x86_SUBPATH = "Libraries/Windows/RTVoiceTTSWrapper_x86.exe"; public static string TTS_WINDOWS_x86_SUBPATH = "RTVoiceTTSWrapper_x86.exe"; /// Female modifier for eSpeak. public static string ESPEAK_FEMALE_MODIFIER = "+f3"; /// Audio file prefix to identify the files. public static string AUDIOFILE_PREFIX = "rtvoice_"; /// Defines the speed of 'Speak'-calls in seconds. public static float SPEAK_CALL_SPEED = 0.5f; #endregion } } // © 2015-2020 crosstales LLC (https://www.crosstales.com)