ForgetMe gRPC API
The ForgetMe gRPC API contains one method for requesting the removal of speaker profiles.
This API requests the deletion of customer data stored outside the Nuance event log repository. Successful requests are entered in the event logs and Nuance administrators delete the data. See ForgetMe essentials in the Mix Event logs documentation.
The ForgetMe service is limited to individually approved customers. To use it, see Credentials for ForgetMe.
Tip:
Try out this API using a Sample ForgetMe client that you can download and run.Proto file structure
ASRaaS provides protocol buffer (.proto) files to define the ForgetMe service. See gRPC setup to download these files.
- forgetme.proto contains the methods and messages for deleting speaker profiles.
- The RPC files contain status and error messages.
You may use these proto files in conjunction with the other ASRaaS proto files described in the Recognizer API.
└── nuance
├── asr
│ ├── forgetme
│ │ └── v1
│ │ └── forgetme.proto
│ ├── v1
│ │ ├── recognizer.proto
│ │ ├── resource.proto
│ │ └── result.proto
│ └── v1beta1
│ └── training.proto
└── rpc (RPC message files)
For the RPC fields, see RPC gRPC messages.
ForgetMe
The ForgetMe service offers one RPC method for deleting speaker profiles.
Method | Request and response | Description |
---|---|---|
DeleteSpeakerProfiles | Remove a speaker profile (unary). |
DeleteSpeakerProfilesRequest
Input message that requests deletion of all speaker profiles associated with a user ID. Each user ID may have one profile per language.
Field | Type | Description |
---|---|---|
user_id | string | Mandatory. User id that identifies a speaker profile created in ASRaaS. |
client_data | map<string,string> | Optional. Client-supplied key,value pairs (up to 20) to inject into the logs. |
For example, this asks to delete the profile identified by the user ID erij.someone:
DeleteSpeakerProfilesRequest(
user_id = 'erij.someone@aardvark.com',
client_data = {'app_os':'CENTOS'}
)
Speaker profiles are created in ASRaaS with RecognitionResource and RecognitionInitMessage. They are defined as SPEAKER_PROFILE resources and identified with a user ID.
This profile was created in ASRaaS with RecognitionResource and RecognitionInitMessage
# Define speaker profile
speaker_profile = RecognitionResource(
external_reference = ResourceReference(
type = 'SPEAKER_PROFILE'
)
)
# Include profile in RecognitionInitMessage
init = RecognitionInitMessage(
parameters = RecognitionParameters( ... ),
resources = [speaker_profile],
user_id = 'erij.someone@aardvark.com'
)
For more information, see Speaker profiles and RecognitionResource.
DeleteSpeakerProfilesResponse
Output message in response to a delete request.
Field | Type | Description |
---|---|---|
nuance.rpc.Status | Status | Nuance RPC status of the request. OK means the data is not in the system anymore. NOT_FOUND means it was already deleted or never there. |
This is a successful delete response:
2022-04-21 15:00:43,993 INFO : Received response: status {
status_code: OK
http_trans_code: 200
status_message {
locale: "en-US"
message: "OK"
message_resource_id: "1"
}
}
But this request was unsuccessful as the profile was not found:
2022-04-21 15:10:30,020 INFO : Received response: status {
status_code: NOT_FOUND
status_sub_code: 6001
http_trans_code: 404
status_message {
locale: "en-US"
message: "Content not found for userId"
message_resource_id: "6001"
}
}
Scalar value types
The data types in the proto files are mapped to equivalent types in the generated client stub files.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.