public static string GetDeviceVersion() { string device = SystemInfo.deviceModel; Match match = Regex.Match(device, @"[0-9\.,]+", RegexOptions.IgnoreCase); if (match.Success) { device = match.Value; } return(device); }
public SpeechConfig(string version = "2.0.12341") { this.system = new ContextSystem(); this.system.version = version; this.os = new ContextOS(); this.os.platform = GetPlatform(); this.os.name = GetOS(); this.os.version = GetOSVersion(); this.device = new ContextDevice(); this.device.model = SystemInfo.deviceModel; this.device.manufacturer = GetDeviceManufacturer(); this.device.version = GetDeviceVersion(); }