// Get voice service name private string GetVoiceServiceName(VoiceService service) { IWitRuntimeConfigProvider configProvider = service.GetComponent <IWitRuntimeConfigProvider>(); if (configProvider != null) { return($"{configProvider.RuntimeConfiguration.witConfiguration.name} [{service.gameObject.name}]"); } return(service.gameObject.name); }