Skip to main content

ovh_pabx_tts

Creates, updates, deletes, gets or lists an ovh_pabx_tts resource.

Overview​

Nameovh_pabx_tts
TypeResource
Idovh.telephony.ovh_pabx_tts

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idinteger
textstringThe text that will be played
voicestringThe voice used to say text (Bruce, Helene, Jenny, Loic)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbilling_account, id, service_nameGet a TTS prompt
listselectbilling_account, service_namex_pagination_modeList TTS prompts
createinsertbilling_account, service_name, textCreate a TTS prompt
updateupdatebilling_account, id, service_nameUpdate a TTS prompt
deletedeletebilling_account, id, service_nameDelete a TTS prompt

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
billing_accountstringThe name of your billingAccount (wire: billingAccount)
idinteger
service_namestring (wire: serviceName)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get a TTS prompt

SELECT
id,
text,
voice
FROM ovh.telephony.ovh_pabx_tts
WHERE billing_account = '{{ billing_account }}' -- required
AND id = '{{ id }}' -- required
AND service_name = '{{ service_name }}' -- required
;

INSERT examples​

Create a TTS prompt

INSERT INTO ovh.telephony.ovh_pabx_tts (
text,
voice,
billing_account,
service_name
)
SELECT
'{{ text }}' /* required */,
'{{ voice }}',
'{{ billing_account }}',
'{{ service_name }}'
;

UPDATE examples​

Update a TTS prompt

UPDATE ovh.telephony.ovh_pabx_tts
SET
text = '{{ text }}',
voice = '{{ voice }}'
WHERE
billing_account = '{{ billing_account }}' --required
AND id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required;

DELETE examples​

Delete a TTS prompt

DELETE FROM ovh.telephony.ovh_pabx_tts
WHERE billing_account = '{{ billing_account }}' --required
AND id = '{{ id }}' --required
AND service_name = '{{ service_name }}' --required
;