Command for say text to call
Copy type: object
title: Say text to Call
additionalProperties: false
properties:
text:
type: string
locale:
type: string
format: locale-bcp47
default: en-US
example:
- en-US
enum:
- arb
- ar-AE
- ca-ES
- yue-CN
- cmn-CN
- da-DK
- nl-BE
- nl-NL
- en-AU
- en-GB
- en-IN
- en-NZ
- en-ZA
- en-US
- en-GB-WLS
- fi-FI
- fr-FR
- fr-CA
- hi-IN
- de-DE
- de-AT
- is-IS
- it-IT
- ja-JP
- ko-KR
- nb-NO
- pl-PL
- pt-BR
- pt-PT
- ro-RO
- ru-RU
- es-ES
- es-MX
- es-US
- sv-SE
- tr-TR
- cy-GB
voice:
type: string
enum:
- male
- female
loop:
type: integer
timeout:
type: integer
required:
- text
Example 1: Play an announcement when an outbound call is running
Request Headers Request Body Response
Copy curl -X POST "https://nest.messagebird.one/workspaces/8bc02f53-87ac-48d2-b4fd-c2cf856a305f/channels/880d8171-cbab-47bb-81b6-b1a0902da136/calls/4fc2edf7-68f5-437a-89eb-3ce0095409d6
/say" \
-H 'Authorization: Bearer {Token}'
Copy {
"text": "Hi there my name is earl",
"locale": "en-US",
"voice": "female"
}
Copy {
"id": "9ec389c1-a37c-44b8-b09d-2fec18b5c7c6",
"callId": "0374a740-390d-4395-a007-8ca87ce9f9c9",
"command": "say",
"status": "accepted"
}