Skip to main content

Overview

UneeQ is a digital human platform that can use a custom voice service for text-to-speech synthesis. This guide explains how to connect UneeQ to Hamsa’s real-time TTS engine so your digital human speaks with a Hamsa voice. Hamsa exposes a dedicated endpoint that speaks the UneeQ custom voice protocol — UneeQ calls it directly, passing your Hamsa API key and the desired voice preset, and receives a raw PCM audio stream in response.

How It Works

1

Configure UneeQ

In your UneeQ experience settings, set the custom voice endpoint URL and provide your Hamsa API key.
2

UneeQ sends a TTS request

When the digital human needs to speak, UneeQ sends a POST request to your endpoint with the text and the voice preset name.
3

Hamsa synthesises speech

Hamsa validates the API key, generates the audio using the requested voice, and streams back raw PCM audio.
4

UneeQ plays the audio

UneeQ receives the binary stream and drives the digital human’s lip sync and speech in real time.

Endpoint

Authentication

Unlike other Hamsa endpoints, this one does not use an Authorization header. UneeQ sends the API key inside the JSON request body, so no extra headers are required on your side.
Keep your Hamsa API key secret. Anyone who has it can make TTS requests that will be billed against your account.

Request Body

Response

On success the endpoint returns a chunked binary stream of raw PCM audio with the following properties:
These audio specs match UneeQ’s custom voice requirements exactly. No conversion is needed on your end.

Error Responses


Available Voices (Presets)

Pass any Hamsa speaker name as the preset value. You can find the full list of available voices in the Voice Library on the dashboard. Some examples:
The preset value maps directly to Hamsa’s speaker names. The language is Arabic (ar) by default. If you need a different dialect, contact support to discuss configuration options.

Setting Up in UneeQ

1

Open your UneeQ experience

Go to the UneeQ Creator and open the experience you want to configure.
2

Navigate to Voice settings

Go to Settings → Voice → Custom Voice.
3

Set the endpoint URL

Enter:
4

Set the API key

Paste your Hamsa API key into the API Key field. UneeQ will include it as apiKey in every request body automatically.
5

Set the voice preset

Enter the Hamsa speaker name (e.g. Amjad) in the Preset / Voice field.
6

Save and test

Save the configuration and use UneeQ’s built-in voice preview to confirm the integration is working.

Example Request

This is what UneeQ sends to the endpoint behind the scenes:

Support

Contact Support

Get help from our technical team

UneeQ Custom Voice Docs

UneeQ’s official custom voice integration guide