Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.51 KB

File metadata and controls

32 lines (23 loc) · 1.51 KB

Play

The Play command plays an audio file back to the caller. The audio file may be located at any location accessible via a URL. Play can exist as a stand-alone command or as a nested command. It does not allow barge-in unless nested within a GetSpeech command. The file will always be played to completion unless nested.

Properties

Name Type Description Notes
file str RL of the audio file to be played to the caller. The URL can be the `recordingUrl` generated from the `RecordUtterance` or `StartRecordCall` PerCL commands.
loop int Number of times the audio file is played. Specifying '0' causes the Play action to loop until the Call is hung up. [optional]
privacy_mode bool Parameter `privacyMode` will not log the `text` as required by PCI compliance. [optional]

Example

from freeclimb.models.play import Play

# TODO update the JSON string below
json = "{}"
# create an instance of Play from a JSON string
play_instance = Play.from_json(json)
# print the JSON string representation of the object
print(Play.to_json())

# convert the object into a dict
play_dict = play_instance.to_dict()
# create an instance of Play from a dict
play_from_dict = Play.from_dict(play_dict)

[Back to Model list] [Back to API list] [Back to README]