Documentation ¶
Index ¶
- Constants
- type VoiceIt2
- func (vi *VoiceIt2) AddNotificationUrl(notificationUrl string)
- func (vi VoiceIt2) AddUserToGroup(groupId string, userId string) ([]byte, error)
- func (vi VoiceIt2) CheckGroupExists(groupId string) ([]byte, error)
- func (vi VoiceIt2) CheckUserExists(userId string) ([]byte, error)
- func (vi VoiceIt2) CreateFaceEnrollment(userId string, filePath string) ([]byte, error)
- func (vi VoiceIt2) CreateFaceEnrollmentByUrl(userId string, fileUrl string) ([]byte, error)
- func (vi VoiceIt2) CreateGroup(description string) ([]byte, error)
- func (vi VoiceIt2) CreateManagedSubAccount(params structs.CreateSubAccountRequest) ([]byte, error)
- func (vi VoiceIt2) CreateUnmanagedSubAccount(params structs.CreateSubAccountRequest) ([]byte, error)
- func (vi VoiceIt2) CreateUser() ([]byte, error)
- func (vi VoiceIt2) CreateUserToken(userId string, timeout time.Duration) ([]byte, error)
- func (vi VoiceIt2) CreateVideoEnrollment(userId string, contentLanguage string, phrase string, filePath string) ([]byte, error)
- func (vi VoiceIt2) CreateVideoEnrollmentByUrl(userId string, contentLanguage string, phrase string, fileUrl string) ([]byte, error)
- func (vi VoiceIt2) CreateVoiceEnrollment(userId string, contentLanguage string, phrase string, filePath string) ([]byte, error)
- func (vi VoiceIt2) CreateVoiceEnrollmentByUrl(userId string, contentLanguage string, phrase string, fileUrl string) ([]byte, error)
- func (vi VoiceIt2) DeleteAllEnrollments(userId string) ([]byte, error)
- func (vi VoiceIt2) DeleteGroup(groupId string) ([]byte, error)
- func (vi VoiceIt2) DeleteSubAccount(subAccountAPIKey string) ([]byte, error)
- func (vi VoiceIt2) DeleteUser(userId string) ([]byte, error)
- func (vi VoiceIt2) ExpireUserTokens(userId string) ([]byte, error)
- func (vi VoiceIt2) FaceIdentification(groupId string, filePath string) ([]byte, error)
- func (vi VoiceIt2) FaceIdentificationByUrl(groupId string, fileUrl string) ([]byte, error)
- func (vi VoiceIt2) FaceVerification(userId string, filePath string) ([]byte, error)
- func (vi VoiceIt2) FaceVerificationByUrl(userId string, fileUrl string) ([]byte, error)
- func (vi VoiceIt2) GetAllFaceEnrollments(userId string) ([]byte, error)
- func (vi VoiceIt2) GetAllGroups() ([]byte, error)
- func (vi VoiceIt2) GetAllUsers() ([]byte, error)
- func (vi VoiceIt2) GetAllVideoEnrollments(userId string) ([]byte, error)
- func (vi VoiceIt2) GetAllVoiceEnrollments(userId string) ([]byte, error)
- func (vi VoiceIt2) GetGroup(groupId string) ([]byte, error)
- func (vi VoiceIt2) GetGroupsForUser(userId string) ([]byte, error)
- func (vi VoiceIt2) GetPhrases(contentLanguage string) ([]byte, error)
- func (vi VoiceIt2) RegenerateSubAccountAPIToken(subAccountAPIKey string) ([]byte, error)
- func (vi *VoiceIt2) RemoveNotificationUrl()
- func (vi VoiceIt2) RemoveUserFromGroup(groupId string, userId string) ([]byte, error)
- func (vi VoiceIt2) SwitchSubAccountType(subAccountAPIKey string) ([]byte, error)
- func (vi VoiceIt2) VideoIdentification(groupId string, contentLanguage string, phrase string, filePath string) ([]byte, error)
- func (vi VoiceIt2) VideoIdentificationByUrl(groupId string, contentLanguage string, phrase string, fileUrl string) ([]byte, error)
- func (vi VoiceIt2) VideoVerification(userId string, contentLanguage string, phrase string, filePath string) ([]byte, error)
- func (vi VoiceIt2) VideoVerificationByUrl(userId string, contentLanguage string, phrase string, fileUrl string) ([]byte, error)
- func (vi VoiceIt2) VoiceIdentification(groupId string, contentLanguage string, phrase string, filePath string) ([]byte, error)
- func (vi VoiceIt2) VoiceIdentificationByUrl(groupId string, contentLanguage string, phrase string, fileUrl string) ([]byte, error)
- func (vi VoiceIt2) VoiceVerification(userId string, contentLanguage string, phrase string, filePath string) ([]byte, error)
- func (vi VoiceIt2) VoiceVerificationByUrl(userId string, contentLanguage string, phrase string, fileUrl string) ([]byte, error)
Constants ¶
const PlatformId string = "39"
const PlatformVersion string = "v2.4.4"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VoiceIt2 ¶
func (*VoiceIt2) AddNotificationUrl ¶
AddNotificationUrl adds a notification URL field in the VoiceIt2 object. If one is already specified, it will be overwritten For more details, see https://api.voiceit.io/#webhook-notification
func (VoiceIt2) AddUserToGroup ¶
AddUserToGroup takes the groupId generated during a createGroup and the userId generated during createUser and adds the user to the group For more details see https://api.voiceit.io/#add-user-to-group
func (VoiceIt2) CheckGroupExists ¶
CheckGroupExists takes the groupId generated during a createGroup and returns whether the group exists for the given groupId For more details see https://api.voiceit.io/#check-if-group-exists
func (VoiceIt2) CheckUserExists ¶
CheckUserExists takes the userId generated during a createUser and returns an object which contains the boolean "exists" which shows whether a given user exists For more details see https://api.voiceit.io/#check-if-a-specific-user-exists
func (VoiceIt2) CreateFaceEnrollment ¶
CreateFaceEnrollment takes the userId generated during a createUser and absolute file path for a video recording to create a face enrollment for the user For more details see https://api.voiceit.io/#create-face-enrollment
func (VoiceIt2) CreateFaceEnrollmentByUrl ¶
CreateFaceEnrollmentByUrl takes the userId generated during a createUser and a fully qualified URL to a video recording to verify the user's face For more details see https://api.voiceit.io/#create-face-enrollment-by-url
func (VoiceIt2) CreateGroup ¶
CreateGroup creates a new group profile and returns a unique groupId that is used for all future calls related to the group For more details see https://api.voiceit.io/#create-a-group
func (VoiceIt2) CreateManagedSubAccount ¶
func (vi VoiceIt2) CreateManagedSubAccount(params structs.CreateSubAccountRequest) ([]byte, error)
CreateManagedSubAccount creates a managed sub-account.
func (VoiceIt2) CreateUnmanagedSubAccount ¶
func (vi VoiceIt2) CreateUnmanagedSubAccount(params structs.CreateSubAccountRequest) ([]byte, error)
CreateUnmanagedSubAccount creates an unmanaged sub-account.
func (VoiceIt2) CreateUser ¶
CreateUser creates a new user profile and returns a unique userId that is used for all future calls related to the user profile For more details see https://api.voiceit.io/#create-a-user
func (VoiceIt2) CreateUserToken ¶
CreateUserToken takes the userId (string) and a timeout (time.Duration). The returned user token can be used to construct a new VoiceIt2 instance which has user level rights for the given user. The timeout controls the expiration of the user token. For more details see https://api.voiceit.io/?go#user-token-generation
func (VoiceIt2) CreateVideoEnrollment ¶
func (vi VoiceIt2) CreateVideoEnrollment(userId string, contentLanguage string, phrase string, filePath string) ([]byte, error)
CreateVideoEnrollment takes the userId generated during a createUser, the contentLanguage(https://api.voiceit.io/#content-languages) for the phrase, the text of a valid phrase for the developer account, and absolute file path for a video recording to create a video enrollment for the user For more details see https://api.voiceit.io/#create-video-enrollment
func (VoiceIt2) CreateVideoEnrollmentByUrl ¶
func (vi VoiceIt2) CreateVideoEnrollmentByUrl(userId string, contentLanguage string, phrase string, fileUrl string) ([]byte, error)
CreateVideoEnrollment takes the userId generated during a createUser, the contentLanguage(https://api.voiceit.io/#content-languages) for the phrase, the text of a valid phrase for the developer account, and a fully qualified URL to a video recording to create a video enrollment for the user For more details see https://api.voiceit.io/#create-video-enrollment-by-url
func (VoiceIt2) CreateVoiceEnrollment ¶
func (vi VoiceIt2) CreateVoiceEnrollment(userId string, contentLanguage string, phrase string, filePath string) ([]byte, error)
CreateVoiceEnrollment takes the userId generated during a createUser, the contentLanguage(https://api.voiceit.io/#content-languages) for the phrase, the text of a valid phrase for the developer account, and absolute file path for a audio recording to create a voice enrollment for the user For more details see https://api.voiceit.io/#create-voice-enrollment
func (VoiceIt2) CreateVoiceEnrollmentByUrl ¶
func (vi VoiceIt2) CreateVoiceEnrollmentByUrl(userId string, contentLanguage string, phrase string, fileUrl string) ([]byte, error)
CreateVoiceEnrollmentByUrl takes the userId generated during a createUser, the contentLanguage(https://api.voiceit.io/#content-languages) for the phrase, the text of a valid phrase for the developer account, and a fully qualified URL to a audio recording to create a voice enrollment for the user For more details see https://api.voiceit.io/#create-voice-enrollment-by-url
func (VoiceIt2) DeleteAllEnrollments ¶
DeleteAllEnrollments takes the userId generated during a createUser and deletes all video/voice enrollments for the user For more details see https://api.voiceit.io/#delete-all-enrollments-for-user
func (VoiceIt2) DeleteGroup ¶
DeleteGroup takes the groupId generated during a createGroup and deletes the group profile disassociates all users associated with it For more details see https://api.voiceit.io/#delete-a-specific-group
func (VoiceIt2) DeleteSubAccount ¶
DeleteSubAccount takes a subAccountAPIKey (string).
func (VoiceIt2) DeleteUser ¶
DeleteUser takes the userId generated during a createUser and deletes the user profile and all associated face and voice enrollments For more details see https://api.voiceit.io/#delete-a-specific-user
func (VoiceIt2) ExpireUserTokens ¶
ExpireUserTokens takes a userId (string). For more details see https://api.voiceit.io/?go#user-token-expiration
func (VoiceIt2) FaceIdentification ¶
FaceIdentification takes the groupId generated during a createGroup, and absolute file path for a face recording to idetify the user's face amongst others in the group For more details see https://api.voiceit.io/#identify-a-user-s-face
func (VoiceIt2) FaceIdentificationByUrl ¶
FaceIdentificationByUrl takes the groupId generated during a createGroup, and a fully qualified URL to a face recording to idetify the user's face amongst others in the group For more details see https://api.voiceit.io/#identify-a-user-s-face-by-url
func (VoiceIt2) FaceVerification ¶
FaceVerification takes the userId generated during a createUser and a absolute file path for a video recording to verify the user's face For more details see https://api.voiceit.io/#verify-a-user-s-face
func (VoiceIt2) FaceVerificationByUrl ¶
FaceVerificationByUrl takes the userId generated during a createUser and a fully qualified URL to a video recording to verify the user's face For more details see https://api.voiceit.io/#verify-a-user-s-face-by-url
func (VoiceIt2) GetAllFaceEnrollments ¶
GetAllFaceEnrollments takes the userId generated during a createUser and returns a list of all face enrollments for the user For more details see https://api.voiceit.io/#get-face-enrollments
func (VoiceIt2) GetAllGroups ¶
GetAllGroups returns a list of all groups associated with the API Key For more details see https://api.voiceit.io/#get-all-groups
func (VoiceIt2) GetAllUsers ¶
GetAllUsers returns a list of all users associated with the API Key For more details see https://api.voiceit.io/#get-all-users
func (VoiceIt2) GetAllVideoEnrollments ¶
GetAllVideoEnrollments takes the userId generated during a createUser and returns a list of all video enrollments for the user For more details see https://api.voiceit.io/#get-video-enrollments
func (VoiceIt2) GetAllVoiceEnrollments ¶
GetAllVoiceEnrollments takes the userId generated during a createUser and returns a list of all voice enrollments for the user For more details see https://api.voiceit.io/#get-voice-enrollments
func (VoiceIt2) GetGroup ¶
GetGroup takes the groupId generated during a createGroup and returns the group along with a list of associated users in the group For more details see https://api.voiceit.io/#get-a-specific-group
func (VoiceIt2) GetGroupsForUser ¶
GetGroupsForUser takes the userId generated during a createUser and returns a list of all groups that the user belongs to For more details see https://api.voiceit.io/#get-groups-for-user
func (VoiceIt2) GetPhrases ¶
GetPhrases takes the contentLanguage For more details see https://api.voiceit.io/#get-phrases
func (VoiceIt2) RegenerateSubAccountAPIToken ¶
RegenerateSubAccountAPIToken takes a subAccountAPIKey (string).
func (*VoiceIt2) RemoveNotificationUrl ¶
func (vi *VoiceIt2) RemoveNotificationUrl()
RemoveNotificationUrl removes the notification URL field from the VoiceIt2 struct
func (VoiceIt2) RemoveUserFromGroup ¶
RemoveUserFromGroup takes the groupId generated during a createGroup and the userId generated during createUser and removes the user from the group For more details see https://api.voiceit.io/#remove-user-from-group
func (VoiceIt2) SwitchSubAccountType ¶
SwitchSubAccountType takes a subAccountAPIKey (string) (
func (VoiceIt2) VideoIdentification ¶
func (vi VoiceIt2) VideoIdentification(groupId string, contentLanguage string, phrase string, filePath string) ([]byte, error)
VideoIdentification takes the groupId generated during a createGroup, the contentLanguage(https://api.voiceit.io/#content-languages) for the phrase, the text of a valid phrase for the developer account, and absolute file path for a video recording to idetify the user's face and voice amongst others in the group For more details see https://api.voiceit.io/#identify-a-user-s-voice-amp-face
func (VoiceIt2) VideoIdentificationByUrl ¶
func (vi VoiceIt2) VideoIdentificationByUrl(groupId string, contentLanguage string, phrase string, fileUrl string) ([]byte, error)
VideoIdentificationByUrl takes the groupId generated during a createGroup, the contentLanguage(https://api.voiceit.io/#content-languages) for the phrase, the text of a valid phrase for the developer account, and a fully qualified URL to a video recording to idetify the user's face and voice amongst others in the group For more details see https://api.voiceit.io/#identify-a-user-s-voice-amp-face-by-url
func (VoiceIt2) VideoVerification ¶
func (vi VoiceIt2) VideoVerification(userId string, contentLanguage string, phrase string, filePath string) ([]byte, error)
VideoVerification takes the userId generated during a createUser, the contentLanguage(https://api.voiceit.io/#content-languages) for the phrase, the text of a valid phrase for the developer account, and absolute file path for a video recording to verify the user's face and voice For more details see https://api.voiceit.io/#video-verification
func (VoiceIt2) VideoVerificationByUrl ¶
func (vi VoiceIt2) VideoVerificationByUrl(userId string, contentLanguage string, phrase string, fileUrl string) ([]byte, error)
VideoVerificationByUrl takes the userId generated during a createUser, the contentLanguage(https://api.voiceit.io/#content-languages) for the phrase, the text of a valid phrase for the developer account, and a fully qualified URL to a video recording to verify the user's face and voice For more details see https://api.voiceit.io/#video-verification-by-url
func (VoiceIt2) VoiceIdentification ¶
func (vi VoiceIt2) VoiceIdentification(groupId string, contentLanguage string, phrase string, filePath string) ([]byte, error)
VoiceIdentification takes the groupId generated during a createGroup, the contentLanguage(https://api.voiceit.io/#content-languages) for the phrase, the text of a valid phrase for the developer account, and absolute file path for a audio recording to idetify the user's voice amongst others in the group For more details see https://api.voiceit.io/#identify-a-user-s-voice
func (VoiceIt2) VoiceIdentificationByUrl ¶
func (vi VoiceIt2) VoiceIdentificationByUrl(groupId string, contentLanguage string, phrase string, fileUrl string) ([]byte, error)
VoiceIdentificationByUrl takes the groupId generated during a createGroup, the contentLanguage(https://api.voiceit.io/#content-languages) for the phrase, the text of a valid phrase for the developer account, and a fully qualified URL to a audio recording to idetify the user's voice amongst others in the group For more details see https://api.voiceit.io/#identify-a-user-s-voice-by-url
func (VoiceIt2) VoiceVerification ¶
func (vi VoiceIt2) VoiceVerification(userId string, contentLanguage string, phrase string, filePath string) ([]byte, error)
VoiceVerification takes the userId generated during a createUser, the contentLanguage(https://api.voiceit.io/#content-languages) for the phrase, the text of a valid phrase for the developer account, and absolute file path for a audio recording to verify the user's voice For more details see https://api.voiceit.io/#verify-a-user-s-voice
func (VoiceIt2) VoiceVerificationByUrl ¶
func (vi VoiceIt2) VoiceVerificationByUrl(userId string, contentLanguage string, phrase string, fileUrl string) ([]byte, error)
VoiceVerificationByUrl takes the userId generated during a createUser, the contentLanguage(https://api.voiceit.io/#content-languages) for the phrase, the text of a valid phrase for the developer account, and a fully qualified URL to a audio recording to verify the user's voice For more details see https://api.voiceit.io/#verify-a-user-s-voice-by-url