Add Cephable services and controls to your apps. Includes Desktop controls, Cephable user authentication, offline speech recognition and voice controls, camera based gesture controls, and more. Requires a specific platform package implementation such as Cephable.WPF or Cephable.WinUI3
License
—
Deps
5
Install Size
—
Vulns
✓ 0
Published
Sep 16, 2024
$ dotnet add package Cephable.CoreThe Cephable Core provides the foundation for building applications with advanced voice controls, device profiles, and user authentication. This contains the core models and services that can be extended for various platforms like WPF and WinUI3.
The Cephable Core SDK is designed to handle the core functionalities required to build dynamic, voice-controlled applications. It includes:
This SDK is extended by other SDKs:
CephableServicePurpose: A central service that integrates various features like voice controls, device profiles, and user authentication.
Key Methods:
InitializeAsync(CephableConfiguration config): Initializes the Cephable service with the provided configuration.StartVoiceControls(VoiceControlsConfiguration config): Starts voice controls with the specified configuration.StartCameraControls(CameraControlsConfiguration config): Starts camera controls with the specified configuration.`Example:
var cephableService = new CephableService(voiceService, apiService, secureStorageProvider, authService, deviceProfileService, keyboardMouseService, cameraService, desktopService);
await cephableService.InitializeAsync(new CephableConfiguration
{
DeviceTypeId = "deviceTypeId",
DeviceName = "My Device",
AuthConfiguration = new AuthConfiguration
{
ClientId = "clientId",
RedirectUri = "redirectUri"
}
});
CephableApiServicePurpose: Handles communication with Cephable's backend services for user management, device control, and more.
Key Methods:
GetUserDevices(): Retrieves a list of user devices.CreateProfile(UpdateUserDeviceProfileRequest configuration): Creates a new device profile.GetVoiceModelReferenceForLocale(string locale, string fileFormat): Retrieves a voice model reference for a specific locale.Example:
var apiService = new CephableApiService(new CephableApiConfiguration { BaseUrl = "https://api.cephable.com" }, new CephableHttpClient());
var userDevices = await apiService.GetUserDevices();
var profileResult = await apiService.CreateProfile(new UpdateUserDeviceProfileRequest
{
ProfileName = "New Profile",
Configuration = new DeviceProfileConfiguration { /* profile configuration */ }
});
DeviceProfileServicePurpose: Manages user device profiles, allowing you to load, update, and switch between profiles dynamically.
Key Properties:
Profiles: Holds the list of user device profiles.CurrentProfile: The currently active profile.Key Methods:
LoadProfiles(): Loads profiles from secure storage or the API.UpdateLocalProfiles(List<UserDeviceProfileModel> profiles): Updates and saves local profiles.Example:
var deviceProfileService = new DeviceProfileService(secureStorageProvider, apiService, authService);
var profiles = await deviceProfileService.LoadProfiles();
deviceProfileService.CurrentProfile = profiles.FirstOrDefault();
To install the Cephable Core SDK, use the following NuGet command:
Install-Package Cephable.Core
The Cephable WPF SDK is only available to licensed users. Ensure that your application complies with Cephable�s licensing terms. For more details on obtaining a license, please contact Cephable Sales.
For any inquiries, please contact Cephable or your account representatitve.