Create TTS history

Create a new TTS history entry for a generated audio clip.

post/v2/tts/histories

Request

  • Base URL
    https://api.tryhamsa.com
  • URL
    https://api.tryhamsa.com/v2/tts/histories
  • Auth
    API key in header Authorization

Request body

ttsVoiceIdstring uuid required

TTS voice identifier

scriptstring required

Text to be synthesized. Must contain real Arabic or English text.

voiceDictionaryIdsstring[]

Optional list of voice dictionary identifiers

apiKeystring uuid required

API key identifier (used for API key authorization)

Example request

{
  "ttsVoiceId": "633f19a6-089b-4950-bfab-55f5c750732e",
  "script": "مرحباً، هذا مثال على نص التحويل إلى صوت.",
  "config": {
    "speed": 1,
    "expressiveness": 1
  },
  "voiceDictionaryIds": [
    "6ac0324d-bcb9-40f3-a57a-de6da7b721c8"
  ],
  "apiKey": "9f5f1f6a-2b1d-4a33-8fd4-6f5c2b89e3aa"
}

Response

History created successfully.

successboolean
messagestring
messageKeystring

Example response

{
  "success": true,
  "message": "Operation completed successfully",
  "messageKey": "OPERATION_SUCCESSFUL",
  "data": []
}

Changes

No recorded changes to this operation across all 2 revisions of this API.