मुख्य कंटेंट तक स्किप करें

डिवाइस Voice Assistant प्रमाणीकरण

Optional AIBudsVoiceAssistant module समर्थित डिवाइस के on-device voice assistant को authenticate करता है। यह authentication bridge Voice Assistant में disabled, basic या advanced operating mode चुनने से अलग है।

Animated workflow

डिवाइस Voice Assistant प्रमाणीकरण

Connected supported device को authentication चाहिए होने पर ही Core registered plugin शुरू करता है।

Device + Core

डिवाइस कनेक्ट करें

Supported device का सामान्य connection flow पूरा करें।

AIBuds Core

आवश्यकता जाँचें

Core तय करता है कि assistant authentication आवश्यक है या नहीं।

Voice Assistant

Plugin शुरू करें

Device identity registered voice assistant bridge को दें।

Plugin ↔ device

Opaque Data Exchange करें

Host parsing के बिना encrypted authentication data relay करें।

bridge traffic
Host app

अंतिम परिणाम पाएँ

SDK/device delegate से success या error दें।

Bridge transport सफल होना केवल बीच का चरण है। Delegate authentication result host app के लिए अंतिम signal है।

प्रमाणीकरण प्रक्रिया

Core device implementation तय करता है कि authentication कब आवश्यक है। Registered OnDeviceVoiceAssistantBridgePlugin OnDeviceVoiceAssistantDevice के जरिए opaque bridge data exchange करता है। Host app केवल अंतिम परिणाम देखता है; उसे bridge payload parse, persist या modify नहीं करना चाहिए।

AI की सहायता से लागू करें

AI से बनाएँ

इस वर्कफ़्लो को AI से लागू करें

आधिकारिक “AIBuds ऑन-डिवाइस वॉइस असिस्टेंट प्रबंधित करें” स्किल से वर्कफ़्लो को अपने ऐप के अनुसार लागू करें।

https://docs-aibuds.github.io/hi/skills/manage-aibuds-on-device-voice-assistant को पढ़ें और निर्देशों का पालन करें। इस स्किल से “AIBuds ऑन-डिवाइस वॉइस असिस्टेंट प्रबंधित करें” को इस iOS प्रोजेक्ट में लागू करें और परिणाम सत्यापित करें।
आधिकारिक स्किल देखें

Registration की जिम्मेदारी

AIBudsAllInOneSDK.initialize OnDeviceVoiceAssistantPlugin.shared register करता है। Modular integration में AIBudsVoiceAssistant शामिल करके device connect करने से पहले bridge register करें। Registration और Core initialization एक ही application-level owner के पास रखें।

App के लिए manual “अभी authenticate करें” feature API नहीं है। SDK आवश्यकता पहचानने पर supported device connection flow से authentication शुरू करता है।

अंतिम परिणाम देखें

SDK या device delegate callback implement करें:

Swift
func device(
    _ device: DeviceConvertible,
    didReceiveOnDeviceVoiceAssistantAuthResult isSuccess: Bool,
    error: NSError?
) {
    // Update product state on the main queue.
}

Callback host app के लिए अंतिम signal है। Bridge data सफलतापूर्वक भेजना केवल transport progress है, authentication success नहीं।

क्रम और Retry

किसी दूसरे AI authentication bridge की जरूरत वाले devices पर SDK पहले परिणाम के बाद on-device voice assistant authentication चला सकता है। UI code से competing authentication attempt शुरू न करें।

वर्तमान public contract manual retry API, timeout, persisted authentication lifetime या पूरी error-code recovery table तय नहीं करता। Failure पर diagnostics के लिए error सुरक्षित रखें, product policy के अनुसार assistant modes unavailable रखें और अगला attempt documented reconnect या भविष्य के SDK retry contract पर छोड़ें।

सुरक्षा सीमा

  • Bridge data को opaque credential material मानें।
  • Production में payload bytes, device identity या derived secrets log न करें।
  • Bridge packets cache या replay न करें।
  • Plugin और उसकी encryption dependency को matching SDK versions पर रखें।
  • User को केवल actionable failure state दिखाएँ; detailed errors protected diagnostics में रखें।

सत्यापन सूची

  • Device connection से पहले bridge plugin registered है।
  • All-in-One और modular registration mix नहीं हैं।
  • UI अंतिम delegate callback की प्रतीक्षा करता है।
  • Host app bridge packets न parse करता है, न persist।
  • Failure पर authentication चाहने वाला assistant mode चुपचाप enable नहीं होता।
  • हर supported device family पर disconnect और reconnect behavior test किया गया है।