Discussions
get Response 401 and Unauthorized
about 11 hours ago by aminekhlasi
Hi
I generate API Key and used in my code. after call api with below information.
API Key : YW1pbmVraGbbbbbbbbbbbbbbbbbwuY29t:qffffffffffffffffntwrvo
payload:{'script': {'type': 'text', 'input': 'Hello! Welcome to our site.', 'provider': {'type': 'microsoft', 'voice_id': 'en-US-JennyNeural'}, 'ssml': False}, 'source_url': 'https://d-id-public-bucket.s3.amazonaws.com/demo-assets/avatars/ryan.jpg', 'config': {'fluent': True, 'pad_audio': 0.5}}
headers:{'Authorization': 'Bearer qffffffffffffffffntwrvo', 'Content-Type': 'application/json'}
response;<Response [401]>
Please help me.
Thanks,
Amin