In this article, we'll guide you through setting up Audio spoofing in Kameleo whilst using the Local API Clients. Audio fingerprint spoofing is a technique used to deceive audio recognition systems by altering the characteristics of an audio signal in a way that manipulates its identification.
We also encourage you to learn more about Audio Spoofing from our article: Audio Spoofing
Concept
During the CreateProfileRequest
POST /profiles/new
You can pass the CreateProfileRequest object that has a AudioSpoofingType property. This can be used to set up Audio spoofing. Furthermore when creating a new profile via the Kameleo Local API, you can specify Audio spoofing behavior using the setAudio
method. Possible values for the Audio spoofing type are:
- Noise: Add noise to Audio generation.
- Block: Completely block the Audio API.
- Off: Turn off the spoofing and use the original settings.
To set the Audio spoofing type, use the setAudio
method in the Local API Clients. Below you can find the examples for Javascript and Python:
Examples
-
const createProfileRequest = BuilderForCreateProfile .forBaseProfile(baseProfileId) .set_audio('noise') \ # Options: ('noise', 'block', 'off') .build(); const profile = await client.createProfile({ body: createProfileRequest });
-
create_profile_request = BuilderForCreateProfile \ .for_base_profile(base_profiles[0].id) \ .set_audio('noise') \ # Options: ('noise', 'block', 'off') .build() profile = client.create_profile(body=create_profile_request)
Use the appropriate Audio spoofing type according to your needs for web related tasks.
For your convenience, this functionality is provided by the Python Builder and JavaScript Builder for Profile Creation in the Local API Clients.