---
sourceDocument: Référence API Brésil
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/fr-FR/api-reference

 Release :

    - brazil

ft:locale :

    - fr-FR

ft:publication_title :

    - Référence API Brésil

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# Classe NowVoiceEndpoint : Android

# Classe NowVoiceEndpoint : Android {#ariaid-title1}

Rversion finale: Brazil  
Mis à jour 10 sept. 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute de lecture  
Décrit un point de terminaison d'agent vocal.

Un point de terminaison vocal identifie le canal spécifique de l'agent vocal auquel se connecter. Utilisez [`NowVoiceService.nowVoiceEndpoints`](https://servicenow-prod.fluidtopics.net/__vSgUJBenMECp8j~m9~2g#NowVoiceServiceAndroidAPI "Gère les sessions de l’agent vocal pour une instance unique ServiceNow .") pour obtenir les points de terminaison NowVoice. Les points de terminaison sont récupérés Mobile SDK à partir des paramètres de votre ServiceNow instance. Dans la plupart des applications, il existe un seul point de terminaison.  
{#NowVoiceEndpointAndroidClass__table_vx2_klw_nva2__entry__3}

| Nom | Type | Description |
|-|-|-|
| voiceServiceId | Chaîne | L'identificateur unique du service vocal. |
| voiceWebhookURL | Chaîne | L'URL Webhook WebSocket de l'agent vocal. |
| mobileChannelType | Chaîne | Type de canal mobile pour le point de terminaison. |
| mobileChannelId | Chaîne | L'identificateur de canal mobile. |
[Tableau 1. Propriétés]

{#NowVoiceEndpointAndroidClass__table_vx2_klw_nva2}  
L'exemple de code suivant montre comment récupérer une instance de NowVoiceEndpoint à partir de `NowVoiceService.nowVoiceEndpoints`.

    import com.servicenow.nowsdk.voice.NowVoiceSDK
    import kotlinx.coroutines.launch
    import java.net.URL

    lifecycleScope.launch {
        val result = NowVoiceSDK.makeVoiceService(
            instanceURL = URL("https://your-instance.service-now.com")
        )

        result
            .onSuccess { voiceService ->
                // Service is ready; proceed to select an endpoint
            }
            .onFailure { error ->
                // Handle NowServiceError
                Log.e("NowVoice", "Service creation failed: $error")
            }
    }

    val endpoint = voiceService.nowVoiceEndpoints.firstOrNull() ?: return


