VERSION
VERSION
The wrapper version.
The wrapper version number.
Voice biometrics users web service class
setWebServicesServer(string $wsserver)
Set the web services server address.
This allows the web service requests to be directed to a specific server. The default is https://ws-<cloud_id>.aculabcloud.net
string | $wsserver | The base URL of the web services server. |
setCryptoMethod(integer $method)
Set the crypto method used when connectiing to the web services server.
This allows a specific crypto method to be used when connecting to the web service server. The values should be one of the STREAM_CRYPTO_METHOD_TLSv1_N_CLIENT constants. The default is STREAM_CRYPTO_METHOD_ANY_CLIENT.
integer | $method | The crypto method to use. |
parseWebsocketResponse(string $response) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\RegisterResult|\Aculab\WebServicesWrapper\VoiceBiometrics\Users\UpdateResult|\Aculab\WebServicesWrapper\VoiceBiometrics\Users\VerifyResult
Parse the text returned over a websocket.
This parses the text returned over a websocket.
string | $response | The test response from the web socket. |
registerPutFile(string $user_id, string $user_group_key, string $local_filename) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\RegisterResult
Register a user using a local file.
This registers a user by putting a local file.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
string | $local_filename | The name of the local file to register with. |
registerPostFiles(string $user_id, string $user_group_key, array $local_filenames) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\RegisterResult
Register a user using local files.
This registers a user by posting a local files.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
array | $local_filenames | An array containing the names of the local files to register with. |
registerPostUrls(string $user_id, string $user_group_key, array $urls) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\RegisterResult
Register a user using URLs.
This registers a user by posting URLs.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
array | $urls | An array containing the URLs of the files to register with. |
registerGetWs(string $user_id, string $user_group_key, \Aculab\WebServicesWrapper\VoiceBiometrics\Users\AudioStreamSettings $audio_stream_settings = null) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\GetWsResult
Get a web socket to register a user.
This returns a web socket URL that can be used to register a user.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
\Aculab\WebServicesWrapper\VoiceBiometrics\Users\AudioStreamSettings | $audio_stream_settings | Settings for the audio stream that will be sent. |
updatePutFile(string $user_id, string $user_group_key, string $local_filename) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\UpdateResult
Update a user using a local file.
This updates a user by putting a local file.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
string | $local_filename | The name of the local file to update with. |
updatePostFiles(string $user_id, string $user_group_key, array $local_filenames) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\UpdateResult
Update a user using local files.
This updates a user by posting a local files.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
array | $local_filenames | An array containing the names of the local files to update with. |
updatePostUrls(string $user_id, string $user_group_key, array $urls) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\UpdateResult
Update a user using URLs.
This updates a user by posting URLs.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
array | $urls | An array containing the URLs of the files to update with. |
updateGetWs(string $user_id, string $user_group_key, \Aculab\WebServicesWrapper\VoiceBiometrics\Users\AudioStreamSettings $audio_stream_settings = null) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\GetWsResult
Get a web socket to update a user.
This returns a web socket URL that can be used to update a user.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
\Aculab\WebServicesWrapper\VoiceBiometrics\Users\AudioStreamSettings | $audio_stream_settings | Settings for the audio stream that will be sent. |
verifyPutFile(string $user_id, string $user_group_key, string $local_filename, \Aculab\WebServicesWrapper\VoiceBiometrics\Users\VerifySettings $verify_settings = null) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\VerifyResult
Verify a user using a local file.
This verifies a user by putting a local file.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
string | $local_filename | The name of the local file to verify with. |
\Aculab\WebServicesWrapper\VoiceBiometrics\Users\VerifySettings | $verify_settings | Settings for the user verification. |
verifyPostFiles(string $user_id, string $user_group_key, array $local_filenames, \Aculab\WebServicesWrapper\VoiceBiometrics\Users\VerifySettings $verify_settings = null) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\VerifyResult
Verify a user using local files.
This verifies a user by posting a local files.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
array | $local_filenames | An array containing the names of the local files to verify with. |
\Aculab\WebServicesWrapper\VoiceBiometrics\Users\VerifySettings | $verify_settings | Settings for the user verification. |
verifyPostUrls(string $user_id, string $user_group_key, array $urls, \Aculab\WebServicesWrapper\VoiceBiometrics\Users\VerifySettings $verify_settings = null) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\VerifyResult
Verify a user using URLs.
This verifies a user by posting URLs.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
array | $urls | An array containing the URLs of the files to verify with. |
\Aculab\WebServicesWrapper\VoiceBiometrics\Users\VerifySettings | $verify_settings | Settings for the user verification. |
verifyGetWs(string $user_id, string $user_group_key, \Aculab\WebServicesWrapper\VoiceBiometrics\Users\VerifySettings $verify_settings = null, \Aculab\WebServicesWrapper\VoiceBiometrics\Users\AudioStreamSettings $audio_stream_settings = null) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\GetWsResult
Get a web socket to verify a user.
This returns a web socket URL that can be used to verify a user.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
\Aculab\WebServicesWrapper\VoiceBiometrics\Users\VerifySettings | $verify_settings | Settings for the user verification. |
\Aculab\WebServicesWrapper\VoiceBiometrics\Users\AudioStreamSettings | $audio_stream_settings | Settings for the audio stream that will be sent. |
stats(string $user_id, string $user_group_key) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\StatsResult
Get statistics relating to a user.
This gets statistics relating to a user.
string | $user_id | The identifier of the user. |
string | $user_group_key | The key of the user group for the user. |
exists(string $user_id, string $user_group_key) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\ExistsResult
Check if a user exists.
This determines if a user exists.
string | $user_id | The identifier of the user to delete. |
string | $user_group_key | The key of the user group for the user. |
delete(string $user_id, string $user_group_key) : \Aculab\WebServicesWrapper\VoiceBiometrics\Users\DeleteResult
Delete a user.
This deletes a user.
string | $user_id | The identifier of the user to delete. |
string | $user_group_key | The key of the user group for the user. |