NetSapiens icon

NetSapiens

Interact with the NetSapiens API

Actions477

Media/Greetings → Create a New Greeting from TTS

AI-generated

Summary

Create a greeting using TTS

Inputs

  • refreshOptions — Whether to bypass cached dropdown values and fetch fresh options
  • domain (required) — Domain for the greeting creation
  • user (required) — User identifier for the greeting creation
  • synchronous (required) — Whether to wait for a 200 response or receive a 202 acknowledgement
  • script (required) — Text-to-speech content or description of the audio
  • index — MOH index position. 0 = intro greeting. Leave empty for auto-assign.
  • voiceLanguage — Language code for TTS voice (e.g. en-US, es-MX, fr-CA)
  • voiceId — TTS voice identifier

Output shape

a single newly created greeting object

Returns the greeting details; no pagination applicable.

Examples

Example 1: Create a greeting synchronously using default voice

domain: example.com; user: 1001; synchronous: yes; script: "Hello world"; voiceLanguage: en-US; voiceId: en-US-Wavenet-C

Example 2: Create a greeting asynchronously with custom voice and index

domain: example.com; user: 1002; synchronous: no; script: "Good morning"; voiceLanguage: es-MX; voiceId: es-MX-Standard-A; index: 2

Example 3: Refresh options before creating a greeting

refreshOptions: true; domain: example.com; user: 1003; synchronous: yes; script: "Welcome"; voiceLanguage: fr-CA; voiceId: fr-CA-Wavenet-B

Links

Discussion