import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')
response = client.conferences.member_speak(
    conference_name='testing',
    member_id=27800,
    text='Hello World!', )
print(response)
{
  "message" : "speak queued into conference",
  "api_id" : "8dd6820e-fe83-11e6-b6f4-061564b78b75",
  "member_id" : "[u'all']"
}

This API plays spoken text to a member in a conference.

API Endpoint

POST
https://api.plivo.com/v1/Account/{auth_id}/Conference/{conference_name}/Member/{member_id}/Speak/

The member_id attribute that’s passed in the URL can be a member_id, a comma-separated list of member IDs on which this operation will be performed, or the string all. In the latter case, the play text action is performed on all members of the conference.

Attributes

ArgumentDescription
text RequiredThe text that should be spoken to the members in the conference.
voice stringThe voice to be used.
Allowed values: MAN, WOMAN
Defaults to: WOMAN.
language stringThe language that needs to be used to speak the text. The default language is US English (en-US). See the list of supported languages below.
import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')
response = client.conferences.member_speak(
    conference_name='testing',
    member_id=27800,
    text='Hello World!', )
print(response)
{
  "message" : "speak queued into conference",
  "api_id" : "8dd6820e-fe83-11e6-b6f4-061564b78b75",
  "member_id" : "[u'all']"
}